| |||||||||||
| |||||||||||
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 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 09:18:57) Associated topics are indexed under H105 - PHP - FunctionsM201 - Well House Manor - Around Melksham, Wiltshire G100 - Well House Consultants - Introduction to Melksham
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 1637 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 at 50 posts per pageThis 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). |
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho | |||||||||||