Re:Attitudes That Lead to Maintainable Code
by MichaelMoser123 on Wednesday March 08, 2017 @09:55AM
(#13820604)
Avoid special cases. Thats a good idea, unfortunately it's not quite possible if you have to adjust code to changing requirements over a long time...
[ Parent
| on HN ]
Re:Attitudes That Lead to Maintainable Code
by AstralStorm on Thursday March 09, 2017 @07:24AM
(#13828780)
It should be rephrased as: design so that many cases can be handled, thus reducing number of special cases.
They cannot be avoided, but their impact can be reduced. If you end up drowning in them, it means the design is broken and needs to be rethought.