3 ms·
As a Java guy (who is very into Java 8 and very not into old-school software patterns), I was very amused when I learned that Angular has factories. This just
by twblalock 10y ago
As a Java guy (who is very into Java 8 and very not into old-school software patterns), I was very amused when I learned that Angular has factories.
This just reinforces my view that JavaScript is going through the same phase Java frameworks did a while ago -- lots of people trying to figure out which kinds of frameworks and patterns to use, until one reaches the AbstractFactoryFactory and the whole ecosystem becomes a punchline.
- groovy2shoes 10y agoJudging by most of the comments in this thread, it seems to me like the JavaScript ecosystem is already a punchline. IMHO, the problems/punchline extends past JS to the entire Web development ecosystem, and has for quite some time now.
- insin 10y agoOne of the Redux utility functions I reuse across projects [1] would live in an ActionDispatcherFactoryFactory class in Java, but it can just be an 8 line function in JavaScript. [1] https://gist.github.com/insin/526b7b006039c16f8b2987a80372170c https://gist.github.com/insin/526b7b006039c16f8b2987a8037217...
- twblalock 10y agoThat could be done in a Java 8 stream in a similar number of lines.