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

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...

replicate, replicate, replicate

Aside from the usual reasons why it's silly to duplicate static content from Web page to Web page, here is yet another: If your Web site has content copied and pasted from one page to another, it is very likely that Google is filtering out some or all of the involved Web pages from search results. The reason: The Google search engine does its best to optimize user experience by returning unique content. Because no one wants search results listing page after page of the same stuff. always crashing in the same car: recurring mistakes and misuses of the web Higher Education and other organizational Web sites tend to needlessly replicate content. This happens perhaps most frequently when information is repurposed as marketing material. The same content ends up appearing at its original source as well as at one or two marketing pages. Unfortunately, if this marketing material resides above the core content in the site hierarchy - and it usually does - it can end up replacing the core ...