This is a very important idea that is fortunately gaining some traction in academic science at the moment ... that is, the need to share data and code. Some journals even require it (sharing data that is, I'm thinking of brain imaging journals).
My own opinion is that every academic scientist ought to, as a matter of course, make their data and code publicly available.
My own opinion is that every academic scientist ought to, as a matter of course, make their data and code publicly available.