r/programming • • Feb 22 '15

Java Makes Programmers Want To Do Absolutely Anything Else With Their Time

http://www.forbes.com/sites/quora/2015/02/21/java-makes-programmers-want-to-do-absolutely-anything-else-with-their-time/
35 Upvotes

636 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Feb 22 '15

[deleted]

14

u/[deleted] Feb 22 '15

Oh. My. God. No.

RoR is so nice and cute starting, but if you try to do complex things it turns into a nightmare. It's too opinionated, too intertwined, and too DRY, like almost every piece of Ruby code I'v seen. And add in performance concerns and it's a nightmare.

And that's ignoring the hellstorm that is getting the right version of Ruby installed, and the fact that probably 30% of Ruby libraries are shims into C code. Good bloody luck installing half the things you need on a mac, enjoy compiling QT or god knows what C/C++ lib on your CI boxes to match your dev setup.

Java at least you download a JAR and you're done with the deps bit.

0

u/[deleted] Feb 22 '15

[deleted]

1

u/[deleted] Feb 23 '15

That's not really a fair comparison. Maven and Ant are not really state of the art any more in Javaland. Also, I find that Rake scripts become incomprehensible and convoluted particularly fast.

→ More replies (1)

7

u/adrianmonk Feb 22 '15

Maven is unpleasant, but it's not Java.

I can't think of a reason why you'd ever want to use Maven instead of Gradle at this point.

0

u/[deleted] Feb 22 '15

[deleted]

1

u/Deinumite Feb 22 '15

The thing about rubygems and bundler is that they were kind of the first things to show up for Ruby. They didn't have to displace technologies as widespread as maven and ivy.

Java has ant, ivy, maven... and maven is pretty obtuse to work with but theres so much knowledge and man hours poured into it that people are afraid to lose that investment.

That being said, the combination of bundler gems rake and rvm is pretty much the standard i compare every other language's tools to.

14

u/geodel Feb 22 '15

I have heard Maven problems will be solved with AbstractMavenFactory.

6

u/DonHopkins Feb 22 '15

That didn't turn out so great, but now they're working on ConcreteMavenIncinerator.

0

u/[deleted] Feb 22 '15

[deleted]

3

u/geodel Feb 22 '15

You are in luck! you can either choose dependency injection or service locator. They have abstracted these.

0

u/[deleted] Feb 22 '15

[deleted]

2

u/yogthos Feb 23 '15

Just make sure it loads via OSGI for future extensibility. :P

→ More replies (1)

4

u/tieTYT Feb 22 '15

What's your issue with Maven? I find it pleasant, but maybe I have Stockholm syndrome and don't know it?

0

u/[deleted] Feb 22 '15

[deleted]

2

u/tieTYT Feb 22 '15

Yeah that's totally fair. I probably have a blub paradox going on with build and dependency management tools. I know maven pretty well, second to ant, grunt, npm, Leiningen, ivy, lineman then rake, in that order. Rake is a situation where I learned it 5+ years ago and haven't used it since, so I barely know it.

What I like about maven is that it's opinionated enough that I can jump right in to any pom.xml and understand how the build works (because I already got past the learning curve) and it's flexible enough to achieve anything I've ever wanted.

As the build complexity increases, the maven build file gets linearly complex (or better). Whereas, the grunt and ant build files seem to get exponentially more complex. But, I can't speak for Rake and Blunder because I don't have real experience with them. Maybe they're just as good in these ways minus the high learning curve.

1

u/seruus Feb 23 '15

What I like about maven is that it's opinionated enough that I can jump right in to any pom.xml and understand how the build works

That is one point I like about Maven (and one of my biggest issues with sbt. Holy molly, sbt files can get pretty arcane even for simple stuff), but when dealing with large projects with five+ 1000+ lines pom.xml files, I hate it.

Leiningen is my current favorite dependency manager, but unfortunately I use Clojure mostly in my free time, so...

2

u/solatic Feb 22 '15

You must be joking.

Sure, Maven's documentation sucks and XML sucks. Yes, its a pain in the ass to migrate legacy Ant projects to Maven and getting them to fit into Maven's lifecycle. But once you make the migration, you understand that the constraints that Maven puts on your project make your build so incredibly rock-solid. We had a build that required a 20 page IDE configuration guide complete with FAQ and troubleshooting sections for onboarding and half the time it wouldn't work anyway back when we had Ant. We went from that to one-click effortless builds for everyone including CI once we deployed Maven.

Have the Maven libraries? Have a modern JDK? Have a working connection to a repo with all your deps and plugins? Then it just fucking works and that is such a Godsend that you have no idea.

Literally the only way you could improve on Maven would be to move away from XML configs and make it easier to write plugins. Otherwise, it's pretty close to perfection, if you agree with its constrictive design choices.

1

u/Azr79 Feb 22 '15

And don't forget rvm, but seriously, gotta give it to RoR, it's very pleasant to use, it just works, even if you fuckup it sometimes might work

0

u/[deleted] Feb 22 '15

[deleted]

1

u/Azr79 Feb 22 '15

you're doing RoR on windows? what went wrong in your life? Install a Linux virtual machine at least.

I wrote a little detailed documentation for myself that explains how to make Ubuntu RoR production server, I can share it with you if want, but for the love of god stop what you are doing.

→ More replies (1)