General Coding
Method Development
Development:
Implement unit testing for novel method codes.
Write documentations! A usage example is always a plus.
Keep data compilation scripts well-maintained, and log/store intermediate results.
Releasing:
Provide a test dataset.
Provide a setup requirement file, or conda/pip environment.
An interactive demo in Google Colab is great, depending on the specific project.
Data Analysis
Use jupyter notebook whenever and wherever you can.
Clean up your Jupyter notebook! Consider using a Table of Contents.
Provide processed data files as a downloadable Tarball, so that all Jupyter notebooks can run without raw data processing. Consider using Google drive and google-drive-downloader.
Python
Use black to format your code for better Python code readability.
Write unit-tests, and check code coverage by Coverage.py.
R
Use R Vectorization whenever possible; avoid for-loops.
Use tidyverse as a workhorse for data processing.
Write functions to reuse code; be aware of R's global namespace pollution.
Last updated