In 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
(written 2012-06-21, updated 2012-06-23)
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
P205 - Perl - Initial String Handling [31] Here documents - (2004-08-28)
[254] x operator in Perl - (2005-03-22)
[324] The backtick operator in Python and Perl - (2005-05-25)
[970] String duplication - x in Perl, * in Python and Ruby - (2006-12-07)
[987] Ruby v Perl - interpollating variables - (2006-12-15)
[1195] Regular Express Primer - (2007-05-20)
[1608] Underlining in Perl and Python - the x and * operator in use - (2008-04-12)
[1849] String matching in Perl with Regular Expressions - (2008-10-20)
[1860] Seven new intermediate Perl examples - (2008-10-30)
[2798] Perl - skip the classics and use regular expressions - (2010-06-08)
[2816] Intelligent Matching in Perl - (2010-06-18)
[2832] Are you learning Perl? Some more examples for you! - (2010-06-27)
[2963] Removing the new line with chop or chomp in Perl - what is the difference? - (2010-09-21)
[3005] Lots of ways of doing it in Perl - printing out answers - (2010-10-19)
[3411] Single and double quotes strings in Perl - what is the difference? - (2011-08-30)
[3547] Using Perl to generate multiple reports from a HUGE file, efficiently - (2011-12-09)
[3548] Dark mornings, dog update, and Python and Lua courses before Christmas - (2011-12-10)
G305 - Well House Consultants - Post Course support [136] Please tell us - (2004-12-01)
[199] Post course support - part of the service - (2005-02-02)
[244] Getting your examples, my examples and the data files after your course - (2005-03-13)
[248] Use me, but use me effectively - (2005-03-16)
[293] Course follow-ups - (2005-04-27)
[327] How far should our support go - (2005-05-28)
[336] Targetted Advertising - (2005-06-05)
[389] Tough Love - (2005-07-25)
[509] Snippets from Geekmas - (2005-11-28)
[516] Open source questions? Anyone can ask. - (2005-12-03)
[569] Instructions for bright people - (2006-01-19)
[609] Been on a course, but still not got it? - (2006-02-16)
[651] Please Register with Opentalk - but just once! - (2006-03-19)
[1245] Ensuring that our tutor answers YOUR questions - (2007-06-25)
[1874] Is it worth it? - (2008-11-07)
[2102] What do people think of our Apache httpd / Tomcat course? - (2009-03-24)
[2732] Asking about Jesus - (2010-04-20)
[3045] After Course Resources - do we publish sample answers. Example from Java Exceptions module. - (2010-11-13)
[3391] For programmers who use Internet Explorer as their browser - (2011-08-13)
[3419] Data that we use during our training courses, and other training resources - (2011-09-04)
[3701] Refresh and Revision training class days - Perl / PHP / Python / Lua / Ruby / Tcl / C / C++ - (2012-04-19)
[4588] What teach you in a week stays with you for a decade - (2015-11-29)
Some other Articles
Melksham - a new dawnRuby on the web - a simple example using CGIHello World - Ruby on Rails - a checklist of each stepFine evening, country walk from Melksham - picturesSample answers to training course exercises - available on our web siteMuttable v immutable and implications - RubyMelksham Chamber of Commerce - looking to our future shape. Pivotal meeting next TuesdayHow well do you know Melksham?Python timing - when to use a list, and when to use a generatorChristmas in June? Melksham hotel bookings and Santa train