Last active
August 10, 2017 17:59
-
-
Save sproctor/a566803251470462257fe48d5408ea2c to your computer and use it in GitHub Desktop.
wtf? a good example of bad
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
void function_name () | |
{ | |
for (d = first_descriptor; d; d = d->next) | |
{ | |
if (condition1) | |
{ | |
stuff1(); | |
continue; | |
} | |
else if (condition2) | |
{ | |
stuff2(); | |
continue; | |
} | |
else | |
{ | |
stuff3(); | |
if (bad_condition) | |
break; | |
} | |
other_stuff(); | |
} | |
more_other_stuff(); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment