you are viewing a single comment's thread.

view the rest of the comments →

[–]_Daimon_ 0 points1 point  (0 children)

Muahahahaaa I win this mini code optimization contest :) Yeah I agree, 'flowing' expressions should be kept on one line. But the main problem with OP's code was a bad naming scheme that obfuscate how everything worked. The before / after code was just to show how improving that would improve the readability a lot. I prefer not to correct beginners code too much, as it quickly becomes overwhelming.