Introduction to Shell, Python, Version Control and Testing: Agenda

[Home]

The following agenda outlines what will be taught on the course. Additional notes on the teaching materials will be made available shortly after the course.

The software prerequisites for the lessons can be found here. The course training materials (which you can revisit and follow at your leisure) are linked to from the topics below.

Day 1: November 8


09:30 - 10:00 Arrival and Setup
10:00 - 10:15 Welcome and Introduction to Software Carpentry [PPTX] [PDF]
10:15 - 11:00 Automating tasks with the Unix shell
The Unix shell is a power tool that allows you to do complex things with just few keystrokes by helping you in combining existing programs in new ways and automate repetitive tasks. This session guides you through the basics of file system and the shell and will start you on the path towards using powerful tools and computing resources. The following topics will be covered:

  • Introducing the shell
  • Files and Directories
  • Creating things
  • Pipes and Filters
  • Loops
  • Shell Scripts
  • Finding Things
11:00 - 11:20 Break
11:20 - 13:00 Shell: continued
13:00 - 14:00 Lunch
14:00 - 15:00 Python basics: Building Programs with Python
In this session, you'll learn good programming practices with an introduction to the fundamentals of Python. The following topics will be covered:

  • Basics - e.g. Starting Python, using variables
  • Working with arrays and lists
  • Basic program control - loops and conditionals
  • Creating and using functions
  • Using libraries
  • Using Python from the command line
  • Reading and plotting data
15:00 - 15:15 Break
15:15 - 16:45 Python Basics: continued
16:45 - 17:00 Wrap-up of Day 1

Day 2: November 9

10:00 - 11:00 Writing robust code and unit testing with Python
Does the code developed by you work the way it should do? Can you (or others) verify these assertions for themselves? And perhaps most importantly, to what extent are you confident of the accuracy of results that appear in publications? This session will teach you techniques of developing robust code and good unit tests to improve the predictability of a change, make development more productive and produce code that works as expected and produces desired results. The following topics will be covered:

  • Introduction to Nose testing framework
  • Writing and executing unit tests
  • Defensive programming
  • Handling exceptions
  • Test-Driven development
11:00 - 11:20 Break
11:20 - 13:00 Unit testing: continued
13:00 - 14:00 Lunch
14:00 - 15:00 Version control with Git
This session will teach you how to track and manage changes within your code, how to collaborate with other developers through a shared code repository, and generally improve the reproducibility of your research. The following topics will be covered:

  • Creating and cloning repositories
  • Committing changes to files: add, commit, ...
  • Viewing changes: status, diff, ...
  • Working with remote repositories, e.g. through GitHub: clone, pull, push, ...
  • Resolving conflicts
15:00 - 15:20 Break
15:20 - 16:45 Version control with Git: continued
16:45 - 17:00 Wrap-up and Feedback