|
Re: std.datevalidation.class.inc [message #737 is a reply to message #736] |
Sun, 01 April 2007 05:05 ![Go to previous message Go to previous message](/theme/default/images/up.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
You are quite correct. Thanks for spotting that.
I'm glad you like my style of documentation. When I see complex regular expressions I hate to see a single long string as it can take some while to work out exactly what it does. By breaking it down into its component parts, which can then be commented, it makes it easier for everyone - both a newcomer AND the original author.
I learned a valuable lesson many years ago when I wrote some complex code without any comments. When I came to look at it 6 months later it took me ages to figure out what was going on. I realised then that it is far better to insert comments as you are writing the code than to try and figure it out later.
You will find lots of other regular expressions in my code, especially in file include.general.inc, but it is such a complex and powerful area that I am learning new things myself every day.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|