Hacker News new | past | comments | ask | show | jobs | submit login

I commented here: https://news.ycombinator.com/item?id=42483538

Mostly, I find it far less verbose with a couple huge convenience features that I'm constantly using and would feel very lost without; and, they all come as part of the language, rather than bytecode hacks / pre-processors, like lombak




My biggest pet peeve with Kotlin is that they got rid of checked exceptions and replaced them with nothing at all. All error code flow is now just invisible unchecked exceptions, the single worst kind of error handling imaginable.

I know they added the Result type later on, but there's zero convenience to it, so you have to manually handle every error, even if you just want to bubble it.

Checked Exceptions were better, though Rust still has the best error handling in any non-functional language.


Depends on what you're writing I guess (as always). I write backend services and if there is an exception thrown, generally the whole request is forfeit. So a top-level exception handler is all that's needed.. no checked exceptions ruining my lambdas or streams like in Java.


Not to mention a top-level exception system is a great place to put the db transaction rollback so everything’s always undone (some exceptions apply)


Lombok is absolutely painless.


I admit I have no direct experience with it. For my perspective on it, I rely on one of the best developers I've ever worked with - especially when it comes to debugging and deep investigation and she *hates* it. If I had to assume (we don't work together anymore), it's because it did some freaky stuff that made debugging the weird bugs really, really hard.


I have been using Lombok for many years and haven't experienced any issues. Admittedly most of my work involves standard Spring Boot services, so perhaps your friend works with some low level projects that behave differently.

In my experience I don't hesitate to recommend Lombok. It will generate getters/setter/builders/toString in a transparent way, without visible changes in the code. This keeps Java classes much more concise to read.

It also provides withers on records, while waiting for native support (it's coming)


Lombok does provide a lot but it doesn't make types non nullable by default or reduce verbosity or give us extension functions.


Lombok is absolute garbage. Either use proper Java 2.0 like Scala/Kotlin or stay in Java.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: