Code Smell Exercises


See if you can spot the "code smell" in the following examples. How could the code be refactored?

Exercise 1  -  Using decision structure instead of a mapping function.

Exercise 2  -  Using decision structure instead of a mapping function.

Exercise 3




Home