News for hackers. Stuff that matters.
Re:“I am literally losing sleep” over Java (1996) by thomascgalvin on Thursday January 06, 2022 @10:43AM (#29824954)
> The overuse of design patterns, etc.

Java has been trending away from this for some time now. A modern Spring app looks nothing like an old J2EE app.

Re:“I am literally losing sleep” over Java (1996) by dagw on Thursday January 06, 2022 @10:52AM (#29825108)
A lot of us jumped off the Java train in disgust at the height of the J2EE craze and never looked back, so fairly or unfairly we'll forever be judging everything Java by that tainted memory.
Re:“I am literally losing sleep” over Java (1996) by pjmlp on Thursday January 06, 2022 @11:05AM (#29825295)
A framework originally designed for Objective-C, actually.
Re:“I am literally losing sleep” over Java (1996) by tombert on Thursday January 06, 2022 @12:46PM (#29826871)
Wait, is that true? I know WebObjects was designed around ObjC, but a quick ten seconds on Wikipedia doesn't indicate that J2EE was designed around ObjC initially.

----

Unnecessary opinion: I don't like either, but WebObjects sucks about 1/10th as much as J2EE.

Re:“I am literally losing sleep” over Java (1996) by pjmlp on Thursday January 06, 2022 @01:26PM (#29827617)
You should have spent more than ten seconds.

> By the time DOE, now known as NEO, was released in 1995, Sun had already moved on to Java as their next big thing. Java was now the GUI of choice for client-side applications, and Sun's OpenStep plans were quietly dropped (see Lighthouse Design). NEO was re-positioned as a Java system with the introduction of the "Joe" framework, but it saw little use. Components of NEO and Joe were eventually subsumed into Enterprise JavaBeans.

Taken from https://en.wikipedia.org/wiki/Distributed_Objects_Everywhere

Re:“I am literally losing sleep” over Java (1996) by tombert on Thursday January 06, 2022 @01:28PM (#29827668)
Ah, I was just quickly reading on the J2EE wikipedia entry and didn't see "Objective" anywhere on there.

You're absolutely right, thank you for clarifying!

Re:“I am literally losing sleep” over Java (1996) by pjmlp on Thursday January 06, 2022 @02:04PM (#29828250)
No issues, and here is another one, while Java might have a C++ like syntax to make it more appealing to mainstream, its main influence was Objective-C, not C++.

https://cs.gmu.edu/~sean/stuff/java-objc.html

Hence interfaces, dynamic loading, reflection and so forth.

Re:“I am literally losing sleep” over Java (1996) by tombert on Thursday January 06, 2022 @02:12PM (#29828365)
Interesting.

Bringing it back to a previous point I made, I met someone who claimed to have helped port over the WebObjects framework from Objective-C to Java, and he claimed that while it's not a 1-to-1, you can fairly easily map a lot of the Objective-C semantics to Java, making the porting process not that hard.

Re:“I am literally losing sleep” over Java (1996) by pjmlp on Thursday January 06, 2022 @02:19PM (#29828507)
Re:“I am literally losing sleep” over Java (1996) by smrtinsert on Thursday January 06, 2022 @01:48PM (#29827983)
Yep spring since 1.12 here.
Re:“I am literally losing sleep” over Java (1996) by fsdjkflsjfsoij on Thursday January 06, 2022 @12:56PM (#29827052)
Modern Spring Boot is still incredibly bloated and full of questionable design patterns. A simple web application should not consume hundreds of megabytes of RAM by default and startup time on modern hardware should be basically instantaneous. Classpath scanning and annotations are still massively overused and most of the time they're accomplishing little more than obfuscation and turning compile time errors into runtime errors.
Re:“I am literally losing sleep” over Java (1996) by kaba0 on Thursday January 06, 2022 @03:32PM (#29829641)
Why exactly? How often do you start up a web application? And it’s not like the RAM is not there to use it — thread pools, db connection pools, etc have to be set up.