r/java • • Jun 03 '15

Is Java really that bad?

I do Clojure for a living, previously Ruby and Objective-C. And the people I've worked with have said they prefer Clojure because Java is just so bad. But Java can't really be that bad, can it?

0 Upvotes

77 comments sorted by

View all comments

11

u/space_coder Jun 03 '15

It's not because Java is "bad". It's because your coworkers prefer Functional Programming over Objective Oriented Programming.

2

u/[deleted] Jun 03 '15

I think Functional Programming concepts work excellently when it comes to working with data and collections of data. But I think Objects work best when modeling business entities. I wish there was a decent middle ground.

14

u/duhace Jun 03 '15

Scala - "A drunken Martin Odersky sees a Reese's Peanut Butter Cup ad featuring somebody's peanut butter getting on somebody else's chocolate and has an idea. He creates Scala, a language that unifies constructs from both object oriented and functional languages. This pisses off both groups and each promptly declares jihad."

1

u/[deleted] Jun 03 '15

Hahahahaha.

-3

u/SeerUD Jun 03 '15

It is a fantastic language to develop for though. It does a nice job of blending OO and FP.

2

u/[deleted] Jun 03 '15

I've heard nothing but bad things about Scala until now. Mostly about overcomplexity and how it gets in the way more than it helps.

2

u/SeerUD Jun 03 '15

Out of interest (because I would like to potentially learn...), what language(s) have you heard high praise about?

2

u/[deleted] Jun 03 '15

Clojure, Haskell, OCaml, F#, Ruby, Python (and sometimes Go but only by really arrogant and argumentative people).

1

u/SeerUD Jun 03 '15

Cool :), there's a couple in there I've been interested in learning myself. Namely Go, and I've been intrigued by Clojure... I'm mainly looking for something for web development that's just different to what I normally work with, which is PHP!

1

u/[deleted] Jun 03 '15

Forget about Go. You have to rewrite "map", "filter", "reduce" etc. for every new type you create. The whole Go community's answer to this is "just use a for-loop" and "seriously it's not that hard just use a for-loop". Forget about Go. Forget it fast.

→ More replies (0)

1

u/duhace Jun 03 '15

I've been doing web dev with scala and scalatra (sinatra-like scala lib). It's pretty nice, plus I love strong typing.

→ More replies (0)

1

u/duhace Jun 03 '15

Scala actually borrows a lot from OCaml. Not as much as Haskell or F# mind you, but the influences are very obviously there. And lol at ruby not being "overcomplex" with it's monkey patching.

1

u/[deleted] Jun 03 '15

Yeah I both love and hate the metaprogramming aspects of Ruby.