by tensor · 11y ago · 0 comments
Expanding on this, writing research code is quite a bit different than writing production code. In particular, requirements can change quickly and drastically. This means that very open designs where you don't hide data (e.g. as is common in OO programming) are often the best designs.
Just because you may only use the program once doesn't mean that you can neglect good software engineering practices.
I run into bad code all of the time (some of it mine!) in our research, and it's very frustrating.
But, hey it's not like reproduceable results are important in science or anything.
the implication that this threat is not present for production code is completely ridiculous.
Ever tried multiple algorithm variants? Wrapping an algorithm in an object and then passing it to the data provisioning code means you can be 100% sure that the only thing that has changed in your code is the algorithm.