Lesson 4: Scripting, Troubleshooting, & Workflow

Note

week 1, 1/9/2014 - log files - git bisect, git log, git blame - scientific method (small changes)

Agenda

Scripting

What's a script?

_images/xkcd_1205.png

What's a scripting language?

Note

This is more programming language than scripting specific.

Common Scripting Languages

Bash

Python

_images/xkcd_353.png

Why Python?

Troubleshooting

_images/xkcd_627.png

Informal method

_images/xkcd_349.png

If it used to work

_images/xkcd_1172.png

If it's never worked for you

After finding the problem

_images/xkcd_806.png

Formal method

(from this)

How to get help

Documentation

Sources of trouble

When using something new:
 
  • You probably misunderstood it.
  • Maybe their documentation was wrong.
  • If neither, then perhaps their code is wrong.
  • Submit a ticket or pull request to fix the docs or code
When something previously working breaks:
 
  • Something changed
  • Someone updated something
  • Figure out who and why; document

Tickets

Tickets vs. Issues

Some Examples