From Feed: Following OOP Principles: Hermetization in Java

Have you ever looked at the code that you had written a couple of months ago and asked yourself: “Who could leave such a mess here?â€� Have you ever been so lazy that you didn’t think of what accessors/mutators you need, simply hitting “Generate getters and settersâ€� for your entity in your IDE? Or maybe you have used Lombok’s @Getter/@Setter annotations to get the same effect?

Yep, just as I thought!

Posted On :