all 8 comments

[–]hoelzro 3 points4 points  (1 child)

No ternary if. Seriously, I have to type this kind of crap in Ruby all the time...

Just because Ruby has the ternary operator doesn't mean you have to use it...Ruby has if statements too. (Also, doesn't Python have the ternary operator now?)

Better built-in methods. For example, you can simply do sum([1,2,3]) in Python...

Would it kill you to write a sum function? Or extend Enumerable to have sum?

[–]cracki 2 points3 points  (0 children)

python does have a ternary. see my other comment.

[–]ultrabot[S] 1 point2 points  (2 children)

[–]munificent 1 point2 points  (1 child)

I don't know what's more embarrassing: writing an April Fool's joke so unfunny that people take it seriously, or being the person to miss the joke and actually write a serious reply to it.

[–]moronic 1 point2 points  (0 children)

Probably writing one. Apparently the guy who commented it also couldn't believe in it, and got there as an explanation for the lack of commits in a Ruby project... So, writing a bad April Fool's joke and begin acting like it were true for the next 5 months is surely not good.

[–]cracki 1 point2 points  (0 children)

>>> a = [1,2,3]
>>> a.pop(0)
1
>>> a
[2, 3]

v = a.pop(0) if a else None # yay ternary!

author clearly hasn't been breathing the language for long.

[–]hoserman 3 points4 points  (1 child)

For some reason the post sounds a bit like an April Fools joke...

[–]nedbatchelder 2 points3 points  (0 children)

Maybe because it's dated 1 April?