• Home
  • About Me
  • Tags
  • Books
  • Contact

Encapsulation

1 post

#software design #encapsulation

How getters and setters harm encapsulation

Taking a step back and looking at something that you’ve been doing for years with a fresh perspective can lead to profound insights. I had an insight exactly like this a few months ago, when I decided to look at getters and setters from a different point of view. During my first steps as a software engineer, I learned about Plain Old Objects (POJOs for Java software engineers, like myself) and ever since it made sense in my head, I always took getters and setters for granted. ...

Author Nikos Voulgaris
Page 1 of 1 
EM
Latest Posts Twitter Github LinkedIn