Hotel and training centre, Melksham, Wiltshire
High quality accommodation for course delegates, business travellers and the leisure visitor too.

Home Accessibility Bedrooms Book Here The Mouth Facebook Resources Find Us About Us Contact
 
Python, Lua, Tcl, C and C++ training - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Java, Ruby, MySQL and Linux / Tomcat systems
 
A lazy programmer is a good programmer

I'm lazy.

By which I mean, if a job can be done once in such a way that I don't have to keep doing it time and time again, then that's how I will try and do it, even if there's a bit more effort and cost at first. That's why (for example) we've laid an underground water pipe out to where we're planning to have a fountain at Well House Manor even though we know we could top up the water with buckets or hoses every couple of weeks.

And I'm a lazy programmer. Which means (I think) an efficient programmer. Always looking for ways to reuse code, and always looking for coding techniques which save effort at data entry and maintainance time. That last is all the more important, since data entry and maintainance is a huge task in most applications, outweighing the coding many times over.

We've been adding map references to our pages about the Melksham area for quite a while, with clever links to maps, etc. And we've also been adding a paragraph with words like "and nearby you'll find ...." onto most of the pages too - a bit of a maintainance hassle that as if I were to add - say - a page on West Woods and talk about Marlborough and Avebury, then I would also have needed to have visited those other pages and added references in the other direction too.

WIBNIF (Wouldn't it be nice if) I could just add a grid reference to a page and have it AUTOMATICALLY and dynamically add a list of nearby places? Well - I've invested the time and coding to do this. You can find my PHP source code here (and it's in functions so that you too can be lazy and just use my hard work!), and you can see it in action here where we list out over 50 places on our database near to Well House Manor Hotel.
(written 2006-09-15, updated 2011-06-27)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
G100 - Well House Consultants - Introduction to Melksham
  [3932] River nearly bursting its banks in Melksham - (2012-11-23)
  [3696] Melksham government and business organisations - (2012-04-14)
  [3344] Repost - some useful pages on our site - (2011-07-04)
  [3232] Around and about Melksham in more pictures - (2011-04-05)
  [2704] A walk within without - Melksham Without - (2010-04-02)
  [2350] Ten years in Melksham - looking forward to ten more. - (2009-08-11)
  [2329] Great to be in Melksham - (2009-08-08)
  [1725] A future vision for Melksham - (2008-07-27)
  [1341] Moving to Melksham? Househunting map. - (2007-09-09)
  [847] Image maps for navigation - a straightforward example - (2006-08-28)
  [676] Melksham, Wiltshire - (2006-04-08)
  [517] An occasional chance, and reducing data to manageable levels - (2005-12-04)
  [322] More maps - (2005-05-23)
  [291] Why are we no. 404 - (2005-04-25)
  [269] Free parking for short errands in Melksham - (2005-04-05)

H105 - PHP - Functions
  [3026] Coding efficiency - do not repeat yourself! - (2010-11-02)
  [2929] Passing a variable number of parameters in to a function / method - (2010-08-20)
  [2737] Improving your function calls (APIs) - General and PHP - (2010-04-24)
  [2682] Adding extensions to PHP Open Source applications - callbacks - (2010-03-17)
  [2630] Static variables and ampersands in PHP - (2010-02-10)
  [2488] A variable number of arguments in a PHP function - (2009-11-02)
  [1784] Global - Tcl, PHP, Python - (2008-09-03)
  [1380] Static variables in PHP - (2007-10-05)
  [1357] Clean my plate, but keep my wine bottle. (PHP; Static) - (2007-09-18)
  [1267] is there a lookup function in php? - (2007-07-15)
  [1202] Returning multiple values from a function (Perl, PHP, Python) - (2007-05-24)
  [1163] A better alternative to cutting and pasting code - (2007-04-26)
  [1021] PHP - static declaration - (2007-01-04)
  [936] Global, Superglobal, Session variables - scope and persistance in PHP - (2006-11-21)
  [775] Do not duplicate your code - (2006-06-23)
  [421] Don't repeat code - use loops or functions - (2005-08-21)
  [409] Functions and commands with dangerous names - (2005-08-11)
  [340] Code and code maintainance efficiency - (2005-06-08)
  [339] Passing information into and out of PHP functions - (2005-06-07)
  [308] Call by name v call by value - (2005-05-11)
  [223] There is a function in PHP to do that - (2005-02-21)
  [96] Variable Scope - (2004-10-22)

M201 - Well House Manor - Around Melksham, Wiltshire
  [4701] Pretty at the station too - (2016-07-06)
  [4357] Seeing Christmas Coming to Melksham - (2014-12-20)
  [4169] Around and about - Melksham - (2013-09-08)
  [4151] Tell me a bit about Melksham - (2013-08-10)
  [4145] After the storm - (2013-07-29)
  [4141] My pictures of Melksham Carnival, 13th July 2013 - (2013-07-14)
  [4119] Melksham - Flower Town - (2013-06-20)
  [4084] New Pictures - Melksham Pack Horse Bridge - (2013-05-12)
  [3962] Melksham welcomes visitors - new blue plaque trail and more - (2012-12-27)
  [3960] Picture - between Lacock and Melksham - (2012-12-21)
  [3949] Melksham Spa from Woolmore Farm - (2012-12-09)
  [3944] Melksham Christmas Lights, 2012 - (2012-12-05)
  [3897] Autumn scenes from Melksham - (2012-10-16)
  [3869] How have Melksham shops changed in 60 years? - (2012-09-24)
  [3864] Guest Guide for Well House Manor and Melksham - (2012-09-18)
  [3837] Evening behind Melksham Spa - (2012-08-12)
  [3822] Town Clean - Melksham - (2012-07-29)
  [3771] Fine evening, country walk from Melksham - pictures - (2012-06-21)
  [3744] Short Web Addresses for Melksham - (2012-05-30)
  [3735] A walk around Melksham this morning. Can you place all of these? - (2012-05-17)
  [3720] Melksham ATC - freedom of the town - (2012-05-05)
  [3712] Some unpublished and historic pictures - Museum of Melksham - (2012-04-28)
  [3704] The Bowerhill Villager - a newsletter for Bowerhill, Melksham - (2012-04-22)
  [3703] A Museum for Melksham History. Open from 12th May 2012. - (2012-04-21)
  [3697] Events in Melksham - read all about them, and tell us about yours - (2012-04-15)
  [3692] Deeper than Art - An exhibition of the tattoo Canvas - Melksham - (2012-04-10)
  [3659] Welcome to Melksham - our new communities - (2012-03-18)
  [3657] Basham Festival, Melksham, early August 2012 - a welcome - (2012-03-16)
  [3656] TrainWest 2012 - 14th and 15th April, Melksham, Wiltshire - (2012-03-16)
  [3647] Along the brook - East Melksham to Melksham - (2012-03-10)
  [3646] Exploring Melksham with a film maker - (2012-03-09)
  [3644] The way of the Prioress - Melksham history pictured today - (2012-03-09)
  [3605] Snow comes to Melksham, Wiltshire - pictures - (2012-02-10)
  [3569] Images of the new year in Melksham - (2012-01-05)
  [3543] Some different pictures from Melksham - (2011-12-07)
  [3526] Melksham has a Heart - Montage picture for sale - (2011-11-20)
  [3525] Melksham has a heart - come and see the pictures. Sunday, 11 to 3, Assembly Hall - (2011-11-18)
  [3520] Quintessentially English - scenes from our Wiltshire town - (2011-11-14)
  [3507] Melksham Forward - meeting summary and pictures - (2011-11-04)
  [3502] Sunday Evening ... newest and oldest Melksham pictures - (2011-10-30)
  [3499] Images of Melksham - (2011-10-29)
  [3470] Currently pictured in Melksham - (2011-10-09)
  [3389] Plenty to do in Melksham - (2011-08-13)
  [3337] Home Grown Pigs, near Melksham Station - (2011-06-26)
  [3305] Getting away from the madding crowd - an intercontinental journey - (2011-05-27)
  [3266] Easter on the Canal - near Melksham, Wiltshire - (2011-04-26)
  [3258] Morning in Melksham - (2011-04-23)
  [3248] What have these pictures in common? - (2011-04-16)
  [3227] Her favourite store - (2011-04-02)
  [3209] Seeing Electricity Pylons near Melksham - (2011-03-21)
  [3050] Views of Melksham - November 2010 - (2010-11-13)
  [3023] Autumn walk from Bowerhill - (2010-10-31)
  [2950] Camilla, Duchess of Cornwall, turns first sod in Melksham Link Canal - (2010-09-09)
  [2854] Melksham Food and Drink Fair and Town Crier Competition - (2010-07-04)
  [2829] Dauncey Gardens, Melksham - (2010-06-27)
  [2739] Melksham Scouts - (2010-04-25)
  [2716] Melksham in Pictures - (2010-04-10)
  [2708] The bull on the footpath - (2010-04-04)
  [2691] New brochures for the Melksham area - (2010-03-24)
  [2665] Early Spring walk in Melksham - (2010-03-07)
  [2588] Freddies Wood and the K and A Canal - (2010-01-17)
  [2585] Consultation in Melksham, on Melkshams future - (2010-01-17)
  [2528] Melksham Christmas Lights - (2009-12-05)
  [2497] Brown horses in Melksham - (2009-11-08)
  [2480] Pantomimes around Melksham - 2009/2010 season - (2009-10-28)
  [2349] Businesses effected by road works in Melksham - (2009-08-11)
  [2297] Standing on the corner, Melksham Carnival - (2009-07-19)
  [2262] History is not always pretty - (2009-06-30)
  [2253] Walks in and around Melksham, Wiltshire - (2009-06-21)
  [2175] Melksham in pictures - (2009-05-11)
  [2168] In honour of the photograph, I present ... a walk from Reybridge to Lacock - (2009-05-10)
  [2142] Riverside Development - (2009-04-26)
  [2066] Melksham Industrial - (2009-03-04)
  [2064] East of Melksham Countryside - (2009-03-02)
  [2043] Confidence, Customer Service and Tourism in Melksham - (2009-02-15)
  [2008] The Month Ahead - What is happening in Melksham - (2009-01-25)
  [1986] Walk to Bowerhill - (2009-01-10)
  [1977] Going round the block - (2009-01-04)
  [1928] Melksham Oak Community School, Melksham, Wiltshire - (2008-12-07)
  [1451] More PHP sample and demonstration programs - (2007-12-01)
  [1436] A little touring help during a business trip to England - (2007-11-18)
  [1368] Getting the local voice heard - (2007-09-26)
  [1360] Asda in Melksham - Welcome or not? - (2007-09-21)
  [1343] Melksham Laundrette - (2007-09-09)
  [1330] While waiting for Melksham Post Office - (2007-09-02)
  [1271] Till the cows come home - (2007-07-19)
  [1266] Party in the Park - (2007-07-14)
  [1206] Where and When - can you place the picture? - (2007-05-27)
  [1177] Sorting out for a site map - (2007-05-05)
  [1137] Wiltshire Circles - (2007-04-07)
  [1117] Newport Male Voice Choir - (2007-03-24)
  [977] Melksham and Norwich - (2006-12-10)
  [957] Improving the historic town of Melksham - (2006-11-30)
  [929] Presenting Melksham - for a weekend away in Wiltshire - (2006-11-17)
  [879] Tuesday night is party night - (2006-09-26)
  [830] Butterflies in a Wiltshire garden - (2006-08-12)
  [811] Melksham in Bloom - (2006-07-22)
  [805] Melksham Carnival Parade - (2006-07-16)
  [437] Outside of the box - (2005-09-06)


Back to
Catching the slope
Previous and next
or
Horse's mouth home
Forward to
Being sure to be positive in Perl
Some other Articles
Autumn comes to Wiltshire.
UNABLE TO ATTEND
Smoking, or no
Being sure to be positive in Perl
A lazy programmer is a good programmer
Catching the slope
Add to shopping cart - NO VACANCIES sign
Double and Triple equals operator in PHP
4 weeks to go
Ballooning from Devizes
4755 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page
Hello. I'm Graham Ellis. If you have a question about the hotel, please ask me or

 

then book here

© WELL HOUSE CONSULTANTS LTD., 2017: 404 The Spa • Melksham, Wiltshire • United Kingdom • SN12 6QL
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/866_A-la ... ammer.html • PAGE BUILT: Sat May 27 16:49:10 2017 • BUILD SYSTEM: WomanWithCat