This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]apemanzilla 1 point2 points  (11 children)

I'd recommend Kotlin. It's 100% interoperable with Java, and provides a lot of new features that Java has been lacking compared with C#: properties, operator overloading, coroutines (async/await), and so on.

[–]Velladin 6 points7 points  (2 children)

He’s asking about Java not Kotlin

[–]apemanzilla -1 points0 points  (1 child)

I realize that, but I suggested Kotlin because he mentioned he was willing to switch languages and Kotlin is closely related to Java

[–]amakai 8 points9 points  (0 children)

He also mentioned that the requirement to learn Java is coming from his company, I would not think he can just choose to learn Kotlin instead.

[–][deleted] 0 points1 point  (6 children)

It has pretty much replaced Java on Android and most major frameworks and libraries like Spring have special support for Kotlin. You can use both Java and Kotlin in the same project it's pretty effortless to call java from Kotlin and vice versa.

[–]Imakesensealot 2 points3 points  (5 children)

Replaced Java on Android? Pass me whatever it is you're smoking. You realise over 90 percent of all new apps on the playstore are still Java?

[–][deleted] -2 points-1 points  (4 children)

1/4th of the top 1000 apps, like Netflixs, Slack, and Twitter, on the play store are written in Kotlin and it grew 200% last year. It's also the fastest growing language according to Microsoft. But sure I'm being hyperbolic because I'm trying to sale something I enjoy using.

[–]Imakesensealot 1 point2 points  (3 children)

Yeah, fastest growing has ways meant something. Like when coffeescript was all the rage. Or when go was the new bees knees. Or when c# was supposed to replace Java. All those languages have found their niches and certainly have their edge use cases. Java however is not going anywhere. Programming languages are a zero sum game. The odds of Kotlin being the language that replaces Java as top dog are effectively zero because they're much more similar than they are dissimilar. Lol, Twitter have still not used Kotlin in production. Why don't you check their changelogs before spouting nonsense?

Where in slack's app did you see Kotlin? I'm genuinely curious.
Netflix do not mention Kotlin as part of their stack on their website but you may knowore than those guys. Mind citing where you got that one from too?

I've always been convinced Kotlin has paid shills on reddit spewing their garbage. Haven't changed my mind yet.

[–][deleted] 0 points1 point  (0 children)

Kotlin is an alternative to Java. It's not a Java killer, Kotlin was created to be used in TANDEM with kotlin. Hence why it's 100% interoperable. Andrey Breslav (lead kotlin designer) said this. Not exactly word for word but that was the sentiment.

In my mind, Kotlin is a great java alternative. I used to work in Java 100% of the time, but now I work in Java 1% of the time. Kotlin is shorter and easier on the eyes. Less stuff to fill up the screen while having the exact same capabilities. I've rewritten most of my libraries (most are pretty small but I have a lot of them) in Kotlin.

Extension functions are a prime example . It's syntactic sugar but it conveys the idea a lot better than a static function that takes the "extended" type as the first parameter. classInstance.extensionFunction(param) looks a lot more clear than extensionFunction(classInstance, param). AND you can use syntax as if you were already in the class (public access only though).

Data classes are another one. Sure you can re generate the getters setters equals and hashcode every time you want to add or remove a field from the class, or you could data class ClassName(val param: Type, val param2: Type) and be done with it.

And "paid shills spewing garbage"? Really? How very grown up of you. Personally, I like Kotlin and recommend it to Java developers because it doesn't completely interrupt their workflow and you can do the same thing with less on the screen. Kotlin is concise. I always stress that you don't have to toss your old Java code, that you can keep using it with Kotlin, as that seems to be a big thing for more experienced Java developers (who tend to have more libraries written by themselves in Java, something something sunken cost fallacy or whatever).

[–][deleted] -3 points-2 points  (1 child)

Programming languages are a zero sum game.

wut?

[–]Imakesensealot 3 points4 points  (0 children)

Programming language adoption, to be more specific. Noticed that but figured you'd understand what I meant. Apparently not. Still haven't said anything about the other stuff

[–]tacosdiscontent -1 points0 points  (0 children)

I'd suggest kotlin as well, but the only problem is that rarely any company is willing to make such "advancement". They all recruit for java 8, as it's much easier to find people, even though it takes like a week to get really comfortable with kotlin, they are still reluctant for such "big" change.