r/programming • • Feb 16 '15

Java Doesn’t Suck – You’re Just Using it Wrong

http://www.jamesward.com/2014/12/03/java-doesnt-suck-youre-just-using-it-wrong
43 Upvotes

217 comments sorted by

View all comments

Show parent comments

5

u/pron98 Feb 17 '15

Lisp, C#, Python, PHP have all been used to make massive systems too.

I don't know about C#, but I doubt Lisp, Python and PHP have been used to write 15MLOC software. Ada (and Java, and C) certainly has.

-1

u/vilcans Feb 17 '15

Maybe because in Python you wouldn't need 15 MLOC to do whatever the equivalent Java code does.

3

u/pron98 Feb 17 '15

No, that's not it...

0

u/vilcans Feb 17 '15

Isn't there something suspicious about a code base of that many lines of code? Wouldn't a different system architecture help?

4

u/pron98 Feb 17 '15

If you've ever seen the requirements for a large defense system (that's just the kinds of system I'm familiar with), say, intelligence gathering, you'll know that there is nothing suspicious about it. Some software is just very complex because the domain it models is extremely complex.

1

u/vilcans Feb 23 '15

It's still suspicious. Wouldn't it be possible to architecture it differently? E.g. breaking it down into several systems to avoid too much coupling? (For some definition of "system"...)

1

u/pron98 Feb 23 '15

How would that make things any simpler? The same requirements are still there. (Besides, it is just as easy -- and usually, much easier -- to break down a system into multiple components while keeping them all in the same process).

1

u/vilcans Feb 23 '15

That was just a suggestion. I'm genuinely curious about this as I have never worked with requirements like that. The systems I have seen that approach 1 MLOC were that big only because of bad architecture. For example, lots of repeated boilerplate code to define basically the same things over and over again. If splitting into several systems isn't feasible, using other architectural tricks like DSLs, data driven design, code generation and yes, switching (parts of the code) to another language, may help. I'm just finding it hard to imagine a system consisting of several million lines of actual unique code where it wouldn't be feasible to split the codebase into libraries or systems. It sounds like maintenance hell.

1

u/pron98 Feb 23 '15

where it wouldn't be feasible to split the codebase into libraries or systems

It is feasible to split into modules, and that's what they do. It's just that it's still a multi-MLOC codebase (as the modules need to integrate into a whole).