Originally posted by Weedpacket
I've spooked the unwary with
for ($i=0; $i<$outer_size; $i++) { for ($j=0; $j<$inner_size; $j++) { foo($i, $j); } }
eval()!
Not that I'm recommending such behaviour.
I hope not. :p
Originally posted by Weedpacket
I've spooked the unwary with
for ($i=0; $i<$outer_size; $i++) { for ($j=0; $j<$inner_size; $j++) { foo($i, $j); } }
eval()!
Not that I'm recommending such behaviour.
I hope not. :p
looks like an optical illusion to me....
I think I've found a discrepancy in phpbb's coding guidelines:
Use spaces between tokens
/ Each pair shows the wrong way followed by the right way. /
if($i<7) ...
if ($i < 7) ...
for($i=0; $i<$size; $i++) ...
for($i = 0; $i < $size; $i++) ...
Well, on this note, I usually do insert a space between the keyword and the opening parenthesis, unless the keyword is a function name.
Originally posted by laserlight
I think I've found a discrepancy in phpbb's coding guidelines:
Of course, that statement in the guidelines is an overstatement anyway .... if it were accurate, then the for loop would be written
for ( $i = 0 ; $i < $size ; $i ++ )
yeah phpBB coding standards are cool
and about tabs - although they vary on different programs they still do thier job. Whether the tab is 3,4,5, or 7 spaces, it still idents your code to make it easier to read. and anyway, you can set the tab length on most programs, so set it to your prefered length if you want.
for ( $i = 0 ; $i < $size ; $i ++ )
I think is more readable any row that fits in the screen than one larger...
... and my screen is not so large... :p
I use tabs.
Originally posted by Merve
I use tabs.
that's why you're a dork-ass lol :p
HEY!
I use tabs for large indents.
Originally posted by Merve
I use tabs for large indents.
that makes you more of a dork-ass.
I use tabs to be a rebel and a dork-ass and to post OT crap in the CC.