News for hackers. Stuff that matters.
Re:Anders Hejlsberg: You Can't Maintain Large Programs in Ja... by brazzy on Monday June 04, 2012 @07:46AM (#4063544)
Apparently you haven't looked at Java development in the last 5 years, so you may want to stop making statements about it that make you look like a fool.
Re:Anders Hejlsberg: You Can't Maintain Large Programs in Ja... by Tichy on Monday June 04, 2012 @07:52AM (#4063563)
I just did a three month enterprise Java project. I admit that I hadn't used it in a while, so I picked Spring like in the old days (+Hibernate at first, but had to kick it out eventually). And hell it turned out complicated (even with Spring). What is the new mantra that makes Java suddenly usable? Playframework?
Re:Anders Hejlsberg: You Can't Maintain Large Programs in Ja... by brazzy on Monday June 04, 2012 @09:11AM (#4063801)
It doesn't look like you're interesting in anything except following your own mantra of "Java suxx", but XML configuration files (which were never really about working around the type system) have been almost universally replaced by annotations.
Re:Anders Hejlsberg: You Can't Maintain Large Programs in Ja... by Tichy on Monday June 04, 2012 @11:39AM (#4064443)
I know about annotations, but I admit to not being the biggest fan. And they lead to even more files...
Re:Anders Hejlsberg: You Can't Maintain Large Programs in Ja... by brazzy on Monday June 04, 2012 @01:59PM (#4065058)
How so? I've only ever seen them eliminate external configuration files. Hell, thanks to annotations and some simplifications to the standard, EJBs have turned from the epitome of overengineered bloat into a simple, lean service layer.
Re:Anders Hejlsberg: You Can't Maintain Large Programs in Ja... by clownz0r on Monday June 04, 2012 @11:42PM (#4067203)
Annotations have only ever led to less files for me
Re:Anders Hejlsberg: You Can't Maintain Large Programs in Ja... by berntb on Monday June 04, 2012 @07:57AM (#4063580)
Could you elaborate(/give references) about your claim?

(I don't know anything about the GP, but I really haven't looked at Java development in 5++ years. (-: If nothing else, I might need to update my jokes :-) )

Re:Anders Hejlsberg: You Can't Maintain Large Programs in Ja... by brazzy on Monday June 04, 2012 @09:06AM (#4063779)
XML configuration files have pretty much disappeared/become optional. It's all done via annotations nowadays, which are much less verbose since their context is implicit, and which are actual language constructs known to the compiler.
Re:Anders Hejlsberg: You Can't Maintain Large Programs in Ja... by berntb on Monday June 04, 2012 @09:48AM (#4063953)
Thanks!

Annotations have the disadvantage of needing a recompile to reconfigure?

Re:Anders Hejlsberg: You Can't Maintain Large Programs in Ja... by TimGebhardt on Monday June 04, 2012 @11:25AM (#4064372)
Can I ask why you're rewriting code on your production server on the fly without the aid of the rest of your tool chain?

In any good development shop you make a change, your CI server picks it up, builds it, and creates a release candidate you deploy. Every change should be checked into source control and built by your automated build bot.

At that point the difference between changing an annotation and an XML configuration file should be moot. I'd think the annotation would be easier because you can still mess up the syntax of the XML file pretty easy (e.g. "Can you change the blahblah label to System & such?" That ampersand will hose your system when you get it to production).

Re:Anders Hejlsberg: You Can't Maintain Large Programs in Ja... by brazzy on Monday June 04, 2012 @02:11PM (#4065115)
Well, there's always some genuine configuration that contains the actual differences between environments, like DB connection and API keys, and which isn't going to be part of the automated build.

But that's a tiny subset of what architecture astronauts try to label "configuration".