Hacker News new | ask | show | jobs
by christiansakai 2255 days ago
I think that's the main problem. Everyone writes Scala differently. In Go pretty much everything is quite similar. In JavaScript people also write things differently, like any other language really, but in Scala it is compounded.

Is there a concrete example of the Python-like code vs the more complex ones? I appreciate the help.

I'm thinking what language next should I pick up. It is either OCaml or Scala.

3 comments

> Is there a concrete example of the Python-like code vs the more complex ones? I appreciate the help.

Haha this book is going to be 400 pages of concrete examples. It's not out yet, so you'll have to take my word for it for the next few weeks while the last round of reviews and editing are incorporated into the manuscript. If you're interested, put your email down and I'll let you know when it's ready!

I've been wanting to learn more Scala and this book seems perfect! I'm definitely going to buy it when it comes out. The website mentions that there's a PDF download of the free chapters, but I can't seem to actually find it. Do you have a direct link?
Lol okay. Thanks for the awesome work! I'll put down my email there.
This isn't helpful for you if you're trying to pick one, but I find OCaml and Scala somewhat complementary for my tastes:

Scala is a pretty great investment for services, big data, etc. It has a robust ecosystem.

However, the compiler is slow, and startup time can be slow (and Graal and Scala Native just aren't options yet), and if I want to make some tool that gets called fast in a loop or deploys as a "small", native binary, OCaml is nice alternative which I prefer to the only other compelling entry in this area, Go.

Experts' code looking like beginners' code is not a good thing! If better learning a language doesn't make your code clearer and more concise, the language isn't pulling its weight.