Writing automated tests takes time
In most cases, it takes the same amount of time to debug.⏳
❌When you debug, you keep the knowledge for yourself.
❌Everyone else who wants to understand the same piece of code will need to pass through the same debugging steps .
❓Isn’t that a great waste?
❓How selfish it is?
❓What is the guarantee that the fix didn’t introduce a new bug? That the debugged path is the only buggy one?
😓none.
✅Automated tests, when done right, are live documentation and capture behavior regression.
✅It enables safe refactoring, fixing bugs in a great speed and shares the knowledge among the team.
🙅♂️Thus: debugging and learning debugging skills is such a waste and is time consuming.
It is more adequate to focus on building better skills and learn how to work effectively with software. ☺️