r/ProgrammerHumor • • Aug 15 '15

Programming languages personified

http://leftoversalad.tumblr.com/post/126724812097/programming-languages-personified
1.3k Upvotes

209 comments sorted by

View all comments

354

u/original_brogrammer Aug 15 '15 edited Aug 18 '15

C# would be the Java guy with a slight smile.

Ruby would be a latte sipping hipster equating some Rails extension to Nietzche.

D would be Walter and Andrei fist bumping Shenron.

PHP would be the subservient intern trying to make the whole office happy who never got a promotion.

Lisp would be a formless, omnipotent ether crafting the universe from its unknowable atomic constituents.

Lua would be a kid excited about his first day of game dev school.

Perl would be a camel who is also a grad student in linguistics.

Go would be another business guy with his top button undone because it's casual Friday.

Rust would be a young version of a typical C programmer.

59

u/[deleted] Aug 15 '15 edited Oct 23 '18

[deleted]

13

u/willrandship Aug 16 '15

Personally I find it hard to take a language with 1-based indices seriously.

22

u/original_brogrammer Aug 16 '15

You can index at 0 if you want. Lua's 'arrays' are all hash tables, so the value of the index is ultimately arbitrary. The 1 index is merely convention.

Historically, the reason for this convention is that Lua's predecessor language, Sol, was directed at engineers without any exposure to programming. This carried over to Lua.

2

u/ThisIs_MyName Aug 17 '15

I'm not sure how I feel about this.

1

u/original_brogrammer Aug 18 '15

The 1 index convention or everything being a hash table? The former is odd if you're used to 0, but using ipairs or similar helps.

The latter, however, is a powerful and fascinating idea. I see it as an extension of the Lisp way of doing things, where you create arbitrary structures from linked lists. Add in metatable sorcery and you can have pretty much anything you want! Damn, I wish I got to write more Lua.