CLEAN CODE & REFACTORING

Four Reasons to Change your Software

Daniel Rusnok
The Startup
5 min readMay 17, 2020

--

Created by Stories

Michael Feathers defines four main reasons to change your code in the book Working Effectively with Legacy Code. I found those few paragraphs interesting, and I would like to share them with you from my perspective.

Four main reasons to change are

  • Adding a feature
  • Fixing a bug
  • Improving design
  • Optimising

Adding Feature and Bug Fixing

original pictures by Stories

The most typical reason to change software is an adding of the feature. Your software is acting one way, and the boss or client needs it to do something else.

At first, adding a feature may look like an easy task for both sides. Friction between the developer and the task assigner began when the assigner thinks it is a bug, but the developer sees it as a completely new feature.

At the moment when I am writing this article, I am also working on a form-based information system, and new task recently appeared in the mailbox. The client wants me to fix the focus behaviour of…

--

--

Daniel Rusnok
The Startup

Senior Software Developer. Loving to gain & share knowledge. Focused on Microsoft technologies like Azure, .NET Core & C#. Software Architecture enthusiasist.