News for hackers. Stuff that matters.
Re:I was saved by Test Driven Development by lukashrb on Sunday February 12, 2023 @01:44AM (#34760523)
> but it gets in the way when you're rapidly prototyping and exploring.

If you prototype a new features for an existing system, a test let you execute only the code you actually need. This will shorten your feedback loop and allow you to iterate faster. Refactoring a test is fine. Writing a BS test just to explore a solution is fine. In my experience following a test lead practice will help you build a simpler system which will be easier to maintain.

Re:I was saved by Test Driven Development by wmwragg on Sunday February 12, 2023 @02:47AM (#34760801)
I tend to view TDD as a form of coding using a REPL, like in Lisp, where you can easily test chunks of your code as you go along. The main difference is that you leave behind your tests so they can be used in the future.