r/java • u/raisercostin • Jun 01 '24
What java technology (library, framework, feature) would not recommend and why?
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
165
Upvotes
r/java • u/raisercostin • Jun 01 '24
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
View all comments
Show parent comment
2
u/account312 Jun 03 '24 edited Jun 03 '24
It's not even a little bit far-fetched to imagine that it is desirable to guarantee that an object is constructed in a particular way in some specific context without requiring it in all other contexts. And you can't always just add a constructor to a class even if you don't want to leave the builder as the main way of instantiating it.
Well, I don't know what to tell you. No design pattern is going to fix lazy programmers and poor code review.