DEV Community

Discussion on: Avoid getters and setters whenever possible

Collapse
rossdrew profile image
Ross • Edited on

This seems to me like a list of cases of using something badly, then complaining they are dangerous. No, using things dangerously is dangerous. No awareness of mutable state of members (returning mutable lists of restricted data), no awareness of future proofing (space for future validation without changing APIs for example)...these are not problems with the feature, but with the user.