3 ms·
Quality code is the kind that someone else maintaining it doesn't feel the urge to rewrite...
by icky 19y ago
Quality code is the kind that someone else maintaining it doesn't feel the urge to rewrite...
- pg 19y ago...except because of the language it's written in.
- icky 19y ago:)
- axod 19y agoIt is a matter of taste and opinion though. We had a programmer at our office who used to use strings for everything. Any datatype, he'd use a string anyway. He thought it made things uniform and easy. So he'd probably feel the urge to rewrite everything. That doesn't mean it's bad code, it just means he has issues :)
- akkartik 19y agoTry rewriting more often :) Rewriting is a form of active reading, and I find active reading helps in comprehending code just like any writing. A lot of the benefits of the whole XP/refactoring movement may come from just this phenomenon, that writing code helps swap a program into one's head more effectively than just reading code.