3 ms·
It violates that principle but on the other hand it embraces the RY (Repeat Yourself) principle which has its own set of pros and cons, the major pros being sim
by mbrock 7y ago
It violates that principle but on the other hand it embraces the RY (Repeat Yourself) principle which has its own set of pros and cons, the major pros being simplicity of implementation and reduced risk of retroactive breakage. I’ve found this principle very useful also in software design. The DRY principle gets all the attention but we tend to ignore the question of when it’s actually better to repeat oneself.
- john-aj 7y agoI agree, especially with the part about retroactive breakage. It’s very easy with static site generators; with just HTML and CSS, not so much.
- reacweb 7y agoI have 3 principles. The first one is KISS. The second one is DRY. This third one is that there is only 3 principles. DRY is less important than KISS. Sometimes, RY is a good way to simplify.