Is it acceptable practice to make the source code of a re-implemented paper available online

Science is all about reproducibility. You should reimplement others work and make it available to third parties, just like the original author made his work and results public so that others can learn from it. (They may not have made any software available, but they did describe what exactly they did, after all.)


Overall, this is a net positive for the field: people are more likely to try a new method if good code is available. If someone publishes a paper about a method, they expect (and hope) that it will inspire the reader to use it.

Two caveats:

  1. When you make your code available, include a README note stating that this is a clean re-implementation. (if your method makes slightly different choices, and gives different results, be clear that this is not the exact code used by the original authors)

  2. In rare cases, the paper might contain large sections of source code, or refer to protected IP / datasets. In that case, be sure to make your code compatible with the required licensing terms.

Examples: if you copy-paste sample code that is GPL licensed, or if the package depends on sensitive patient data, these things could affect what or how you redistribute. For a pure method paper, this usually isn't a big problem.

As for how to make the code available- hopefully your journal makes it easy to share code! If your journal still thinks that supporting info means "ugly PDF", services like Zenodo allow you to publish github repositories (or other artifacts) as separate citable resources. See: https://guides.github.com/activities/citable-code/