DEV Community

Cover image for What Instrument is Your Programming Language?

What Instrument is Your Programming Language?

Ryan Palo on March 07, 2018

As I was scootering to work today (it's a Razor, I'm pretty cool), I had a thought. Programming languages are like musical instruments. Think abo...
Collapse
 
lschultebraucks profile image
Lasse Schultebraucks

Haha, love it πŸ‘Œ Great post, Ryan!

What about functional languages? What kind of instruments did they represent?

Collapse
 
rpalo profile image
Ryan Palo

Hmm I'm not sure. Without thinking too hard, I would have to say the theremin. Very cool, requires a complete mindset shift to learn, and if you meet someone that knows how to play it, you're definitely going to hear about how great it is for the muscles in your fingers. :)

Good catch, though, I can't believe I forgot about that whole branch of languages!

Collapse
 
miffpengi profile image
Miff

I think C# would be the electric piano. It's not as well loved as it's other keyboard brethren, but it's still widely used (or so I've been told). It may sound too commerical and depending on your setup cost a lot, but it's dependable and solid and you can hook it up to other instruments via MIDI (the CLR).

Collapse
 
rpalo profile image
Ryan Palo

Nice! That’s some solid analysis!

Collapse
 
idanarye profile image
Idan Arye

Haskell is not an instrument, because playing music would be a side-effect.

Perl is bagpipes, because you need a Scottish-level beard to use it.

Collapse
 
dwat3r profile image
Oliver Hechtl

Haskell is a modular synthetizer. You'll never fully understand it.

Collapse
 
rpalo profile image
Ryan Palo

I agree, Haskell is a perfect sine wave that doesn't worry about whether it's getting output as sound or not. :)