Clean code

They had rushed the product to market and had made a huge mess in the code. As they added more and more features, the code got worse and worse until they simply could not manage it any longer. It was the bad code that brought the company down.

Keeping your code clean is not just cost effective; it’s a matter of professional survival.

In priority order, simple code: - Runs all the tests; - Contains no duplication; - Expresses all the design ideas that are in the system; - Minimizes the number of entities such as classes, methods, functions, arguments and the like.

According to SRP, a lot of small classes are preferred.

Last updated

Was this helpful?