News for hackers. Stuff that matters.
Re:Learnings from 5 years of tech startup code audits by Too on Thursday May 26, 2022 @09:13AM (#31517905)
One could also use this example for arguing the other way. AbstractFactory pattern would not be needed if Java had more rich feature set to begin with, in this particular example anonymous functions. (Which I believe it nowadays have). Patterns emerge when the foundation isn’t solid enough by itself to stand on.

People needed modularity, DI and callback functions (essential complexity) but since the only way to do that with the language was classes, you had to invent AbstractFactory pattern (accidental complexity).

There are no comments on this comment yet.