"Why do most developers fear to make continuous changes to their code? They are afraid they'll break it! Why are they afraid they'li break it? Because they don't have tests.” - Robert C. Martin
Oh Uncle Bob is right again! 💯
I recently had to go back to code that I wrote about two years ago, and I’m finding it really difficult to make changes to the code 😢. Obviously then, the idea of writing tests was non existent. Now I know personally that tests are very important (Except you don’t plan on making any change at all to the code).
If you’ve never written a test for your code before, please go learn how to, you’d thank yourself two years from now 😂.
Thanks for Reading!