|
|
| Think about Loose Coupling | |
| PerlMonks |
Re^3: Two simple code style advice questions (short)by tye (Cardinal) |
| on Jan 18, 2013 at 17:44 UTC ( #1014097=note: print w/ replies, xml ) | Need Help?? |
|
You also doing java? Nope. I started trying out "42 == n" in C a long time ago to avoid accidentally writing "if( n = 42 )". In this case, I wrote "42 == $n" as I find "42" to be the much more interesting part of the expression. I prefer to put shorter things and more interesting things first to speed parsing. - tye
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||