FuglyCode

\fʌ-gli koʊd\ n: How not to code!

This entry is part 2 of 2 in the series FuglyCode of the Week

This week’s fugly code comes from my past experiences as a C developer, and is actually one of the first pieces of advice my Team Lead gave me when I joined his group.
You see, I was working on this function that returned a value based on a few incoming parameters, and the lead admitted he [...]

This entry is part 1 of 2 in the series FuglyCode of the Week

Error handling in programming languages allows software developers to build safeguards into their code to protect against possible exceptions or errors during runtime. Method overloading, on the other hand, allows developers to build multiple methods of the same name, but that act differently depending on their method signatures (ie: different parameters).
Lets take the following [...]