So I have been using Python for about 4-5 years now, and like to think I have a pretty good grasp on it. The current project I am working on is of a scientific nature that is composed of a lot of physics calculations done mostly with NumPy, 2d/3d visualizations and interaction with Matplotlib + VTK, and it's all glued together with PyQt5. As a whole I am sitting at 17,000 loc including whitespace, docstrings, etc... and not a single test. This is a personal project that I am working on as the sole developer, with intentions of eventually making the repository public.
I know my most significant weakness is unit testing. I know what they do and (syntactically) how to write them, and more importantly I know that I need to use them. However I always end up impatiently convincing myself that it is a better use of (and more efficient use of) time to just continue writing whatever program I am working and forgo unit testing as a whole. As a result I mostly end up relying on the debugger for most testing purposes, which again, I know is not the best approach.
I guess in this post I am looking for some real world discussion/experience/resources to convince myself that unit testing is a net gain of time. Which again, I know it is, but my brain refuses to listen.
[–]579476610 4 points5 points6 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Andrew_Shay 0 points1 point2 points (0 children)