16Apr/064
Regular Expressions are required
(Via Bill Ryan.)
True story:
I know somebody who has, TWICE now, COMPLETELY REWRITTEN a javascript function because it had a regex in it and he didn’t understand what it was doing. I’ve pointed him to several resources, two books, and explained what the regex was doing myself. So we went from a single line regexp to multiple if-elses and swtich statements. Somebody run the old complexity-analyzer on that one.
There aren’t a lot of technologies that I push or say should be present in every devs toolbox, but regular expressions are one of them. You don’t have to memorize them, heck I have yet to write one without having a reference book open next to me, but you have to recognize them and know when they are appropriate.
-
http://www.codinghorror.com/blog/ Jeff Atwood
-
http://www.todhilton.com tod
-
mike


