DEV Community

Discussion on: 🎩 Immutability in Java 🔥 Made Easy

Collapse
 
anyulled profile image
Anyul Rivas • Edited

Very nice article, have you ever used Lombok's with and value annotations? Could you tell the difference between using each of them?

Also, I like to use archunit to create unit tests, or what Neal Ford calls fitness functions to check that developers preserve important architectural characteristics, and in this case immutability

Collapse
 
cchacin profile image
Carlos Chacin ☕👽

I'm a big fan of archunit and Neil Ford 🤓
I used lombok before for years, the main difference between lombok and the immitables library is that lombok modifies the generated bytecode and requires an IDE plugin, also immitables uses interfaces and abstract classes that you can manually extend

Collapse
 
cchacin profile image
Carlos Chacin ☕👽
Collapse
 
anyulled profile image
Anyul Rivas

Great , I'll check