Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coding principles #5

Open
6 of 26 tasks
luizaandrade opened this issue Nov 15, 2022 · 0 comments
Open
6 of 26 tasks

Coding principles #5

luizaandrade opened this issue Nov 15, 2022 · 0 comments

Comments

@luizaandrade
Copy link
Member

luizaandrade commented Nov 15, 2022

Choose wisely

  • Link to example main R script from "choose wisely"
  • Link to example main do-file from "choose wisely"
  • Find a good comparison of software to link from "choose wisely". This is not bad, but it's outdated.
  • Link to automation principle from second paragraph

Be kind to your reader

  • Example of code that uses bad indentation
  • Example of code where inputs are not clear (link to Stata style guide once this PR is merged)
  • Link to example of code that documents why something is done as well as what is being done
  • Link to example of code with self-documenting workflow
  • Link to plan for updating readme file from "be kind to your reader"

Live forever

  • Link to project setup with renv, conda environments or adopath on last bullet point
  • Link to automation principle on second bullet point

Track changes

  • Link to example on how to track changes to metadata
  • Link to GDP principle

DRY

  • Link to how to (not) write loops in R
  • Link to how to write loops in Stata
  • Link to how to write loops in Python
  • Link to how to write functions in R
  • Link to how to write functions in Stata
  • Link to how to write functions in Python
  • Link to example of how repetitive code is error-prone
  • Link to data analysis guide (from example in text)

Ask questions

  • Link to examples of how to read help files
  • Link to examples of how to see help files

Continuous testing

  • Link to automation principle
  • Link to examples of code testing

There's more to learn

  • Link to cheatsheets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant