-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcourse3.html
326 lines (285 loc) · 10.4 KB
/
course3.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<html>
<head>
<title>System Development with Python</title>
</head>
<body>
<p>
UW Certificate Program in
<a href="http://www.pce.uw.edu/prog.aspx?id=4189"><b>Python Programming</b></a>
</p>
<h2>System Development with Python</h2>
<p>
Spring Term, 2011<br>
(10 Sessions) Tuesdays 6 - 9 pm, April 5 through June 7.
</p>
<p>
This program also includes
<a href="http://staff.washington.edu/jon/python-course/">
<b>Programming in Python</b></a> (Fall 2010) and
<a href="http://briandorsey.info/uwpython/Internet_Programming_in_Python.html">
<b>Internet Programmming in Python</b></a>
(Winter 2011).
<hr>
<p>
<a name="summary">
<b>Summary:</b> This course is a will primarily be a
studio/lab/clinic, where students (working individually or in groups)
will do a <a href="projects.html">capstone project</a> of their own
choosing that applies and consolidates what they learned in the first
two courses.
</p>
<p>
Each meeting will also include a presentation by instructors, guests,
or students. See the provisional <a href="#schedule">schedule</a>.
The prepared presentation, including questions and discussion, will be
limited to one hour per class.
</p>
<p>
Two hours per class will be devoted to project work. An instructor
will meet with each student for twenty minutes in turn (each student
working in a group will get the full twenty minutes). Each twenty
minute appointment will be scheduled at least a week in advance.
Students should prepare questions or discussion points for their
appointments in advance. Students will present their
<a href="projects.html">projects</a> to the
class on the last day.
</p>
<p>
<b>Instructors:</b> <a href="http://staff.washington.edu/jon/index.html">
Jonathan Jacky</a> and <a href="http://briandorsey.info/">Brian Dorsey</a>.
See Fall and Winter course pages for more details.
</p>
<hr>
<h3>
<a name="schedule">
Schedule
</h3>
<p>
Here is a provisional schedule of possible presentation topics.
</p>
<table border cellpadding=10>
<tr><td>Week</td><td>Date</td><td>Topics and links</td></tr>
<tr><td>1</td><td>Apr 5</td>
<td>
Integrating a Python web application with client code:
Javascript, Ajax, canvas, ...<br>
<p>
Jon, with guest speaker Jon Crump. Lecture notes
<a href="notes-1.txt">here</a>.
</p>
<p>
<a href="http://uhlenbeck.me.washington.edu/qse/qubit/spin-sim.html">
Interferometic Qubit Meaurement</a>, explanation
<a href="http://uhlenbeck.me.washington.edu/qse/qubit/">here</a>.
</p>
<p>
Server code:
<a href="spino.py">spino.py</a>, <a href="spinometer.py">spinometer.py</a>.
Client code:
<a href="spin-sim.html">spin-sim.html</a> (view source),
<a href="simAnim.js">simAnim.js</a>.
</td></tr>
<tr>
<td>2</td><td>Apr 12</td>
<td>
<p>Testing: doctest, unittest, ...</p>
<p>Brian</p>
Files:
<a href="week02/week2_slides.pdf">lecture slides</a>,
<a href="week02/truth.py">truth.py</a>,
<a href="week02/doctest_example.txt">doctest_example.txt</a>,
<a href="week02/unittest_example.py">unittest_example.py</a>
</td>
</tr>
<tr>
<td>3</td><td>Apr 19</td>
<td>
<p>Testing: py.test, nose, program testing, automated testing</p>
<p>Brian, Jon</p>
<p>
py.test & nose:
<a href="week03/pytest/week3_slides.pdf">lecture slides</a>,
<a href="week03/pytest/truth.py">truth.py</a>,
<a href="week03/pytest/test_truth.py">test_truth.py</a>,
<a href="week03/pytest/doctest_example.txt">doctest_example.txt</a>,
<a href="week03/pytest/test_unittest_example.py">test_unittest_example.py</a>
</p>
<p>
<a href="week03/notes-3.txt">notes</a>,
program testing:
<a href="week03/trun.py">trun.py</a>,
<a href="week03/clogdiff">clogdiff</a>,
<a href="week03/test_ls.py">test_ls.py</a>,
alternatively <a href="week03/test_ls_unit.py">test_ls_unit.py</a>,
automation:
<a href="http://packages.python.org/nose/writing_tests.html#test-generators">
generators</a>,
<a href="http://staff.washington.edu/jon/pymodel/www/">model-based testing</a>.
</p>
</td>
</tr>
<tr>
<td>4</td><td>Apr 26</td>
<td>
<p>Graphics and GUI protgramming: wxPython, object-oriented programming, and events</p>
<p>Jon</p>
<p>
<a href="week04/notes-4.txt">notes</a>,
<a href="http://gnuradio.org/redmine/wiki/gnuradio/TutorialsWritePythonApplications">GNU Radio</a>,
<a href="http://www.wxpython.org/">wxPython</a>:
<a href="http://www.wxpython.org/docs/api/">reference</a>
(<a href="http://www.wxpython.org/docs/api/wx.Button-class.html">etc.</a>),
<a href="http://wiki.wxpython.org/Getting Started">tutorial</a> (another
<a href="http://www.zetcode.com/wxpython/">here</a>).<br>
examples:
<a href="week04/buttoncounter.py">button counter</a>,
<a href="week04/signoise2_multigui.py">scope and spectrum analyzer</a>
(simulates
<a href="http://staff.washington.edu/jon/gr-mrfm/#hw">this</a>,
requires <a href="week04/multigui.py">this</a>,
also available
<a href="http://staff.washington.edu/jon/gr-osx/gr-signoise.html">here</a>).
</p>
</td>
</tr>
<tr>
<td>5</td><td>May 3</td>
<td>
<p>Doing several things at once: events, threads, and processes</p>
<p>Jon</p>
<p>
<a href="week05/notes-5.txt">notes</a>,
<a href="http://www.stanford.edu/~ouster/cgi-bin/papers/threads.pdf">advice</a>,
<a href="http://docs.python.org/library/thread.html">libraries</a>
(<a href="http://docs.python.org/library/multiprocessing.html">etc.</a>), and
<a href="http://wiki.python.org/moin/ParallelProcessing">systems</a><br>
events:
<a href="week04/buttoncounter.py">button counter</a>,
echo <a href="week05/echoserver-select.py">server</a>
and <a href="week05/echoclient-select.py">client</a> using select
(based on <a href="http://ilab.cs.byu.edu/python/select/echoserver.html">this</a>
and <a href="http://ilab.cs.byu.edu/python/select/echoclient.html">this</a>,
also <a href="http://ilab.cs.byu.edu/python/code.html">here</a>)<br>
threads: <a href="week05/nosynch.py">X's and O's</a>,
echo <a href="week05/echoserver-threads.py">server</a> using threads
(based on <a href="http://ilab.cs.byu.edu/python/threadingmodule.html">this</a>),
<a href="week05/oscope.py">ascii oscilloscope</a><br>
processes: a <a href="week05/compute.py">compute-bound program</a>,
called from the <a href="week05/shell_compute">shell</a>,
from <a href="week05/threads_compute.py">threads</a>,
and from <a href="week05/multiprocessing_compute.py">processes</a>.
</p>
</td>
</tr>
<tr>
<td>6</td><td>May 10</td>
<td>
<p>Asynchronous network frameworks: Greenlets, ...</p>
<p>Brian</p>
<p>
<a href="week06/week06_slides.pdf">lecture slides</a> and
<a href="week06/notes.txt">notes</a>.<br/>
Echo servers: <a href="week06/echo_servers/asyncore_echoserver.py">asyncore</a>,
<a href="week06/echo_servers/gevent_echoserver.py">gevent</a>,
<a href="week06/echo_servers/twisted_simpleserv.py">twisted</a>,
</p>
</td>
</tr>
<tr>
<td>7</td><td>May 17</td>
<td>
<p>Connecting Python to other languages: C-API, SWIG, and Cython</p>
<p>Jon</p>
<p>
<a href="week07/notes-7.txt">notes</a>
with many more links in addition to these:<br>
C-API: <a href="http://docs.python.org/extending/extending.html">reference</a>
and <a href="http://en.wikibooks.org/wiki/Python_Programming/Extending_with_C">
tutorial</a>,
example: <a href="week07/c-api/hellomodule.c">hellomodule.c</a>
and <a href="week07/c-api/setup.py">setup.py</a><br>
SWIG: <a href="http://www.swig.org/doc.html">reference</a>
and <a href="http://en.wikibooks.org/wiki/Python_Programming/Extending_with_C#Using_SWIG">
tutorial</a>,
example: <a href="week07/swig/hellomodule.c">hellomodule.c</a>,
<a href="week07/swig/hello.i">hello.i</a>,
<a href="week07/swig/hello_build.sh">hello_build.sh</a>.
<br>
Cython: <a href="http://cython.org/">reference</a>
and <a href="http://conference.scipy.org/proceedings/SciPy2009/paper_1/">
tutorial</a>,
example: <a href="week07/cython/hello.pyx">hello.pyx</a>,
<a href="week07/cython/setup.py">setup.py</a>,
another: <a href="week07/cython/integrate.py">integrate.py</a>,
<a href="week07/cython/integrate.pyx">integrate.pyx</a>,
<a href="week07/cython/setup_integrate.py">setup_integrate.py</a>.
<br>
</p>
<p>
also, <a href="http://www.pypy.org/">PyPy</a>
(more <a href="http://morepypy.blogspot.com/">here</a>),
and the <a href="http://speed.pypy.org/">PyPy Speed Center</a>.
<br>
</p>
</td>
</tr>
<tr>
<td>8</td><td>May 24</td>
<td>
<p>Distributing and installing Python modules: distutils and PyPI,
also setuptools, easy_install, pip, virtualenv, fabric, ...</p>
<p>Jon</p>
<p>
<a href="week08/notes-8.txt">notes</a>
with more links in addition to these:<br>
the <a href="http://pypi.python.org/pypi">Python Package Index</a>
(PyPI, aka CheeseShop), and its
<a href="http://wiki.python.org/moin/CheeseShopTutorial">tutorial</a>.<br>
python.org on <a href="http://docs.python.org/distutils/">distutils</a>
and <a href="http://docs.python.org/install/">installation</a>.
another <a href="http://guide.python-distribute.org/">tutorial</a>,
especially <a href="http://guide.python-distribute.org/creation.html">here</a>.<br>
example <a href="week08/setup.py">setup.py</a> and
<a href="week08/README.rst">README.rst</a>.<br>
<a href="http://guide.python-distribute.org/introduction.html#current-state-of-packaging">alternatives</a> to distutils, also
<a href="http://www.clemesha.org/blog/modern-python-hacker-tools-virtualenv-fabric-pip">here</a> and
<a href="http://groups.google.com/group/django-developers/msg/5407cdb400157259">here</a> and
<a href="http://faassen.n--tree.net/blog/view/weblog/2009/11/09/0">here</a>.<br>
Using <a href="http://semver.org/">version numbers</a> and
<a href="http://docutils.sourceforge.net/docs/user/rst/quickref.html">
reStucturedText</a>.
</p>
<p>
detailed
<a href="http://www.aosabook.org/en/packaging.html">
explanation and critique</a> of packaging tools by Distutils2 author.
</p>
</td>
</tr>
<tr>
<td>9</td><td>May 31</td>
<td>
<p>Distributing Python programs: p2exe, cx_Freeze, pyInstaller, py2app, bbfreeze, ...</p>
<p>Brian</p>
<p>
<a href="week09/notes.txt">notes</a>,
<a href="week09/week09_slides.pdf">slides</a>, and
<a href="week09">examples</a>.
</p>
</td>
</tr>
<tr>
<td>10</td><td>Jun 7</td>
<td>
<p>Presentations of <a href="projects.html">student projects</a>.</p>
<p>All</p>
</td>
</tr>
</table>
<hr>
<p>
<a href="http://staff.washington.edu/jon/index.html">Jonathan Jacky</a>,
<em class="email">jon at u dot washington dot edu</em>
</p>
</body>
</html>