News for hackers. Stuff that matters.
Re:Love It or Hate It, Java Continues to Evolve by maltalex on Monday June 17, 2019 @05:17AM (#20201174)
I write quite a lot of Java, and I have to admit I never “got” Spring.

I’d much rather have explicit boilerplate code (preferably in library form as much as possible) than complex, invisible magic.

The latter is “easy”, but the former is “simple”. In most cases, “simple” is more important.

Re:Love It or Hate It, Java Continues to Evolve by nurettin on Monday June 17, 2019 @05:58AM (#20201378)
I'd say there is no upside for the complex invisible magic. Half the time you have to run the application and pray that the configuration beans you've placed are working and if not, you are pretty much in trouble. Perhaps you missed a step in adding a configuration decorator in your application or configuration class, or used some deprecated method or used some incorrect class in the class hierarchy for the bean you want to return.
Re:Love It or Hate It, Java Continues to Evolve by agumonkey on Monday June 17, 2019 @07:12AM (#20201765)
it's not even magic, it's redundant over engineering at its peak

haskell has magic, but at least its concise..

Re:Love It or Hate It, Java Continues to Evolve by rhinoceraptor on Monday June 17, 2019 @05:46PM (#20207696)
It's like playing Where's Waldo, to find the actual code in an enterprise Java/C# application.

I think it's a fundamentally different mentality as far as the code. The codebase is so obfuscated that it might as well be binary data rather than plaintext files. You need an IDE to manipulate it efficiently.

Re:Love It or Hate It, Java Continues to Evolve by agumonkey on Monday June 17, 2019 @09:48PM (#20209145)
I feel like Enterprise is all about looking complex to justify the fees. The simpler it looks the harder it is to bill.

http://jeffacubed.com/the-boilermaker-story-or-knowing-where...

Re:Love It or Hate It, Java Continues to Evolve by unscaled on Monday June 17, 2019 @05:45AM (#20201313)
But Spring gives you the best of both worlds. A lot of verbose code (as annotations and class inflation instead of explicit boilerplate) and inscrutable magic.
Re:Love It or Hate It, Java Continues to Evolve by arethuza on Monday June 17, 2019 @05:50AM (#20201343)
If only we could all agree on what "simple" means - a lot of "enterprise" code I've seen would sweep vast amounts of complexity into hard to spot places to that you could have a small thing that people could point at and say how simple the one visible bit was, ignoring the vast amount of complexity lurking under the surface somewhere and invoked by more or less magical means.
Re:Love It or Hate It, Java Continues to Evolve by oweiler on Monday June 17, 2019 @09:18AM (#20202589)
I disagree. The "boilerplate" is the boring stuff I don't want to waste my time with.
Re:Love It or Hate It, Java Continues to Evolve by maltalex on Monday June 17, 2019 @03:40PM (#20206570)
In my opinion software development is less about what specific developers want to spend their time on, and more about producing solid software.

Does not spending time on boilerplate improve the quality of software you produce? I find that it doesn't.