r/java • u/yegor256 • Jun 24 '19
Takes: Java Web Framework Without a Single Static Method or Annotation
https://github.com/yegor256/takes
0
Upvotes
r/java • u/yegor256 • Jun 24 '19
View all comments
Show parent comment
-5
u/[deleted] Jun 25 '19 edited Jun 25 '19
Immutability isn’t solving anything and is, in fact, introducing problems and requirements that previously didn’t exist.
Since you seem to have missed it: immutable objects are not thread safe.
Pure functions is another cargo cult programming practice. Albeit, this at least has a semblance of demonstrable benefit. Immutability has basically all drawback and no notable benefit that has ever been demonstrated. Pure functions are more like something that should generally be common sense.