That's very interesting, I've limited exposure to programming in the natural sciences so I've only really experienced the collective noun usage.
I had thought "a code" and then "codes" may have come down from the punch card era of programming where as you said it would be more of single routine for a specific computation which I guess then would have filtered down into scientific computing as programming evolved through fortran and others and now it seems it's all merging back together.
I had thought "a code" and then "codes" may have come down from the punch card era of programming where as you said it would be more of single routine for a specific computation which I guess then would have filtered down into scientific computing as programming evolved through fortran and others and now it seems it's all merging back together.