Ask HN: Which programming language should a journeyman programmer learn?
I'm looking for some advice and/or enthusiasm on which programming language you might recommend to a young journeyman programmer looking to broaden their horizons beyond the mainstream imperative stock.
As some background: Like many from the past decade, I was introduced to programming and cut my teeth via Python, and while it holds a soft spot in my heart for its lovely syntax and idioms (personal preference), I am growing weary of chasing down run-time errors in production and the squishyness of its type system (or lack thereof).
From there I've followed along the well-trodden path of imperative/OO languages one would expect to become acquainted with during the "standard" CS education, namely C & Java, along with some Golang thrown into the mix. I adore C for its close mental alignment to the computer's operations, and while I appreciate Golang and Java and have no great qualms with either, they don't scratch a certain itch.
My daily driver at work is Typescript. I find writing vanilla js to be generally objectionable.
I would classify myself as a competent journeyman, and I am really looking to branch out and broaden my perspectives. I'm not sure what itch it is I'm trying to scratch, but I'm looking for an enthusiastic community and a language that brings a lot of "joy", if that makes sense. I'm not looking for any commercial benefit out of this, but hey, if being an expert in the lang is highly profitable, that's also a data point.
A good type system might be where my interests are first piqued, but it's not a hard requirement. Similarly, my mind jumps to Functional Programming, but purity is not a requirement either.
So, if you're an experienced vet, found yourself in a similar situation beforehand, have been having similar inclinations, or are just a fanboy/girl for your specific lang, please share your thoughts!
Should I be wrangling data functional-style sans types with Clojure?
Playing around with the BEAM with Elixir/Erlang?
Diving into Scala types and the Akka framework?
Jump into the deep end with Haskell?
Try my hand at Rust and systems software?
Ocaml, a language I know nothing about?
I have formal CS training, so I'm not overly intimidated by the more "academic" languages.
Thanks a lot in advance!
26 comments
[ 3.0 ms ] story [ 62.5 ms ] threadThis almost sounds like language as an 'intellectual pet' type of motivation, which is ~somewhat at odds with "broadening my horizons". Why not explore 'new [advanced] things to create' in one of the most fun languages you already know? Or, get excited by exploring a dimension such as 'performance', or 'distribution', etc.
So, my 2c is first decide if you want to be a linguist or a writer.
And fair enough point. To use your analogy, this question is more of the "linguist" side.
If I were solely interesting in the "writer" side, I would be building distributed systems in Go.
[1]: https://chapel-lang.org/
-Brad
[1]: https://chapel-lang.org/community.html
How would you characterize the suitability of Chapel for (what is being called) ML-Ops both in terms of work distribution (something like 'Ray' etc.) and interop with ML/GPU libraries and frameworks?
But if you’re really after a recommendation, then I’d suggest either go for a functional language (like a LISP, Scala, OCaml, etc) or a low level systems languages (like Zig or Rust). Or even one that overlaps with both domains?
It really does just depend on what you want to do next though. Nobody else can tell you that.
In general, it's a low-risk decision, because it's only for personal enrichment. But time is precious at the moment and it would be quite a good bit of fun to hear from some people that simply ~love~ their language.
I know, I know.. questions like this can sometimes lack rigour and lead to a simple cheerleading fest, but I was hoping for a relatively lighthearted thread.
I am also convinced this is not an isolated feeling on my part, what I mean by that is, I'm sure this is a relatively common phenomenon among younger engineers who enjoy CS in and of itself, and I would be very interested in hearing what they have to say.
Thanks for the Zig recommendation!
So at the moment I really think I’m stuck between Scala, Haskell, or Elixir.
It’s tempting for people to simply say, “Learn all of them” but for practical reasons that’s not possible at the moment. So thanks a lot for your comment.
Elixir is def cool but keep in mind that it is just much more normal of a language. You can probably learn it in a few weeks. Haskell is a much longer journey
So yeah, learn Haskell, then make money with Scala.
To scratch your itch of broadening your horizons and learn lots of amazing features that don't exist in the languages you know (Python, JavaScript, Typescript), I recommend Scala
If you want types, I'd check out Haskell, or OCaml or F#.
So I guess what my advice is decide how you want to grow and choose a language at that extreme.
If you've learned a mainstream get it done language you wont get much out of learning another one.
Go is a strange mix of functional and imperative that, despite its simplicity, is illuminating in its own way.
Getting to really know the shell and regex, inside and out, can also be a revelation.
Why not? Common Lisp macros allow a programmer to implent a new language and to make optimizing compilers. Take for example Coalton, which is a strongly, staticaly, and strictly typed language that can interact with the base language
If I can copy-paste unmodified CL code into Coalton, and it still runs, then Coalton's typing isn't particularly strict. If I can't--if I have to add some form of escaping or FFI decoration--then Coalton isn't lisp. Not that that is a bad thing--just wasn't what I was writing about.
https://coalton-lang.github.io/