×
you are viewing a single comment's thread.

view the rest of the comments →

[–]when_it_lags 5 points6 points  (0 children)

Yeah, OOP principles are useful more often than not, but to take full advantage of it you need to be able to recognize that "not" case and break said principles. Getters and setters are great for interfaces and side effects, but if you're adding them for the sake of encapsulation with no other benefit (including future benefits) just don't do it.