If you wanna learn a great language learn Kotlin
# suitescript
f
If you wanna learn a great language learn Kotlin
s
Scala
f
eww Scala only looks sexy on Paper. Everyone that worked with Scala on bigger projects said that they liked it until they had todo something a little more enterprise scale
s
I've used it at moderate scale
funny to hear that though, given that Scala is popular in the largest scale (i.e. BigData)
f
I like simplicity of Kotlin as it is very close to regular Java (which a lot people know) but without all the shitty parts of Java and some cool features from the Javascript world
s
when I looked it it it seemed Kotlin just stole stuff from Scala 🙂. I am consigned to accept TypeScript for now
I'll revisit Scala 3.0 when it pops out, and will likely skip Kotlin even though it's an 'official language' for android.
I also expect to skip over Android development for that matter directly going to PWAs 🙂
f
Hmm Typescript I don't like much^^
And Kotlin is one of the first language developed from the industry for the industry rather then developed by academia
and you can feel it in a lot of features
s
you might want to look into Scala.next (aka dotty). It will be a very powerful language based on a few (fewer than most languages) solid constructs
For me, TS is as close to Scala as I think I'm gonna get with regards to NS and browser development.
I admit I'm a fan of Scala as a language, obviously.
I'm also a big fan of Jetbrains (I actually personally pay for the $200 yearly subscription for all their dev tools)
✔️ 1
but I'm not really a fan of them trying to push yet another language like Kotlin
just like I'm not a fan of Apple trying to push Swift, though at least JetBrains doesn't directly control the development target platform like Apple does.
another example is Dart - not accepting of google trying to force that down our throats either
TypeScript, while a MS product is an open endeavor and as a superset of JS I feel far safer with it than some of those other languages that are driven by industry.
So actually, I feel a language developed 'for the industry, by the industry' is a bad thing. To each their own I suppose. I think with computer languages, the sweet spot is a combination of good computer science (academia as you call it) with great tooling and a small number of core principles that make building real world apps easier.
f
I get your point. And I guess at the end it is heavily personal preference too (like with a lot of technology selections)^^
s
Yes, though I do completely agree that Kotlin is a better choice than plain Java, though even Java has been improving a lot in recent releases!
The sweet spot for me (which some people dislike) is Scala's blending of FP and OO. TypeScript tries to achieve some of that as well. I get the impression Kotlin is mostly trying to be a better Java, and I think it's succeeding there, but I'm more interested in the lofty goal of blending FP and OO.
anyway, sorry to ramble on!
f
Actual Kotlin can be used completely FP style too without workarounds. And has cool inline function syntax that is extremly powerful: https://kotlinlang.org/docs/reference/inline-functions.html
s
the inlining looks like just an optimization? is the special syntax you're referring to the
body: () -> T)
part?
f
you can combine it with the null safety feature and easily execute code if something is not null etc. it improved tons of my code.
s
Interesting. Well if you came from Java, Kotlin should be a nice step up. I'd encourage you to take a look at Scala as well sometime
f
I guess I just had bad experience with scala when trying to understand a scala lib with not much language knowledge but maybe I should give it a second look
s
it has had that lambda syntax forever and doesn't typically use null at all, opting for monadic constructs like Option[T]
Yes, Kotlin may be your gateway drug to Scala heh
f
Or I just go back to Kotlin coz it solves all my problems^^
m
Why did need anything other than Fortran on punch cards?
s
I am just barely to young for punch cards but I was required to learn FORTRAN in college!
😀 1