Skip to main content

python for beginners


I've written a considerable amount of dynamic code, but until a couple of weeks ago, I was new to Python.

The APress book Dive into Python, by Mark Pilgrim, is a very good resource and will come in useful later. For now it brightens up my bookshelf with nice Halloween colors.

However, it assumes a background in Perl, which I lack. So I went on the hunt for a book that begins with the basics of Python and that speaks to my learning style. When I'm learning a programming language, I like to see things in the following order:

  1. Here's a task.

  2. Here's how this language addresses that task.

  3. And now here is the code, line for line.


O'Reilly's Programming ColdFusion MX is a fine example of this kind of instruction. So is Pilgrim's; it's just paced differently from what I need at the moment.

In my search, I found this interesting online book by Alan Gauld. It is meant as an introduction to programming for nonprogrammers, however, a programmer can read it without suffering insult. The book does not cover just one scripting language, but three: Python, JavaScript, and VBScript. Starting with the basics, it introduces a task and demonstrates how each of the three languages accomplishes this task.

I was interested only in the Python parts of the book, and it was easy to skip through the pages to just those. Within a few hours, I was working with complex data types in Python.

The book is also available for download as a tar/gzip for Linux users, a Palm doc, and a hefty 299-page pdf. I ended up printing the latter.

I just wish the author would change the name on the title page of these materials to reflect the actual name of the book rather than calling it "tutor," which is strange.

Popular posts from this blog

facebook, time to grow up

Originally published on August 28, 2006 I appreciate how Facebook has enabled me to connect with colleagues, and (younger) family members in a manner that is both informative and expressly cordial. It attracts students like Nutella attracts chocolate lovers, and because of that, I see interesting potential here. In fact, one of our faculty members at Penn State plans to try running his human-computer interaction course through Facebook this fall . Definitely worth pursuing.

the case for incremental redesign: part ii

If you are in any way responsible for a Web site, you should have some understanding of the principles of Extreme Programming . Cultivated as a discipline of software development, it is a combination of ensuring that designs remain uncomplicated, centering changes around user requirements, and employing the concept of the "Whole Team." The result is that small changes are released as they are needed - and endorsed - by the client. Not surprisingly, Extreme Programming speaks well to Web management. Consider its core values: simplicity, communication, feedback, and courage. These are the bedrock incremental redesign. Simplicity - Integrate all site changes in small doses. Avoid tectonic disruption of the entire Web presence. Document faithfully, but do not get bogged down in over-documenting. Or overplanning. Leverage reusable objects. Better yet, get the site into a content management system - one that is scaled to its requirements. Eliminate unmanageable code morass by fol...

how to make the worst of your content management system

I recently heard tell of the following activity, parading as content migration to an enterprise level content management system. I am not making this up: Copy large volumes of Web-content-to-be, page by page, into separate Dreamweaver files containing the design (created and sliced up in FireWorks) Copy/paste said Dreamweaver files into content wells of the content management system Repeat this activity ad infinitum until an entire Web presence is constructed in this fashion always crashing in the same car: recurring mistakes and misuses of the web When I heard this, something inside me snapped. Aside from the stunning inefficiency inherent in creating all these disparate Dreamweaver files, this activity points to a fundamental lack of understanding of what exactly a content managment system is. In the interest of quelling this misunderstanding in others, here follows a list of what not to do with a CMS: Dump a bad Web site into a good CMS. If your organization's Web presence is a ...