One thing I realised already:
For data we went through a phase of publishing your data openly where everyone just sent their spreadsheets or weirdly formatted data to some kind of archive. After that we now have FAIR and research data management plans. I think it is fair to say that the data that is being published with papers now is vastly more useful now.
Maybe this conversation should also focus on the “how to usefully publish your code and the environment it runs in” (like the FAIR guides for data)?
You can already publish your code to Zenodo (or other places like it) as an archive, however there doesn’t seem to be anything as clear and well known as the FAIR guides for data to do that. There is even less information on how to share the environment in a way that others can reproduce it.