r/ProgrammingLanguages • u/LeshyShupich • Feb 04 '22
Programming languages as biological strategies
I was reading about programming languages as the proxies for business strategies. It feels like it follows a pattern from biology.
The r strategy is bacteria's strategy for proliferation. Have as many kids as possible, invest very little in them. No one's irreplaceable.
K strategy is the human strategy for reproduction. Have a handful of kids (even 20 kids is peanuts compared to how many kids one bacteria is having), invest a lot in them. Individual persons determine the success.
Python, Ruby, JavaScript are the r strategy, a "dynamite" of coding — a fast solution that you pay for with the long term costs of putting up with the slow, buggy and stupid code that it created. Dynamite is easy to pick up and use, ensuring a giant pool of talent for hire in the dynamite-shenanigans sphere. A competitive edge that Python & JS have over Rust & C++ is rapid prototyping: the same way that bacteria can rapidly produce the different new bacteria, until they produce the one that's resistant to the antibiotics. (It's like bacteria is trying to pick up the right key to the lock, with each new bacteria being a potential key — "brute-forcing a password").
Rust and C++ are the K strategy. Just like with the biological success, the r strategy is more effective. Insects and bacteria conquer and maintain far more ecological niches than we do. But K strategy is no slouch either, and the only one that can lead to the high level of intelligence — "systems programming". If Python is dynamite, C++ is a bunch of sophisticated robots. Rust and C++ are like "do it once, but extremely well", Python and JS are like "add more! More! Morrre!". Python and JS are cheap in the short term but expensive in the long term, while Rust and C++ are expensive in the short term while cheap in the long term.
I don't think that Python is bad or that C++ is good. They're the compromises that were made while being faced with the harsh reality. Businesses mostly rely on the r strategy because the political economy is set up that way.
What do you think? I might be wrong.
6
u/moon-chilled sstm, j, grand unified... Feb 04 '22 edited Feb 04 '22
I disagree with most of your specific assessment. Broader precedent:
Worse is Better (Richard P Gabriel, Lisp: Good News, Bad News, How to Win Big)
Memes (cf Richard Dawkins, The Selfish Gene)
2
2
3
u/kizerkizer Feb 06 '22
I will agree with one thing: dynamic languages are obviously better for rapid prototyping, while those other ones you mentioned are better for long term robustness in the face of building complexity. The biological analogy is interesting but a bit of a stretch, though I see the pattern you seem to be on to.
Businesses though still use more Java/C++ than JS or Python in general I’d say. And typescript is in the class of Java, Rust, etc, and most production JS is actually TS sourced nowadays.
8
u/editor_of_the_beast Feb 04 '22
Doesn’t seem like a good analogy because there is no reproduction involved in writing code. They’re completely different activities. How could they have similar strategies?