Skip to main content
5 events
when toggle format what by license comment
May 16, 2023 at 15:02 comment added Maarten Bodewes I've added an answer that is more lightweight: introducing a static method. I guess that if you go the route of adding a class then you might want to look into e.g. the Strategy design pattern.
Jun 9, 2022 at 2:22 comment added SacWebDeveloper -1 Encapsulation does lead to testability.
Nov 27, 2012 at 10:44 comment added Richard +1 I completely agree with testability over encapsulation.
Jul 17, 2012 at 14:55 comment added Phil +1 Interesting point. In the end it's about maintainability, not adherence to the "rules" of good OOP.
Aug 14, 2011 at 8:18 history answered quant_dev CC BY-SA 3.0