You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bianca Sacchi edited this page Feb 9, 2023
·
2 revisions
If you're writing code in the lab, you should adopt the following principles:
Keep it either in a Github repository, or if it's really small or a one-off, in Gist. This seems like a pain, but it's the best way to ensure that new versions are accessible to others in the lab, and that if you leave, we have a record of your work. Ideally, all projects will have READMEs and their code checked into a Git repository, hosted on Github (but don't use track data with Git).
Write code for humans: comment and document your code, break code down into modular components, and use the styleguides provided below.
Adopting Styleguides
Google has styleguides for some languages we use in the lab: