Tips and Resources for Developers

These best practices will help you write clear, reproducible, and well-documented code, making code reviews and collaborations smoother.


1. Request Reviews Early

The earlier you ask for feedback, the less likely you'll need to make major revisions later.


2. Follow a Style Guide

Adhering to language-specific style guides improves readability and consistency.

For R (tidyverse style):

3. Write Clear, Maintainable Code

General Guidelines

For Packages

For Analyses

For Scripts


4. Use GitHub Effectively

All project code should be hosted on GitHub. Best practices include:

For Analyses, Projects, or Papers

For Packages

GitHub Tips


5. Write Tests

Automated testing ensures that your code behaves as expected and is suitable for others to use.

When to Use Tests

Testing Best Practices