Junior — Middle
What are the characteristic signs of low-quality procedural code?
sobes.tech AI
Answer from AI
Signs of low-quality code in procedural style:
- Code duplication: the same fragments are repeated in different places, making maintenance difficult.
- Lack of modularity: functions and data are tightly coupled, with no clear separation of responsibilities.
- Large functions: functions perform too many tasks, complicating understanding and testing.
- Global variables: excessive use of global data leads to hard-to-track side effects.
- Complex control logic: many nested conditional statements and loops without structuring.
- Poor readability: lack of comments, unclear variable and function names.
For example, if the code contains many repeating blocks with similar logic that are not extracted into separate functions, it indicates low modularity and poor organization.