ProgramDecompositionWithPython

From SPA Wiki

Jump to: navigation, search

Jackson Structured Program Decomposition With Python Generators

During the session, a step-by-step introduction was given, based on real working code. You can find the code in the files name intro*.py in the attached zip file File:ProgramDecompositionWithPython2.zip.

Three exercises are attached. The first two are done during the session. See exercise*.py.

Some small functions are extracted and put into util.py.

Composition with generators can be done with compose.py. See the exercises for examples on how to use it.

As an introduction to JSP (Jackson Structured Programming), a paper of M. Jackson is includes as well.

As a discussion item, a short demo on how to use Python generators and exceptions to implement Ada style rendez-vous is included.

Furthermore, Immo made some notes which are attached as well: File:/ProgramDecompositionWithPython1.doc.

I you want to redo the session, follow Immo's notes. They are excellent!