Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
Python, Lua and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Java, C, C++, Ruby, MySQL and Linux / Tomcat systems
 

Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Perl module P222
Programming Efficiency and Style
Exercises, examples and other material relating to training module P222. This topic is presented on public course Perl Extra

Programming in Perl is an art as well as a science. You can write code that looks beautiful and runs like a well-oiled machine, or you can write code that's quite otherwise. In this module, we'll look at how you can write code that's reliable, runs fast, and is easy to maintain.


Articles and tips on this subjectupdated
4611Hungarian, Camel, Snake and Kebab - variable naming conventions
In my program, I'm going to use a variable to hold the number of people (in a group or in a category) perhaps. What should I call that variable? There are a whole lot of different conventions available to you - here are some I have used / come across Camel case: numberOfPeople A series of words, ...
2016-01-03
 
2657Want to do a big batch edit? Nothing beats Perl!
I still love Perl ... Wanting to convert a file of lines like this:   <img src=rp_153_track.jpg><br><br> into lines like this:   rp_153_track.jpg <img src=rp_153_track.jpg><br><br> The code is as simple as:   /=(.*?)>/;   print "$1 $_"; And ...
2010-06-23
 
2688Security 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
 
2399Firefighting with Perl
If the building is blazing, you'll go right ahead and put the fire out with the extinguisher. Hopefully you'll have been trained to use the right sort of extinguisher on the right fire, but you won't leave the fire to blaze just because the "date last serviced" record has become smudged and you don't ...
2009-09-07
 
1181Good Programming practise - where to initialise variables
It's a good idea to initialise your variables directly before you use them for the first time if you're going to use them as accumulators. By accumulator I mean that you're going to write assignments such as:   $n += 4; # Perl   incr notepad; # Tcl   lappend flcodes [lindex ...
2007-05-11
 
743How 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
 
Examples from our training material
control   regular expression efficiency demo - control
try1   regular expression efficiency demo - start with literal
try2   regular expression efficiency demo - start with anchor
try3   regular expression efficiency demo - remove use of $&
try4   regular expression efficiency demo - process line by line
try5   regular expression efficiency demo - read into list
try6   regular expression efficiency demo - via foreach
try7   regular expression efficiency demo - index rather than regex
trybench   regular expression efficiency demo - testing with benchmark module
Background information
Some modules are available for download as a sample of our material or under an Open Training Notes License for free download from [here].
Topics covered in this module
Background.
Planning your program.
Efficiency - fast operation.
How to code rapidly.
Easy maintenance.
Minimal memory requirements.
Style.
Complete learning
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.


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2018: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01225 708225 • FAX: 01225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/resources/P222.html • PAGE BUILT: Mon Feb 8 18:55:24 2016 • BUILD SYSTEM: WomanWithCat