Skip to content

Commit

Permalink
added link to ArrowAntiPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
emilybache committed Aug 11, 2023
1 parent beafa45 commit 8d29612
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _code_smells/bumpy_road.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ Bumpy road is a sign that the [cyclomatic complexity](https://en.wikipedia.org/w

## Other names for this smell

This smell is also known as "Heavy Indentation" or "Deep Nesting". The name "Bumpy Road" comes from an article by Adam Tornhill [The Bumpy Road Code Smell: Measuring Code Complexity by its Shape and Distribution](https://codescene.com/blog/bumpy-road-code-complexity-in-context). In Michael Feathers book "Working Effectively with Legacy Code" he describes a similar smell: a "Snarled method" is one "dominated by a single large, indented section". It's a Bumpy Road with only one bump.
This smell has many other names, for example **Heavy Indentation** or **Deep Nesting**. The name "Bumpy Road" comes from an article by Adam Tornhill [The Bumpy Road Code Smell: Measuring Code Complexity by its Shape and Distribution](https://codescene.com/blog/bumpy-road-code-complexity-in-context).

In Michael Feathers book "Working Effectively with Legacy Code" he describes a similar smell: a **Snarled method** is one "dominated by a single large, indented section". It's a Bumpy Road with only one bump. Similarly the C2 wiki describes the [ArrowAntiPattern](http://wiki.c2.com/?ArrowAntiPattern).

0 comments on commit 8d29612

Please sign in to comment.