moon_aka_sun: (Default)
moon_aka_sun ([personal profile] moon_aka_sun) wrote2012-07-22 03:24 pm

I love this!

Извраты стиля получают должное :)

1. Yoda Conditions

if (5==count)
Using if(constant == variable) instead of if(variable == constant), like if(4 == foo). Because it's like saying "if blue is the sky" or "if tall is the man"

...

3. Egyptian Brackets

if(x) {\n...\n}
if(a == b) {
   printf("hello");
}

и много других перлов собрано (и получают название) в блоге Атвуда.


Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting