Apr 04, 2007 @ 12:53 pm

If you come from another language, you might be tempted to use the += operator when appending to a string.

Posted under : short & sweet
Apr 03, 2007 @ 10:37 am

Sometimes, you want to initialize a variable to some value only if that variable is equal to nil. If you like to write your methods as short, clean and readable as possible, you can do that task in a single line instead of taking the traditionnal 3 lines approach.

Posted under : short & sweet
Mar 31, 2007 @ 10:00 am

Unlike many other languages, 0 isn’t qualified as false in an expression.

Posted under : short & sweet