Created
October 13, 2011 22:31
-
-
Save anaisbetts/1285741 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lock(something) | |
{ | |
try | |
{ | |
if (foo) // THIS | |
{ | |
Bar(); | |
} | |
else // LOOKS | |
{ | |
Baz(); | |
} | |
} | |
catch // RETARDED | |
{ | |
Bamf(); | |
} | |
} | |
// | |
// vs. | |
// | |
lock(something) { // Much better. | |
try { | |
if (foo) { | |
Bar(); | |
} else { | |
Baz(); | |
} | |
} catch { | |
Bamf(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment