3 ms·
The funny thing is, I actually really enjoyed java in the early days. Before it went all "enterprisey" with FactoryFactory over-engineering, XML, annotations an
by kleiba 6y ago
The funny thing is, I actually really enjoyed java in the early days. Before it went all "enterprisey" with FactoryFactory over-engineering, XML, annotations and all the other crap. I mean, how is that stuff fun?
- robotnikman 6y agoSimpleBeanFactoryAwareAspectInstanceFactory
- commandlinefan 6y agoSimpleBeanFactoryAwareAspectInstanceFactoryImpl implements SimpleBeanFactoryAwareAspectInstanceFactory
- vbezhenar 6y agoYou're not obliged to overengineer you code, use XML or annotations. Well, annotations are too prevalent, so not sure about those, but you definitely can limit their use to absolute minimum. There are plenty of libraries with different approaches. Many people don't like magic code which auto-discovers everything, so there are many libraries where you have to be explicit. And modern Java with lambdas often very helpful for such APIs. I suggest you not to follow the mob and think critically about libraries you're going to pick up or the way you're going to use them. For example Spring can be magic, but you have an option to make it very explicit.
- kleiba 6y agoIn all fairness, I do like some of the more recent additions to the core language. And I still write the occasional Java program even today - when I do, I certainly do it the way you describe, ignoring all the cruft. But there's not doubt about the fact that mainstream Java has taken a wrong turn at some point.
- vbezhenar 6y agoAll those abstract factories originated in the Gang of Four patterns book. And this book was written with C++ examples. So I'm not sure that it's a Java to blame. More like general approach of software development at that time and Java happened to be the most popular language at that time as well.
- kleiba 6y agoYeah, the exact reasons and who is to blame are not clear. But ultimately, it is what it is. I'm not blaming the process, I'm detesting the result.