Clean Code

Clean Code is a term describing easily readable, understandable and maintainable code. It is the goal of refactoring.

1 Some criteria that help make code clean

1.1 Purity

Pure functions do not have any side-effects, which makes them very easy to reason about. As long as the reader can be sure that a function is pure, they don’t have to check what the function actually does as long as it makes sense from its interface.

1.2 Naming

Probably one of the hardest tasks when writing software. Good names (for for example function, variables or classes) are descriptive of the things they represent. They tell the reader as much information about what they represent as possible, while being short and easy to read.

2 Backlinks   backlinks