I'm giving a Python course today, to a team of seasoned programmers, and of course I'm coming up with a few things that are different to the languages they know. So far, we've had ...
* No switch statement
* No ++ operator
* blocks indicated via insets
* else clauses on while loops
Of course, this makes them a little nervous, although it will turn out later on that the facilities that aren't present wouldn't be at all vital in Python, and indeed they may encourage poor coding practise. And block insets and extra "elses" are so natural once people are use to that way of doing things.
But people still aren't always convinced. "What do you drive?" I ask them. "A Ford" they say (or something else). "If you switched to a Vauxhall, would it be easy?" I ask. "Not necessarily - things will be in different places ..." is the answer but, yes, they would get used to the Vauxhall positioning in time.
Actually, Python can be
very different. I used to drive a narrowboat quite regularly, and that's the complete opposite of driving a car - push the tiller to the right to go left for starters, and then remember that the boat takes a while to react as you're not controlling types straight onto the ground, but rather you're changing the direction via the water.
Ah - but once you've driven a boat a few times you find there's a great natural beauty in it, and in the way it works. 8 tons can be controlled by just a gentle push with a single finger - much more efficient even that your car. Yes, that's a good description of the beauty and efficiency of Python too - Python is like a narrowboat.
(written 2006-10-30 15:25:55)
Associated topics are indexed under
Y101 - Introduction to Python [1663] Python in an afternoon - a lecture for experienced programmers - (2008-06-01)
[1375] Python v Ruby - (2007-10-02)
[950] Python and the Magic Roundabout - (2006-11-27)
[949] Sludge off the mountain, and Python and PHP - (2006-11-27)
[846] Is Perl being replaced by PHP and Python? - (2006-08-27)
[834] Python makes University Challenge - (2006-08-15)
[753] Python 3000 - the next generation - (2006-06-09)
[745] Python modules. The distribution, The Cheese Shop and the Vaults of Parnassus. - (2006-06-05)
[712] Why reinvent the wheel - (2006-05-06)
[710] Linux training Glasgow, Python programming course Dundee - (2006-05-05)
[629] Choosing the right language - (2006-03-01)
[444] Database or Progamming - which to learn first? - (2005-09-13)
[382] Central London Courses - Perl, PHP, Python, Tcl, MySQL - (2005-07-18)
[380] Bridging to the customer requirement - (2005-07-16)
[317] Programming languages - a comparison - (2005-05-20)
Y103 - Python - Conditionals and Loops [1696] Saying NOT in Perl, PHP, Python, Lua ... - (2008-07-04)
[1661] Equality, sameness and identity - Python - (2008-05-31)
[1477] Decisions - small ones, or big ones? - (2007-12-18)
[1201] No switch in Python - (2007-05-23)
[835] Python - when to use the in operator - (2006-08-16)
[788] New - Conditional expressions in Python 2.5 - (2006-07-01)
[668] Python - block insets help with documentation - (2006-04-04)
[657] The ternary operator in Python - (2006-03-25)
[353] Wimbledon Neck - (2005-06-20)
[299] What - no switch or case statement? - (2005-05-03)
Some other Articles
Python - A list of methodsRecursion in PythonLetter HomeHelping the miles passPython is like a narrowboatAnd so to InvernessBrowser -> httpd -> Tomcat -> MySQL. Restarting.A commitment we won't be makingNot proud to be BritishOf course I'll tell you by email