Commit 5f1821fd authored by Jean-Pierre Auclair's avatar Jean-Pierre Auclair

Added notes from the code automation session

parent 6a7e91d1
...@@ -138,4 +138,39 @@ Git manages: ...@@ -138,4 +138,39 @@ Git manages:
References: References:
- Pro Git - Pro Git
- Git From The Bottom Up - Git From The Bottom Up
\ No newline at end of file
## Code Automation
Computers are good for tedious, error-prone, complicated and/or repetitive tasks.
Applicable to:
- Version control
- Back ups
- Model management
- Visualization
- Code
- Manuscripts
- Pre/Post-processing tools
Assignement: Create a note repository, host, share and write down after each session
**Your most important collaborators are your past and future selves**
Separate code repo from:
- Big binary files (Version control software would just make a copy)
- Source code (to update model source code more easily/differentiate files that have been changed)
**History is messy. It's better to see the whole history than to see a pretty history.**
Readme files are important for new users and collaborators, including your future self.
Use scripts, not GUIs, to automate
Jupyter notebooks are great for demonstration and documentation
`tree` shows ASCII art of a directory tree (https://www.phys.ocean.dal.ca/~jpaucl/pmwiki.php/Bash/Tree)
More info at: https://bitbucket.org/douglatornell/uqar-winter-school
Exercise: Basic code automation: Using python, write a script that handles arguments, creates directories and moves/renames files.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment