by ivanhoe · 9y ago · 0 comments
Especially if working on few different areas of the code at the same time. And it happens often enough for it to be dangerous.
Another issue I've seen pop up is the amount of spaghetti you see when someone said "Screw the tests can do it after". You could or couldn't do it after, cos sometimes things are so coupled it's impossible to test in a meaningful way. This varies between developers of course, more junior people will be coupling things more.
One approach that has worked for me whenever I'm not quite sure how I am going to implement something is something like this.
- First, prototype your feature, go in and go mad, write 0 tests and just try and find out how you're going to build it. - Then, stash it all away, wipe your workspace clean and start with tests. I've found this works for me when I'm not quite sure how I'm going to piece something new together.
You'll see that it's mostly TDD people who treat things as either "test first" or "test last", where "test last" occurs after all development.
As another example, agile people say there's "agile" and "waterfall", even though there are many software development approaches other than those two.
I am quite sure it is an inconscient bias, but it's tiring to keep listening those dishonest arguments everywhere.