I kind of agree, it depends on what you are doing. If you simply experiment with something and maybe throw it away later, then there is no reason for unit testing.
Even if you program only for yourself, if it may happen that you have to fix bugs, if it may happen that you refactor years old code, if it may happen that people want to know how far you are with your new version, unit tests are the way to go. Tracking down a bug that was introduced in a new version can be more time consuming than writing unittests.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement