Re:Better Java – Resources for Writing Modern Java
by zmmmmm on Saturday September 19, 2015 @09:38PM
(#10246249)
The lack of simple property syntax is probably the main reason I keep using Groovy now that Java 8 has arrived. Yes, state is evil. But there are still plenty of situations where you are just schlepping data around and generating thousands of lines of boilerplate to achieve simple data transfer is such a pointless and ugly hack.
[ Parent
| on HN ]
Re:Better Java – Resources for Writing Modern Java
by cam- on Sunday September 20, 2015 @03:45PM
(#10248755)
For DTOs we don't user mutators. Just public member variables. It is the only way to keep business logic out of them. That being said, I wish Java has some object/struct syntactic sugar like Javascript Object Literals. They are so powerful.