Re:Attitudes That Lead to Maintainable Code
by maxxxxx on Wednesday March 08, 2017 @08:37AM
(#13820101)
Be consistent. Pick one style and use it everywhere. It's nice if you can predict how something will be implemented from previous experience. And don't be fancy.
[ Parent
| on HN ]
Re:Attitudes That Lead to Maintainable Code
by AstralStorm on Thursday March 09, 2017 @07:28AM
(#13828793)
Style is overrated. Changing attitudes and requirements force different styles. It is not an accident of nature that generally the nicest languages to use are multi-paradigm, therefore allow multiple styles.
Previous experience can be very misleading. It is safest to come at the code and design as a blank slate. Prediction (also known as educated guesses) is worse than actual understanding, especially deep understanding.
Sometimes being fancy saves a lot of effort down the road. It is being fancy for its own sake or for purely imagined reasons that is dangerous.