Kotlin vs. Java – An Android Developer's First Impressions
arctouch.com
arctouch.com
If you have developed in Swift (and probably other languages), Kotlin will feel very similar, the only thing you need to do is learn the native API's, but logic/model code is so similar you can just copy paste from swift->kotlin and vice versa and just fix 2-3 syntax issues
I mean, ignoring functional stuff which is in Java 8 but not on Android because Android is still(?) on Java 7, that's all I'm really seeing here.
After porting our code base to Kotlin we found it provides more benefits over Java than just being less typing / "syntactic sugar". To name a few:
- First class functional support (streams feel clunky in comparison).
- Extension functions [1].
- Nullable types (compile-time null checking).
- Less verbose as types declarations are optional in many situations.
- Great interop & tooling from JetBrains makes a slow transition from Java -> Kotlin pretty seamless.
[0] https://developer.android.com/studio/preview/features/java8-... Default and static interface methods
Lambda expressions
Repeatable annotations
Method References
Type AnnotationsI mean, I wouldn't agree with the classification of any of those languages as the syntactic sugar of whatever. C is portable ASM, which is a big deal. C++ is object oriented C, which is a different paradigm and feels a lot more salty than C because of the increased complexity. Java was rather ambitious (safe to say overly so) and brought with it a lot of differences with C++ that were not just syntax (which is definitely sweeter).
What does Kotlin give me besides less verbose syntax and some nice compile time null checking?
It makes a lot of big promises, delivers on many of them early on but as your services grow things... get messier.
Happy enough with Sparkjava right now. I think ultimately though I'm on a slow journey back to just using Dropwizard which still hits the sweet spot for me.
I'm not sure how feasible that is but many features seem to have fairly direct translations. For others like co-routines I'd be willing to put up with the Java project depending on a Kotlin runtime jar.
Whenever you have such a complaint - and choose to make it public - please include more details. What system, what browser, add-ons (adblocker) at least.
EDIT: Downvotes? For answering the question truthfully? It does work for me. The question was (is) "is anyone else unable to scroll on this page?" -- and I have no problem scrolling. I answered the question! The question was NOT "do you think the page is designed badly". If that is what was meant, that is why I said "needs more details". All the person asked was about "being able to scroll"! And the design issue does not prevent it. I answered the question that was actually asked! I assumed, and still do, that the person isn't able to scroll at all.
The scrollbar is also hidden behind the top banner in some way, which suggests it's doing something non standard.
Why do people want to fiddle with the most basic UI/X idiom on the net?
They'll read a blog post, echo chamber the benefits over some kale juice and start hacking away.