Ask HN: How do you test and structure research code?
Hey,<p>are there any books&#x2F;websites which focus on testing and structuring of research code? I feel code that is written for research purposes has to be approached differently, than let&#x27;s say a web application.<p>In company where I work, research code at some point actually becomes our production code and I&#x27;m kind of scared that there is no Q&#x2F;A process established. I mean multiple people check it along the way, but given nobody knows exactly what the output looks like, I&#x27;d say chances are that there is a lot of bugs hidden in our codebase.<p>How would you generally test such code?
In the same way as other web&#x2F;desktop applications?
I feel like approaches which normally work in dev (i.e. TDD) fall short when we&#x27;re talking about research, where you do not know what the end state is. But at the same time, having no tests is also foolish and short-sighted.