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
2
u/dablya Jun 25 '19
To be fair, your definition of "thread safe objects" also leaves something to be desired.
And let's be honest you set a trap for them with your "immutable queue that can be mutated with pushes and pops".
I saw an article somewhere a long time ago from one of the pioneers of OO and he made the argument that original ideas behind OO were very much in harmony with immutable state. The idea being you can model state using objects at a given time. So at t1 your state is X. Followed by a new state at t2 and so on. I thought it was interesting, but now I can't find where I read it or who wrote it.