If a method or function has several sections each with a Deep nesting smell, then the indentation will form a lumpy pattern with several ‘bumps’. Each section with deep nesting probably represents a different responsibility or action that could usefully be separated out into its own function.
The name “Bumpy Road” comes from an article by Adam Tornhill The Bumpy Road Code Smell: Measuring Code Complexity by its Shape and Distribution.
- This smell comes from a respected technical leader, Adam Tornhill
Back to All Code Smells