HACKER Q&A
📣 meiraleal

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.


  👤 toyg Accepted Answer ✓
Python. I adopted when it wasn’t popular and I believe I’ll probably never find a better language for my sensibilities.

👤 frompdx
Mostly I wonder how much I would continue to program. Something I struggle with now is thinking of interesting projects to work on with the free time I have already. Probably I would choose Clojure(Script) because that seems to be where I feel the most productive. Maybe Janet, but I've struggled to be productive with Janet for things like webapps. I might spend more time tinkering with embedded using Forth. Over the last year I've slowly built out small pieces of Forth code on the ATMega328 for controlling a small robot (writing snippets code to control an ultrasonic distance sensor, motor controller, etc). One day I'd like to tie all of that together but it is a very time consuming process.

What I would really want to focus on if money were not an issue is photography. Before the pandemic I had planned to build a darkroom in my basement. It seemed non-essential so I've put it on hold. When things start to go back to normal I won't feel guilty about hiring contractors to come to my house to help me indulge my hobby. Darkroom work is very time consuming but also very satisfying. Meditative even. You need a proper space for it and most importantly you need lots and lots of time.

I would also spend more time exercising, or at least as much time as I do now. Working from home has allowed me to replaced the time I would have spent commuting with getting more sleep and exercising 3-5 days (usually 5) a week. At the moment I think I am the strongest I've ever been. Not as fit as I was in my teens and early 20s, but definitely stronger and more disciplined. Anyway, what's the point in having free time to indulge yourself if you are too frail? I'd like to keep my momentum going and hopefully remain physically capable when I'm old.

I think I would want to get out of the house more. Go talk to people. Take pictures of people. Write about it. This was something I was passionate about long before coding became part of my life. Coding pays the bills and gives me money to spare so I can at least do some of this. I think it would be hard to eek out a living on something like this alone, but who knows?


👤 diragon
Whatever it is, it needs to be simple (in the way C is simple) and modern. Currently Zig fits that combo technically. Other features that are nice to have:

- REPL or some mechanism that's close enough (zig has --watch which is not close enough, but shows some promise perhaps). Python is ideal. Common Lisp traditionally too, but it's a bit clunky in other ways.

- resource efficiency. Zig's pretty ideal for this.

- superb package management. Rust's Cargo is the shining example. Zig has no package management yet.

- if async is a thing, it needs to be a core thing that's supported by everyone. Zig's looking good here.

Some features that are hip now that I don't care that much:

- extreme safety when it costs fluidity and fun.

- OO features

- advanced PL features

- gathering all PL features just for the sake of having them

These are my opinions today. Next week, I might be in the mood for "Why were any languages invented after Common Lisp? Seems like a huge waste." sigh Sometimes I wish I knew only a single programming language.


👤 d26900
I picked 11 languages that I found to be interesting:

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/


👤 a_e_k
Probably still C++. Sure, it's got plenty of warts and pitfalls, but at this point I'm sufficiently used to the ones in the subset that I work in that I can just get on with the domain problem and not really have to think too much about the language.

👤 softwaredoug
Probably depends more on the kinds of projects I’m doing in this hypothetical semi retirement hobby lifestyle :). If I’m playing with data science stuff, Python. If I’m in a large codebase, something statically typed. If I just want to learn languages, Haskell? Forth?

👤 ddingus
PASM

Parallax Propeller Assembly Language.

It is beautiful, more productive than it should be, and the chip is s lot of fun.


👤 the_only_law
Ada, Erlang, maybe something like D. I'd probably find time to learn about all that category theory / lambda calculus stuff and use some more pure functional stuff.

👤 loa_in_
Haskell for anything on a system, Forth for anything on a microchip, React for anything in a browser with Rust for fast web code (in WebAssembly)

👤 peruvian
I wouldn't code projects at all anymore but probably scripts or small things in Python or JavaScript when need be.

👤 cristiansosa
I am really comfortable using Javascript and PHP.

So, when it's a hobby, so as not to feel pressure, I program in these languages.


👤 tomjuggler
Processing. The creative coding language.

👤 qq4
Haskell, hands down.

And here I thought there were jobs to be had in Clojure. Am I deluded by the functional Kool-Aid?


👤 vimy
C++. Build my own 3D engine and game. Even more fun if I code it on a pentium 1 with windows 95.

👤 oumua_don17
Common Lisp

👤 PaulHoule
AVR8 macro assembler.

👤 yuppie_scum
Not sure if this counts but I really enjoy Terraform.

👤 html5web
I’d choose Python.

👤 Qem
Pharo, surely.

👤 forgotmypw17
Perl

👤 ska80
Common Lisp and Idris :)

👤 pknerd
Turbo Pascal and VB

👤 nocubicles
I would code in Go.

👤 runawaybottle
Javascript.

👤 xkriva11
Pharo!

👤 e-clinton
Rust

👤 branneman
Racket

👤 SinisterAlex
Scheme :O

👤 alexmingoia
Haskell.

👤 tubularhells
If I did not need the money I would never code again in my life, besides some automation and web scraping to archive stuff I want a local copy of. Life is simpler and happier for me when I minimise computer time.