unconf18
unconf18 copied to clipboard
teach clean code principles with examples in R
Writing clean code is important for efficient work in every programming language. However, most of the resources available (at least what I encountered so far) contain examples in primarily object oriented languages making it less accessible for R programmers who are not software engineers.
Clean code makes it easier to collaborate, to avoid bugs and write working code faster. It also helps with understanding code written by others.
I envision a blog post series / bookdown with the relevant principles adopted from the Clean Code book with examples in R, focusing on every day R users and not necessarily those writing production R code. (i.e. do not mention error classes or R6 classes but focus on the most common use cases)
See:
- https://cran.r-project.org/web/packages/cleanr/index.html
- Robert C Martin: Clean Code