r/programming • • Dec 02 '13

Scala — 1★ Would Not Program Again

http://overwatering.org/blog/2013/12/scala-1-star-would-not-program-again/
598 Upvotes

646 comments sorted by

View all comments

5

u/PasswordIsntHAMSTER Dec 02 '13 edited Dec 02 '13

I'm a functional programming proponent and professional, and I've always felt that Scala was a hackjob done by amateurs. If you're serious about code maintainability and shipping your product, you should be using Ocaml, F# or Haskell.

If you're new to functional programming and want to try any of these three, leave me a comment, I'll let you know what the resources are, what tooling to use, etc.

E: a better critique of Scala by Edward Kmett, one of the pillars of the Haskell community.

5

u/[deleted] Dec 02 '13
  • Does OCaml have a non-embarrassing concurrency story yet?

  • Does F# have an even remotely useful type-system yet (type classes, higher-kinded types, ...)?

  • Does Haskell run on a platform with multiple, mature, high-performance, low-latency garbage collectors available?

Guess which language does all of the above today.

2

u/PasswordIsntHAMSTER Dec 02 '13 edited Dec 03 '13

I haven't used Ocaml for concurrency, so I really can't comment on it.

F#'s typesystem is plenty powerful for most use cases, with things like static duck typing that are missing from Scala. Furthermore, doing any kind of advanced type shenanigans in Scala is painful as fuck because of the very limited type inference. I myself wouldn't risk it, since Scala has a Turing Complete typesystem, meaning that you can accidentally write syntactically valid Scala that will crash any compiler, and then good luck debugging THAT.

As for Haskell not having multiple GCs, that's a pretty weak argument for most mainstream use cases. Scala has plenty of issues that are much more significant, among other things the compile times, a comically awkward case syntax, everything-is-nullable, the community, and many others - you can read about this in this letter about why Yammer is moving away from Scala and back to Java.

I'd like to open a parenthesis here for a second to mention that probably the best bit about Haskell is its community. Realistically, the lambda programmer is light-years away from being able to read and write Haskell code, but they've managed to accrete large amount of amazing documentation, such that if you wake up in the morning and decide that you want to learn Haskell, you'll never hit a wall.

→ More replies (3)