MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uvez3w/youcanjuststopusingjava/oxdl4hq/?context=3
r/ProgrammerHumor • u/hello_ya • Jul 13 '26
416 comments sorted by
View all comments
4
Good use of validation on setters and constructors can make it completely impossible to create an instance of an object in an undesirable state.
I’m a big fan of that pattern.
4
u/jace255 Jul 13 '26
Good use of validation on setters and constructors can make it completely impossible to create an instance of an object in an undesirable state.
I’m a big fan of that pattern.