Last active
August 19, 2019 21:47
-
-
Save akaita/ee485e1f7695ce5ed36b9f1f8faf2f51 to your computer and use it in GitHub Desktop.
Example for unmaintainable-code-22 https://medium.com/@akaita/30-rules-to-make-your-code-unmaintainable-7e5dbafd5bce
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
if ( function_A() == OK ) | |
{ | |
if ( function_B() == OK ) | |
{ | |
/* Normal completion stuff */ | |
} | |
else | |
{ | |
/* some error recovery for Function_B */ | |
} | |
} | |
else | |
{ | |
/* some error recovery for Function_A */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment