Pro-Con Debate: Should Code Sharing Be Mandatory for Publication?

Anesth Analg. 2022 Aug 1;135(2):241-245. doi: 10.1213/ANE.0000000000005848. Epub 2022 Jul 5.

Abstract

In this Pro-Con commentary article, we discuss whether or not code sharing should be mandatory for scientific publications. Scientific programming is an increasingly prevalent tool in research. However, there are not unified guidelines for code availability requirements. Some journals require code sharing. Others require code descriptions. Yet others have no policies around code sharing. The Pro side presented here argues that code sharing should be mandatory for all scientific publications involving code. This Pro argument comes in 2 parts. First, any defensible reason for not sharing code is an equally valid a reason for the manuscript itself not being published. Second, lack of code sharing requirements creates 2 tiers of science: one where reproducibility is required and one where it is not. Additionally, the Pro authors suggest that a debate over code sharing is itself a decade out-of-date due to the emerging availability of containerization and virtual environment sharing software. The Pro argument concludes with an appeal that authors release code to make their work more understandable by other researchers. The Con side presented here argues that computer source codes of medical technology equipment should not be subject to mandatory public disclosure. The source code is a crucial part of what makes a particular device unique and allows that device to outperform its competition. The Con authors believe that public disclosure of this proprietary information would destroy all incentives for businesses to develop new and improved technologies. Competition in the free marketplace is what drives companies to constantly improve their products, to develop new and better medical devices. The open disclosure of these "trade secret" details would effectively end that competitive drive. Why invest time, money, and energy developing a "better mousetrap" if your competitors can copy it and produce it the next day?

MeSH terms

  • Commerce*
  • Reproducibility of Results