rspec/rules/S134/description.adoc

6 lines
481 B
Plaintext
Raw Normal View History

Nested control flow statements such as ``++if++``, ``++for++``, ``++while++``, ``++switch++``, and ``++try++`` are often key ingredients in creating
what's known as "Spaghetti code". This code smell can make your program difficult to understand and maintain.
2020-06-30 12:47:33 +02:00
When numerous control structures are placed inside one another, the code becomes a tangled, complex web.
This significantly reduces the code's readability and maintainability, and it also complicates the testing process.