Re:The True Story of the Amazon Door-Desk
by jrockway on Saturday July 07, 2012 @11:03AM
(#4211782)
Incidentally, the same mindset goes with pretty much every other programming language I've seen. The long regexes exist because a short one was "debugged" and "enhanced" into the long one. The same goes with full programs; that five line Java class is now 1000 because all of the bugs were fixed and features were added. You can't blame Perl for the programmer that won't way "we're not shipping that feature today, we're going to split this regex into its own module."
(There is also a skill level issue; regexes are much easier to understand than parser generators, so a lot of people try to implement a parser with regexes.)
(There is also a skill level issue; regexes are much easier to understand than parser generators, so a lot of people try to implement a parser with regexes.)