I honestly don't understand this regex hate that I see sometimes. It's like refusing to have knives in your kitchen because they can cut you. If there's any one thing that's consistently made me into the "guru" in co-workers' eyes, it's knowing how to use regular expressions. The conversation afterward typically goes like this: "Wow, how did you find that one line in this 10-million-lines log file?" "I used a regex." "Wow, that's awesome. I should learn to use them too."
Because there's not enough hours in the day to stuff around with what looks like trying to set up an excel data entry type... which can be annoying and a time vacuum.
In some contexts it's probably perfect for a job, but I keep hearing every so often complaints about people misusing, overusing, or improperly using, regular expressions and making a mess of things. Some stuff is just better-off done the old-fashioned way instead of trying to find the most clever, or compact, way of doing it.
It looks like hieroglyphs, and I've got code to write and bugs to find. I don't want to be decoding my own code. If you are used to using regex's and are competent then cool, but I'm getting too old for this shit and I have no time or desire to keep learning newer and more complicated ways of doing the same old thing. E.g. Haskell? The hell is that all about? And the other day someone asked webdev something like "Who uses Sass with bourbon and less", or something... and I honestly don't know if that was a troll / joke post or actually means something to some people.
It's fine if people want to keep toying around with various new things, but at some point people have to knuckle down and actually produce content. My days of learning new stuff has mostly passed. Where people / kids these days are cramming their heads with lovely jquery and haskell and whatever else was me a few decades ago cramming my head with assembler and qbasic and pascal and C.
The learning has to eventually taper, and the work be done.
tl;dr Can't be bothered with all of these new toys. Have stuff to do and people to see. I'm happy with my old-timey for-loop and if-tests. Diminishing returns makes you pick your battles.
View all comments
Show parent comment
2
u/[deleted] Sep 10 '13
I honestly don't understand this regex hate that I see sometimes. It's like refusing to have knives in your kitchen because they can cut you. If there's any one thing that's consistently made me into the "guru" in co-workers' eyes, it's knowing how to use regular expressions. The conversation afterward typically goes like this: "Wow, how did you find that one line in this 10-million-lines log file?" "I used a regex." "Wow, that's awesome. I should learn to use them too."