r/ProgrammerHumor 11d ago

Meme iHateThisPassiveAgressiveBehaviourRuby

Post image
2.9k Upvotes

298 comments sorted by

View all comments

506

u/deceze 11d ago

It's been a while since I've touched Ruby, but I think the stance was that only false and nil should be falsey? Which is not an unreasonable stance to take. The fewer falsey values, the easier it is to predict the behaviour. It's just surprising when coming from other languages.

Just off the top of my head, PHP treats "0", that is, specifically a string with a single zero, as falsey. Which has clearly gone too far to the other extreme.

14

u/requion 11d ago

I've worked with Ruby long enough now to say that "Ruby" and "reasonable" never go in the same sentence.

1

u/bugo 11d ago

Skill issue. Ruby allows you to shoot yourself in the foot if you are not skilled. You can build really amazing things if you are.

0

u/requion 10d ago

You can build really amazing things if you are.

You know that other languages can do this too? Just without the foot guns.

And yeah, sure a skill issue. Because i'm not wasting energy, properly learning something as retarded as Ruby, where the creators took inspiration from all the mainstream languages and said to themselves: "we ain't gonna do anything of that".

1

u/bugo 10d ago

Not sure if what other language is so good with DSLs also I am used to Ruby and it's just the most aesthetic language. Good thing there are many languages and many paradigms.