The Artima Developer Community
Sponsored Link

Python Buzz Forum
High altitude programming

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Thomas Guest

Posts: 236
Nickname: tag
Registered: Nov, 2004

Thomas Guest likes dynamic languages.
High altitude programming Posted: Apr 13, 2007 12:57 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Thomas Guest.
Original Post: High altitude programming
Feed Title: Word Aligned: Category Python
Feed URL: http://feeds.feedburner.com/WordAlignedCategoryPython
Feed Description: Dynamic languages in general. Python in particular. The adventures of a space sensitive programmer.
Latest Python Buzz Posts
Latest Python Buzz Posts by Thomas Guest
Latest Posts From Word Aligned: Category Python

Advertisement

I enjoyed reading Peter Norvig’s recent article “How to Write a Spelling Corrector”, in which he remarks.

… I figured that on the plane flight home, in less than a page of code, I could write a toy spelling corrector that achieves 80 or 90% accuracy at a processing speed of at least 10 words per second.

This isn’t the first time Google’s director of research has confessed to programming on a plane. While others sit back and listen to their ipod shuffles, Norvig writes a Python program to unshuffle his.

Why ever would anyone want to write code on a plane? There’s hardly enough space on those teeny tables to balance a laptop, and (as he acknowledges in both essays), an internet connection is unlikely.

Possibly he’s showing off: after all, his intelligent friends, Dean and Bill, had no idea how a computer program could even perform such magic, let alone one written in less than a page of code and on a plane. Maybe he’s overworked, and the plane is the only opportunity he gets for such recreational projects.

I don’t think so. I’ll confess to having programmed on a plane myself, and suspect the real reason is that an aeroplane is – perhaps suprisingly – a good place to get some thinking done. The absence of an internet connection can be a bonus: all too often in this age of instant messaging and syndication, the internet is a distraction. I’m not surprised that a serious thinker like Professor Knuth doesn’t even read email.

Some suggest humans are naturally nomadic, and therefore that a state of movement is conducive to concentration. Maybe so. Certainly when I go jogging at lunchtimes, technical problems seem more tractable on my return. And I can digest a specification or a text book at least twice as quickly on a train as I could in an office.

Correcting Google

>>> import speling
>>> speling.correct("google")
'goose'

Read: High altitude programming

Topic: Diagnostics, Problem Definition and “House” Previous Topic   Next Topic Topic: PeopleAggregator v1.2 pre-release 3

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use