3 ms·
IMO, all the points comes from 2 basic rules: 1 KISS (keep it simple and stupid) 2 DRY (don't repeat yourself) KISS being higher priority than DRY.
by reacweb 10y ago
IMO, all the points comes from 2 basic rules:
1 KISS (keep it simple and stupid)
2 DRY (don't repeat yourself)
KISS being higher priority than DRY.
- jiaweihli 10y agoDRY isn't something you should blanket apply. There are cases where you do want to repeat yourself, e.g. to improve readability (avoiding metaprogramming, which is hard to reason about and will break your IDE) or because two things aren't actually semantically related (trying to force an abstraction means you need to undo it later anyways when the implementations diverge).
- reacweb 10y agoYes, that is my point in giving higher priority to KISS.