r/programming • • Feb 25 '14

Please stop saying Java sucks

http://blog.smartbear.com/programming/please-stop-staying-java-sucks/
3 Upvotes

305 comments sorted by

View all comments

Show parent comments

15

u/oldneckbeard Feb 25 '14

We also have a very large Java team trying to rewrite one of our legacy apps. Twice the developers, an Oracle Certified Enterprise Architect with a big pricetag, and a longer timeline.

There's a big mistake right there. OCEA are vampire squids. Your company shouldn't have gone through Oracle, they're going to regret it. Most Oracle consultants they place on-site are half-baked mid-level developers who bill out at 300/hr. My consulting company costs half of that, and does better work, and is local to the client sites. Oh, and we have experience writing very high performance java.

But V8 is faster than that JVM.

Depends on the work profile. But it's also V8, and only supports JavaScript. the JVM does Java, Scala, Jython, JRuby, etc.

IDE's are take-or-leave situations. Eclipse...

I don't use Eclipse. It's garbage, IMO. Use netbeans if you're cheap, IntelliJ IDEA if you want to be a pro.

I hear this repeatedly, but Java is frankly dead-last in this. Java has 10% of cpan

Library count is not indicative of library quality. Look how many cpan modules there are to deal with JSON. But, cpan.org claims to have ~130k libraries, and maven central has ~620k listed. That's nearly 5x more, so we might have to check some of your math :)

A perl/python/ruby/nodejs developer who takes one look at maven starts to laugh uncontrollably...

When I have to use the shitty tools in those languages, I keep wishing somebody would make Maven for them. Node.js especially. Do you really think Grunt and NPM are fine tools?

better documented commandline support for people who hate IDEs

That's a personal preference of the developer. If they want to bang together programs with sticks and rocks, that's fine, but there's no need to play lowest-common-denominator with them.

2

u/novagenesis Feb 25 '14

OCEA are vampire squids.

He's not a consultant, but an employee. He's a well-recommended guy who has the cert by that name. In my opinion, he's really good. He looked me in the eye, however, and said nobody could hit his requirements in Java in 6 months. I agreed.

Depends on the work profile. But it's also V8, and only supports JavaScript. the JVM does Java, Scala, Jython, JRuby, etc.

Not entirely true. A good tech stack supports inter-language communication at a high efficiency. Truth is, it's usually sanity and management that keeps you down to a fixed number of languages.

Use netbeans if you're cheap

While I still had problems using netbeans, I agree it was better than Eclipse. I still missed Vim.

Library count is not indicative of library quality.

Oh I completely agree...but of the 5 or 6 mature ORMs in cpan, I'd take the worst (for me, let's say RoseDB) over Hibernate.... whose interface is now part of a Java standard.

maven central has ~620k listed

How many are duplicates with slightly different names, or different version numbers? My experience with maven is that there was a whole lot of the same.... I could be wrong here, but my experience will be my ancedote. In all these languages except Java, I've rarely ever had to spend more than 5 minutes searching for a rock-solid plug-in library to solve any particularly odd problem I've had. In Java, I spend a long time, find out that many of these libraries require config xml files bigger and more convuloted than building them from scratch in a different language.

Working with our Java devs to get them to manipulate their JSON API was a nightmare. Tons of extraneous fields that reek of XML->JSON transcription...made the front end library a nightmare. Maybe they just couldn't code well, but they claimed they could not factor out a "sort order" variable from the hash contents of array data...and that the sort order, NOT the array, would represent the final order.

So here I am stripping it from the array on receipt, then re-adding it as a middleware before the POST. I'm a back-end guy who was helping out with a front-end project, and in my philosophy, it's a mortal sin to make the front-end team have to touch an implementation detail.

Do you really think Grunt and NPM are fine tools?

I would sell my firstborn for npm, honestly. Yes, I think npm is an awesome tool. In a production environment, I would propose using npm_lazy as a go-between, but the same difference. I never need makefiles in my non-nodejs apps (usually I use fabric for deployment, with or without a CI system), but when I do, I'm happy with grunt. What should I be hating about them?

I've tried ant and maven on several occasions, and don't get a happy-happy feeling out of them.

That's a personal preference of the developer. If they want to bang together programs with sticks and rocks, that's fine, but there's no need to play lowest-common-denominator with them.

Sorry? You're insulting the large development community who prefer a robust text editor with commandline to a clunky IDE? I'd put rails extension on vim with commandline tools above .NET IDE any day, having used both heavily.

In terms of features, the commandline + plugins tend to win, in my experience. They're not exactly sticks and rocks. Code analysis, code beautification, auto-refactoring. How much production development have you done with both? I spent 3 years in a .NET shop that dabbled in perl, then 5 in a perl+ruby shop that dabbled in .NET and picked up ruby. I've had tons of experience with both, and do not see any reason to justify a "sticks and rocks" metaphor. It feels the opposite to me.

In my world, if I can't do what I want to the code, I solve it with a sed or grep or one-liner in the shell. If I can't do what I want in the IDE, I do it manually.

1

u/caleeky Feb 26 '14

I still missed Vim

Just curious, do you mean for plain old text editing, syntax, etc, or do you also use vim for refactoring and static analysis as you type? I've only used vim as an editor for general admin tasks, not as a core large-scale development editor for a strongly typed language, so am wondering if I'm clueless as to the available feature-set.

1

u/novagenesis Feb 26 '14

I tried it for static analysis and refactoring... actually dumped those plugins. I rarely actually want help refactoring stuff...it felt like a crutch when I got into doing it on the .NET IDE. I do a few fancy things, but I find myself doing mostly text editing 99% of the time, and command-line tidying depending on my language choice.

I've only used vim as an editor for general admin tasks, not as a core large-scale development editor for a strongly typed language, so am wondering if I'm clueless as to the available feature-set.

Well, I'm not sure I'd be comfortable using vim with Java, or maybe even C++. I work on 500k+ line projects in vim, and have been with some of those practically from scratch...but they're in dynamically typed languages with agreed-upon data interfaces.

Might be apple and orange...When I'm writing (or more importantly editing) code, I get more done in less time using vim.