Roy Tang

Programmer, engineer, scientist, critic, gamer, dreamer, and kid-at-heart.

Blog Notes Photos Links Archives About

Someone on quora asked:

What is the mindset that every developer should have when developing new features and maintaining old features?

When developing new features, make sure to write to clean, maintainable code that future maintainers won’t have a problem with. If you can write unit tests, do so.

When maintaining old features, it’s kind of like being a doctor: first, do no harm. Perform the minimum changes necessary to implement your changes to minimize the chance of breaking existing behavior. But still try to avoid writing terrible code. It helps if the existing feature has unit tests

Posted by under notes at #answers
Also on: quora / 0