|
|
|
|
|
by jmartrican
1353 days ago
|
|
To your point, I started writing my POJOs without getters/setters. It felt like I was doing something wrong and the ghosts of senior devs I have worked with were looking down at me with shame.... "how could you". The worst part is that some libraries use getters as convention. e.g. Jackson (by default) uses getter methods to decide what to serialize. |
|
I had not touched Java in a long while until yesterday when I wanted to do a quick benchmark of Lucerne to compare it to a search library in another language. I was surprised how easy and quick it was to do this.
I have considered updating my old book for modern Java. It would probably only take a few days to update the examples, but updating the book text would take longer.