From yesterday's "Learning to Program in Python" - an example of splitting your program into manageable chunks, which is SO IMPORTANT with regard to testing and ongoing maintenance that we introduce the subject even on that first day, with some of the early elements of the language.
from utilz import *
# Modular programming!
celc1 = gettemper()
celc2 = gettemper()
current = celc1
while current < celc2:
faren = ctof(current)
reporton(faren)
current = current + 10.0
Our programming course customers have two distinct backgrounds:
• There are those who know a bit about programming and are looking to convert their skills from C to Perl, from VB to PHP or from Shell Scripts to Python - and for them, courses such as
Perl Programming,
PHP Programming or
Python Programming are correct and appropriate.
• There are those who have not programmed before / rusty / never had any programming training, for whom topics such as "what is a variable", "how does a conditional work" and "why should I structure my code / how should I plan to do so" are vitally important. For such delegates, typically coming on the courses to make a major change / advance in what they do, an extra lead-in day to help get them established with the subject, comfortable with some of the basics more gently covered, is a great advantage. And they're often happy to come down a day ahead of the normal week's course to get that extra advantage. Certainly, yesterday with two delegates on
learning to program in Python was a great success - 'rave reviews' of what we are doing and how we did it from both students, on what is typically a group of a handful of people, in our quiet location, with the ability to learn anew without disturbance.
See
here for a table of courses - the languages we teach, and the "programming in ..." and "learning to program in ..." courses for each.
(written 2009-08-17 07:02:08)
Associated topics are indexed under
G906 - Well House Consultants - Programming Standards [2363] Alpaca Case or Camel Case - (2009-08-16)
[2322] Looking for a practical standards course - (2009-08-05)
[1852] Perl and Blackberries - (2008-10-23)
[1679] PHP - Sanitised application principles for security and useability - (2008-06-16)
[1596] Selling curry to the chinese takeaway - (2008-03-31)
[945] Code quality counts - (2006-11-26)
[356] Sudoku helper or sudoku cheat - (2005-06-23)
[343] Should I use structured or object oriented? - (2005-06-10)
[272] More to programming than just programming - (2005-04-08)
[148] Programming in isolation - (2004-12-11)
Some other Articles
Python - fresh examples of all the fundamentalsLearning to program - how to jump the first hurdlesAt the end of the courseCounting Words in Python via the webGetting it right from the start - new programmersThornham Farm Shop, Seend Cleeve, nr MelkshamGeocoding - converting address to latitude / Longitude with PHP via GoogleError Handling in Lua with assert and pcallA fresh example - objects the Lua way