By bloid
via probablycorey.wordpress.com
Published: Mar 31 2008 / 02:35
I’ve always enjoyed the ruby convention of using question marks to denote boolean methods. empty?, exist?, any?, alive?, etc… They’re concise and easy to read. I do have one gripe with it, sometimes testing the inverse makes my code read like yoda wrote it.



Comments
eelmore replied ago:
So... are you saying that having your code read as if Yoda wrote it is bad?
Voters For This Link (9)
Voters Against This Link (1)