this post was submitted on 28 Dec 2025
408 points (95.7% liked)
Programmer Humor
33397 readers
431 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
- If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
NPEs are the reason why my team moved to Kotlin. Well, that and all the other myriad advantages Kotlin brings to the table.
One of the backend devs started using Kotlin. From time to time I need to read backend code, and I have to say it’s very easy to write an incomprehensible mess in Kotlin.
Kotlin isn't perfect and it gives the devs quite a lot of freedom. I would argue that if your Kotlin code is messy, that's on you - but it will still be significantly less prone to failures like NPEs. Unless you opt out of null safety by using the dreaded ?-Operator.
I like the "advantage" that using any Kotlin code in normal Java automatically forces you to use the kotlin-stdlib for Java 8 and adds a additional bloat of 10MB to your project...
Well, ideally you start new projects writing 100% Kotlin while only adding Kotlin code to older codebases you can't get rid of. Personally, I don't like mixing languages anyway and I would stay with Java in Java projects. One reason is the bloat argument you pointed out quite correctly.
10MB? Oh no! How is this going to fit on my 1TB drive?
Ohhhhhh noooooooooo, not my 10 mbs
I really like how I can turn everything into immutable
val's and represent different paths as expressions, it can IMO really reduce the complexity of a function and makes it easier to spot bugs. I've been migrating some code of a FOSS app to Kotlin and was able to shrink most classes by like 30% while making it easier to read. The only thing I dislike about it is the additional syntax for various things, I could do without having multiple ways to write a constructor.Yes, there are things about Kotlin I don't love either. But I still like how it was clearly developed having developer quality-of-life in mind.
Lombok had a bunch of great things that should've been part of the java language to begin with. They've slowly been folded in (so now you have to work out which @NotNull annotation you want) but the language does still improve.
True... but Kotlin makes Lombok quite unnecessary by having its concepts built in. It's also worth to point out that null safety is opt-in in Java and opt-out in Kotlin.
That's a good point. You can get away with that with a new language, but adding nullability as a non-default option would break existing code much like making things const by default in C++ would, I suppose.