Rinse And Repeat – A template pattern
One of the most powerful and useful patterns I have come across is one we will call rinse and repeat. It may also be seen as copy and paste or templates. However, the result is a way to rapidly generate a lot of similar solutions within an architecture or system. The Rinse And Repeat Pattern Defined The essential piece of the rinse and repeat pattern is a similarity in approaching a series of problems. This pattern becomes apparent when we solve a problem and then move on to another very close in its structure. For example, the classic almost anti-pattern of a class full of getters and setters can use this pattern. You build a list of attributes, build out... Read more