Ask HN: What language would you code if you didn't need to make money?
I'm currently a frontend JS/React engineer but planning to retire in one or two years (FIRE) and don't plan to stop coding, only not doing it for money. My language of choice will probably be Clojure.
48 comments
[ 2.4 ms ] story [ 88.1 ms ] threadParallax Propeller Assembly Language.
It is beautiful, more productive than it should be, and the chip is s lot of fun.
And here I thought there were jobs to be had in Clojure. Am I deluded by the functional Kool-Aid?
2020 was the year I learned about Forth. It really is fun and practical. I run FlashForth on my Arduino Uno.
It also depends somewhat on how many potentially-error-returning calls are involved in an operation. Go’s verbosity means there can be 7+ different error return points in what would be a single statement in another language (HTTP request, subprocess, etc). I sometimes like the fact that I have to handle error for the operation generally, but not at that level of detail.
So, when it's a hobby, so as not to feel pressure, I program in these languages.
C, C++, Python, JavaScript, Java, Ruby, Scala, Rust, Kotlin, TypeScript, Swift.
Then for each language I created categories (7 in total):
- Job Results from Indeed Japan
- Release Year
- Salary in Yen
- Stack Overflow's Dreaded Languages
- Stack Overflow's Loved Languages
- Stack Overflow's Wanted Languages
- Tiobe Rank
After that, I first discarded 63 % of the suboptimal languages from each category (37 % rule). And selected (roughly) 37 % of the most optimal languages from each category.
Finally, I gave a point for the top 37 % languages in each category, and it culminated to:
1. Python
2. JavaScript
3. Rust & TypeScript
4. C
IOW: the 37 % rule tells me that these programming languages are decent.
Python, JavaScript/TypeScript and C have a solidified job market already. (More than 9000 results; ignoring the outlier TS. A minimum salary of 800000 yen.) The only outlier with the lowest result was Rust. (Kotlin was the second lowest, and Swift the 3rd lowest.) But the heavy Stack Overflow weighing (42 %) brought Rust into the top 4.
So the answer is: Rust. (The language that I would like to use in a professional setting, but can't.)
Websites used:
- https://insights.stackoverflow.com/survey/2020#technology-mo...
- https://jp.indeed.com/
- wikipedia.org
- https://www.tiobe.com/tiobe-index/
Though, I understand your sentiment, but I guess it's a "technically I am right situation". Or what do you think?
Tl;dr: I picked Rust. :)
Edit: Though on a second thought: you are actually right! :) Sorry OP!
I like minimalism in my own life, not the plan9 kind of autistic 'suckless' kind but the Zen Buddhist letting go variety. That's not what we have now in computer programming.
I am also sympathetic to minimalism in life (owning essentials only) and in many of my (programming) projects (single-header libraries[5], minimal dependencies).
I think I would be content with C, Bash, Python and SDL alone, if I wasn't so dependent on the need to "exchange my time for money". (And perhaps Rust as well.)
References:
[1] https://www.askonomm.com/blog/i-dont-want-to-do-frontend-any...
[2] https://jonathanwhiting.com/writing/blog/games_in_c/
[3] https://begriffs.com/posts/2020-08-31-portable-stable-softwa...
[4] https://copyanddesign.com/blog/the-benefits-of-static-websit...
[5] https://github.com/d26900/JamaisVu