Exercises, examples and other material relating to training module P711. This topic is presented on public course
Articles and tips on this subject | updated |
4326 | Learning to program - comments, documentation and test code Updates material from our courses for newcomers to programming ... we're very happy to help newcomers learn about the basic principles of programming, running an extra day for a very small group on the front of our regular courses for delegates who have programmed before, but in different languages.
In ... | 2014-11-22 |
3398 | Perl - making best use of the flexibility, but also using good coding standards Sometimes, examples written during a course are throw-aways ... but at other times they become a useful addition to our resources. On a private private Perl course that I was running yesterday, and continues today and Monday, I found myself writing a useful piece that shows examples of lots of ways of ... | 2011-08-19 |
2875 | A long day in Melksham ... After breakfast, I started early (yes - I know it's Saturday!) reviewing Perl code (you can see here a sample piece of code which I projected and looked for 'issues' in with the group.)
The on to the Party in the Park - you can see here the stand that was set up and run by Chris and Miriam, Colin and ... | 2010-07-17 |
1853 | Well structured coding in Perl Write a small code utility - a few lines - and you can simply start at the top and work through to the bottom. But as the code increases in length, you're going to want to take out common code and put that code into named blocks that can be re-used. Extending this technique, you can break all your code ... | 2010-06-23 |
2688 | Security considerations in programming - what do we teach? Many moons ago, I wrote and presented a security course - and ever since that time I have been acutely aware of the need to consider security in every aspect of system design, program writing and maintenance. And these days - with many of our programs "exposed" to people to run from remote places via ... | 2010-03-25 |
2375 | Designing your data structures for a robust Perl application Whatever language you're programming in, design of your data structures is important. You should consider such design ahead of time, and before you start to code - "What am I going to be doing with this data" and "how do I want to access it".
It is easy - VERY easy - to fall into the trap of staring ... | 2009-08-26 |
1863 | About dieing and exiting in Perl If you want to end a program in Perl, you can get out quickly enough with an exit function call. But that's probably just a part of what you'll be wanting to do - you'll be wanting to generate an error message on the error channel (STDERR) too, and perhaps to tell your user rather more about why the ... | 2008-11-01 |
1221 | Bathtubs and pecking birds I have learnt of something called the "bathtub" effect in the last year or two. A complex new product has a teething period during which support requirements are high. The requirement drops away (like - into a bathtub) as the product gets more mature, but then the curve rises again as the product ... | 2008-09-16 |
1728 | A short Perl example #!/usr/bin/perl -pa
$_ = "$F[0] $F[-2]\n";
What does that Perl code do?
Although it's very short, it's also somewhat obscure, and my delegates yesterday were not at all sure that they would wish to be given code like this to maintain ... but then they admitted that they have seen things like this around ... | 2008-07-30 |
1555 | Advanced Python, Perl, PHP and Tcl training courses / classes This item is adapted from an answer that I have just written by email - but the question / conundrum as to what to do with fractured advanced training requirements is a common one, so the answer is worth wider sharing. I believe that our solution provides an innovative way of meeting advanced requirements ... | 2008-02-27 |
1395 | Dont just convert to Perl - re-engineer! There's a difference between converting a program from one language to another and re-engineering a program to make best use of a new language - and I had a couple of clear examples of that on our Perl for Larger Projects course today.
The following is "converted" code ...
if (! open (FH,"../Desktop/access_log.xyz")) ... | 2007-10-19 |
1345 | Perl and Shell coding standards / costs of an IT project There are three major staff costs in the life of an IT project - the specification and development of the system, the maintainance and upgrading of the system though its life, and the investment that's made in data entry and integrity through the life of the system. And although there's a lot of thought ... | 2007-09-11 |
1047 | Maintainable code - some positive advice Don't ask what class an object belongs to
Don't enquire where your cursor is
Don't do two things in a call
Don't duplicate data or code
Don't put two or more values in the same cell
There's lots of different ways of coding - from "dog's dinner" to "Picasso". The dog's dinner looks a mess and is very ... | 2007-05-18 |
965 | KISS - one action per statement please - Perl "Nice program, Bill - but the output is a bit verbose. Can you take out some print statements". So said one of my delegates' bosses this week, late in the day just before a new application went live. Alas ... the application fell over just because the print had been removed.
In Perl - that was the ... | 2006-12-05 |
945 | Code quality counts We're celebrating Geekmas this weekend ... and we've got a full place. Plus others who are coming in for the day. Really good session yesterday on the good DESIGN of an interactive (scripted) web site that "mines" user information to give a tailored presentation, and a great intro by Paddy to Python's ... | 2006-11-26 |
242 | Satisfaction of training I'm writing this during a final-day practical on a Perl course - 10 trainees, coding quietly as mice, as they write a web page to calculate the length of ladder that Romeo needs to reach Juliet and present the results. The program is being written to "best practise" standards - the HTML is being kept ... | 2006-06-05 |
743 | How to debug a Perl program Have you every written a Perl program that doesn't perform as you would wish? Yes, everyone who's written a Perl program has done that. Once any syntax errors have been corrected, you run your program for the first time and you check - VERY carefully - the results. Any errors, and the patterns of errors, ... | 2006-06-05 |
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
[here].
Why have standards?.
Target Author.
Target Audience.
Target Maintainer.
Portability.
Alterability.
Efficiency and resource use.
Licensing Issues.
Some Principles to consider.
Specifics to consider.
Putting it all together.
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Ruby,
Lua,
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.