Clean Code C
Clean Code C
## **Design rules**
## **General rules**
## **Design rules**
## **General rules**
## **Design rules**
## **General rules**
## **Design rules**
## **General rules**
## **Design rules**
## **General rules**
## **General rules**
## **Design rules**
## **General rules**
## **Design rules**
## **General rules**
## **Design rules**
## **Understandability tips**
## **Names rules**
## **Functions rules**
1. Small.
2. Do one thing.
3. Use descriptive names.
4. Prefer fewer arguments.
5. Have no side effects.
6. Don't use flag arguments. Split method into several independent methods that can
be called from the client without the flag.
## **Comments rules**
## **Tests**
## **Code smells**
1. Rigidity. The software is difficult to change. A small change causes a cascade
of subsequent changes.
2. Fragility. The software breaks in many places due to a single change.
3. Immobility. You cannot reuse parts of the code in other projects because of
involved risks and high effort.
4. Needless Complexity.
5. Needless Repetition.
6. Opacity. The code is hard to understand.