Earlier quoted context omitted.
For those who didn't realise above, I was being flippant. On a slightly serious note though, I wonder how much productivity is lost in the scientific community due to poorly written and documented code? I've heard stories of 40 year old Fortran code written by long deceased professors that was written to crunch physics numbers or whatever, and when it's come time to modify or add to it, nobody can make head nor tail…
I write that code. ;-) It's a toss-up. On the one hand, there's a loss due to dirty code, but a gain by a smaller group of people being able to do multidisciplinary work. In my own case, I'm a physicist outside academia, and in addition to code, I also do electronics and a variety of other things. When you're doing exploratory R&D, as I am, there are downsides to getting things done by domain specialists. First, you…
As long as it's published, if somebody wants to reuse it, reimplementing from the paper is the hardest part.