fbpx

How SOLID Principles support refactoring?

This article complements the subject of cleaning code by explaining connections between the Refactoring Pyramid and Uncle Bob’s SOLID principles. We will see how each of SOLID rules acts as basement for each level in the pyramid. We will end up at the top level of architectures. In my previous post I explained levels of…

How to clean code according to refactoring pyramid?

In this post I would like to show you “Refactoring Pyramid in Practice” to clean your code. In order to do so, I will follow the sequence of small transformations like in one of refactoring examples in “Refactoring to Patterns” book by Joshua Kerievsky. The sample will show refactoring to Interpreter. Anyway I’ve experienced the…

How Pyramid of Refactoring was disovered?

General principles, patterns – at one side allow us to tidy up knowledge, use common approach when solving certain kind of problems. On the other side they might impede our creativity and inspiration. But even then we have something we can base on even if we want to reject it and invent something better. Pyramid…