Code Smells – Issue Number 2

Code Smells Welcome to the second edition of Code Smells! Periodically I'll be posting about how to detect code smells and what they mean in terms of the big picture of your code. The previous installment can be found right here. What's a code smell? Wikipedia says it perfectly: In computer programming, code smell is any symptom in the source code of a program that possibly indicates a deeper problem. Code smells are usually not bugs—they are not technically incorrect and don't currently prevent the program from functioning. Instead, they indicate weaknesses in design that may be slowing down development or increasing the risk of bugs or failures in the future. Onto the code smells! The Stink List Code Smell #4: (Thanks to reddit user fkaginstrom) You have an large number of parameters being passed into your function call. Functions that take in a ton of parameters stink for a…

0 Comments

End of content

No more pages to load