Work through an exercise of processing a CSV file containing time series data on amount of sunshine.
TODO
- Plan conceptual steps together to create a flowchart on whiteboard
- how to find and use existing code
- take note of any assumptions
- Give everyone some code we wrote earlier, containing a runtime error (TODO: array-out-of-bounds, perhaps?) and a logic error (e.g. it adds all the non-sunshine hours)
- get them to download it and run it in an IDE
- what is going wrong?
- techniques for dealing with errors
- create a back up before trying to fix anything
- have students write their own one-line test file and fix the bugs
- URLs for the CSV processing Python code (buggy and debugged versions)
- links to StackOverflow, IDE
- TODO: anything else? automated testing? unix shell (how does this work on the met windows PCs?)