r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

View all comments

Show parent comments

2

u/coshjollins Jul 20 '18

Android is really the driving force behind why it's catching on. At first I was a bit angry because I had spent so much time learning android dev in java, but kotlin seems easy enough to transition to and seems to keep the same structures

2

u/mpa92643 Jul 20 '18

It's definitely worth it. You don't even have to completely redesign your codebase. Just start writing new code in Kotlin. You can keep using all your old code in Kotlin, and you get extremely useful protection against nulls. Basically, you'll never have to write a null check ever again. That alone makes it worth the switch.

Check out this article that explains pretty concisely why the switch is worth it. Kotlin is essentially everything good about Java without the boilerplate and backwards-compatibility limitations.