Saturday, May 03, 2008

SA: ClassNotes 2008.5.3



Per usual for this class, I showed Warriors of the Net, in which our warriors are these intrepid little IP packets, like trucks inside of tubes, our Internet.

We went over some elementary trigonometry so these students could better appreciate how a Pythonic expression like "[(cos(radians(n)), sin(radians(n))) for n in range(0, 360)]" is actually making a list of points in a circle when plotted.

Most of our time was spent tweaking vfun.py, some beginner examples of using VPython for fun (and for learning).

Having hit some high notes around a Biotum class on day 1, we're mostly settling for function level syntax on day 3, practicing basic flow: if and loop statements.

Named arguments may be passed in any order, or dropped entirely given defaults, which is what keeps our VPython functions (for cylinder, for sphere... for pyramid) so simple and sane.

We played with my jungle.py some though, just to keep the flavor of more object oriented code (foxes eating bunnies in this case -- no visuals).

I downloaded and installed wxPython with demos while students worked on their projects, for an impromptu segment on widgets programming, having gotten some GUI-related questions. We also looked at Pygame a little, but both have a steep learning curve, so best to already know Python.

We also toured Sourceforge a little, talking about how geeks collaborate on new code, share projects. That's not really the focus of this course however. Perhaps one day soon, Saturday Academy will offer classes on CVS, Mercurial, Bazaar... on Apache.

So many topics, so few Saturdays.

IronPython 2.0 beta 2 is out today. I'm downloading for testing.

IronPython 2 on .NET
free with source code
per Microsoft Public License