|
| 1 | +************************************ |
| 2 | +Syllabus: Introduction to Python: |
| 3 | +************************************ |
| 4 | + |
| 5 | +UW Adult and Continuing Education Program Certification in Python Programming |
| 6 | + |
| 7 | +Tuesdays 6-9 pm: Oct 1 - Dec 8, 2013 (10 Sessions) |
| 8 | + |
| 9 | + |
| 10 | +NOTE: in the spirit of the dynamic nature of Python, the Syllabus (and the class) will be a dynamic document -- evolving as the class progresses. The general structure is fixed, but the details will change. |
| 11 | + |
| 12 | +Instructor: |
| 13 | +=============== |
| 14 | +Christopher Barker, PhD. (``PythonCHB@gmail.com``) is an oceanographer and software developer currently working for NOAA in Seattle. He first began programming over 30 years ago, and has been using programming to solve problems in science and engineering ever since. He has been using Python as his primary language since 1998. Chris gives numerous presentations on his work at professional conferences, and teaches oceanography and oil spill modeling at regular workshops. He has been involved with the Seattle Python Interest Group (www.seapig.org) for many years, and has given a number of talks and tutorials at SEAPIG meetings, as well as the PyCon and Scipy conferences. He is an active participant in a number Python-related open source communities, and has served as a Google Summer of Code mentor for the wxPython project. |
| 15 | + |
| 16 | + |
| 17 | +Python Version: |
| 18 | +================= |
| 19 | + |
| 20 | +There are two main supported versions of Python: the 2.* series and the 3.* series (py3k). In this class we will be using "cPython" version 2.7, the version distributed by `<python.org>`_. Each student is expected to have access to a computer with python 2.7 and a decent programming text editor installed, both during class and for homework assignments. Any modern OPerating sytem is fine: OS-X, Linux, or Windows. |
| 21 | + |
| 22 | +Approach: |
| 23 | +================= |
| 24 | +This class assumes a basic knowledge of programming. Thus I will try to emphasize what is unique about Python, with less focus on general programing concepts. |
| 25 | + |
| 26 | +One learns programming by doing -- I'll be demonstrating as I talk about concepts, and I will pause frequently to give you a chance to try things out, so plan on having a laptop up and running with python and your text editor of choice during each class. |
| 27 | + |
| 28 | +Homework: |
| 29 | +================= |
| 30 | +There will generally be weekly homework assignments. They will usually be flexible to allow for student's varying time constants. However, you learn by doing, so I do encourage you to put some time in to the homework. I will review your work, and do a mini code-review of selected assignments during class. |
| 31 | + |
| 32 | +`Teach Yourself Programming in Ten Years <http://norvig.com/21-days.html>`_ |
| 33 | + |
| 34 | +In addition, I will ask each student to identify a small project, ideally related to your work, that you can develop as a class project -- that project will be the primary homework for the last few classes. |
| 35 | + |
| 36 | +Class format: |
| 37 | +================= |
| 38 | + |
| 39 | +Each class will be broken down something like this: |
| 40 | + |
| 41 | +- 30 minutes talk |
| 42 | +- 30 minutes exercises |
| 43 | + |
| 44 | +- 5 minute lightning talk |
| 45 | +- 25 minutes talk |
| 46 | +- 30 minutes exercises |
| 47 | + |
| 48 | +- 5 minute lightning talk |
| 49 | +- 25 minutes talk |
| 50 | +- 30 minutes exercises |
| 51 | + |
| 52 | +(there will be no official breaks, but we should all feel free to move about during lab/exercise time) |
| 53 | + |
| 54 | +Lightning Talks: |
| 55 | +----------------- |
| 56 | + |
| 57 | +Each student is expected to give one "lightning talk" during the class -- this is a simple 5-minute talk on something related to Python -- totally up to you. We will randomly assign the talks schedule (using Python, of course) during the first class. |
| 58 | + |
| 59 | +gitHub: |
| 60 | +============= |
| 61 | + |
| 62 | +All class materials will be up on gitHub (where you probably found this). This allows me to update things at the last minute, and the students can all have easy access to the latest versions. It also familiarizes you with a very useful tool for software development. We'll spend a bi tof time during teh first class getting everyone up and running with git.... |
| 63 | + |
| 64 | +<https://github.com/UWPCE-PythonCert/IntroToPython>_ |
| 65 | + |
| 66 | +Reading: |
| 67 | +================= |
| 68 | +There is no assigned text book. However, you may find it beneficial ot read other discussions of topics in addition to what I present in class: either to explore a topic more deeply, or to simple get another viewpoint. There are many good books on Python, and many more excellent discussions of individual topics on the web. A few you may want to consider: |
| 69 | + |
| 70 | +Python for Software Design / Think Python |
| 71 | +-------------------------------------------- |
| 72 | + |
| 73 | +Designed for a first course in computer science -- high school or otherwise, quite basic, but does not assume much: |
| 74 | + |
| 75 | +Printed version: `Python for Software Design <http://www.cambridge.org/us/knowledge/isbn/item2327120/?site_locale=en_US>`_, |
| 76 | + |
| 77 | +Free online version: |
| 78 | +`Think Python <http://www.greenteapress.com/thinkpython/>`_. |
| 79 | + |
| 80 | +Despite the different titles, the two versions have the same contents. |
| 81 | + |
| 82 | +Learn Python the hard way |
| 83 | +--------------------------- |
| 84 | +A nice introduction that starts from the beginning available online for free, or you can purchase it as PDF + Videos: |
| 85 | + |
| 86 | +`Learn Python the hard way <http://learnpythonthehardway.org/>`_ |
| 87 | + |
| 88 | + |
| 89 | +Dive Into Python |
| 90 | +------------------- |
| 91 | +Dive Into Python is a getting pretty old and has not been updated for a good while -- nevertheless, there is a lot of good stuff in there. |
| 92 | + |
| 93 | +`Dive Into Python <http://www.diveintopython.net/>`_ |
| 94 | + |
| 95 | +Python Essential Reference |
| 96 | +---------------------------- |
| 97 | +The definitive reference for both Python and much of the standard library. |
| 98 | + |
| 99 | +`Python Essential Reference <http://www.dabeaz.com/per.html>`_: |
| 100 | + |
| 101 | +Learning Python |
| 102 | +------------------- |
| 103 | +This was the best intro book back when I learned in 1999... |
| 104 | + |
| 105 | +`Learning Python <http://shop.oreilly.com/product/9780596158071.do>`_ |
| 106 | + |
| 107 | +Core Python Programming |
| 108 | +------------------------ |
| 109 | + |
| 110 | +Often suggested as the best intro text -- recommended by Guido van Rossum himself. There is also the advanced book, that I haven't looked at yet: "Core Python Application Programming" |
| 111 | + |
| 112 | +`<http://corepython.com/>`_ |
| 113 | + |
| 114 | + |
| 115 | +The Official Python docs: |
| 116 | +--------------------------- |
| 117 | +A good place to go for reference, and not a bad tutorial. Keep this open in your browser all the time... |
| 118 | + |
| 119 | +<http://docs.python.org/>`_: |
| 120 | + |
| 121 | + |
| 122 | +... and many others |
| 123 | + |
| 124 | +Class Schedule: |
| 125 | +===================== |
| 126 | + |
| 127 | +Topics of each week |
| 128 | +------------------------------ |
| 129 | + |
| 130 | +Week 1: General Introduction, basic data types, functions. |
| 131 | +.......................................................................... |
| 132 | +Oct 1 |
| 133 | + |
| 134 | +`Assignment week 1 <https://github.com/PythonCHB/PythonIntroClass/wiki/Assignment-01>`_ |
| 135 | + |
| 136 | + |
| 137 | +Week 2: Modules, Control Flow, Sequences |
| 138 | +.......................................................................... |
| 139 | +Oct 8 |
| 140 | + |
| 141 | +`Assignment week 2 <https://github.com/PythonCHB/PythonIntroClass/wiki/Assignment-02>`_ |
| 142 | + |
| 143 | + |
| 144 | +Week 3: Exceptions, Unicode, File Processing |
| 145 | +.......................................................................... |
| 146 | +Oct 15 |
| 147 | + |
| 148 | +`Assignment week 3 <https://github.com/PythonCHB/PythonIntroClass/wiki/Assignment-03>`_ |
| 149 | + |
| 150 | + |
| 151 | +Week 4: Built in container classes, Argument passing, Text Processing |
| 152 | +.......................................................................... |
| 153 | +Oct 22 |
| 154 | + |
| 155 | + |
| 156 | +Week 5: Build a dynamic HTTP server from scratch. |
| 157 | +.......................................................................... |
| 158 | +Oct 29 |
| 159 | + |
| 160 | + |
| 161 | +Week 6: Object-oriented programming |
| 162 | +.......................................................................... |
| 163 | +November 5 |
| 164 | + |
| 165 | + |
| 166 | +Week 7: More OO -- Special methods, Iterators and Generators. |
| 167 | +.......................................................................... |
| 168 | +November 12 |
| 169 | + |
| 170 | + |
| 171 | +Week 8: Decorators, Debugging, Packages and packaging |
| 172 | +.......................................................................... |
| 173 | +November 19 |
| 174 | + |
| 175 | + |
| 176 | +Week 9: Testing, profiling, performance. |
| 177 | +.......................................................................... |
| 178 | +November 26 |
| 179 | + |
| 180 | + |
| 181 | +Week 10: Persistence / Serialization |
| 182 | +.......................................................................... |
| 183 | +December 3 |
| 184 | + |
0 commit comments