Sample answers to training course exercises - available on our web site
Archive - Originally posted on "The Horse's Mouth" - 2012-06-21 06:40:26 - Graham EllisIn order to consolidate knowledge that we've just imparted during each module of our courses, we set exercises for the delegates to try out at the end. And we're around and available while they're doing the exercises to check and assist in re-explaining any vital points that they've missed, and to help with the sometimes-odd error messages that a typing mistake can produce.
Sample answers are also available on our web site. If you've been on a Well House Consultants course, you'll have a folder of notes that covers the same ground as the course, which includes the exercises we set. At the top of the pages of each section, you'll find a module number - something like P205 for initial string handing in Perl. Simply put this number into a browser in the following format:
http://www.wellho.net/resources/P205.html
and you'll go straight to a page which includes:
• Links to the full source of sample program in the notes
• Links to sample (template) answers to the exercises
• A brief introduction to the topic, and a list of subsections
• A note of which course(s) the module is a part of
• Copyright for the module; in some cases the module is available for download
• Blog articles which talk about subjects covered in the module
There's also a full list of all of our modules, giving you a top level index to all our resources, at
http://www.wellho.net/resources/modules.html
I'm going to add, though, a few words of caution here.
When you're using a programming language, you'll use the wide range of features that make up the language as a whole. But when you're learning a language, you need to learn it in pieces - section by section. And that means that sometimes our sample answers, which have to be relevant to our delegates at the time, may not provide the best long-term solution. They may be stilted, long-winded, going from "A" to "B" via "F" ... and in many cases they'll not check the user's input. Paradoxically, they're likely to be overcommented as some of the minute detail is explained, whereas in a production program with an experienced maintainance team this very full commenting would be going one step beyond what was sensible.
Occasionally (and it's very occasionally these days!) we find that an example in the notes, or a sample answer, is missing from the web site. Many examples were written before we routinely published them online, and it's been a manual task over several years to get them all available. Please let me know if you're going through your notes and find something that's missing!.
And so - on that note - added to our web site this morning - sample answers for "initial string handling in Perl":
• autumn - ending user input with the work End
• winter - Capitalising and punctuating a sentence
and supporting that second example
• midwinter - Alternative using more advanced conditionals
• deepmidwinter - Same again, this time using inline structures within the print