I'm not saying he shouldn't have (I've certainly learned something I didn't know), but let's face it, posting this on StackOverflow is like handing a loaded gun to a bunch of children and telling them not to pull the trigger.
I'm not saying he shouldn't have (I've certainly learned something I didn't know), but let's face it, posting this on StackOverflow is like handing a loaded gun to a bunch of children and telling them not to pull the trigger.
but let's face it, posting this on StackOverflow is like
handing a loaded gun to a bunch of children and telling
them not to pull the trigger.
No, let's not face it. How is sharing well thought out, designed solutions to problems ever a bad thing. Sure there are a handful of junior coders that now feel overly confident and will mess this up, but they'll learn.And then there is an equal pool of good developers that are now even better thanks to the info-share.
I acknowledge I'm being pedantic, but the Let's all nod and pretend we are way smarter than THAT group over there mindset gives me brain-diarrhea... you see it in every community (reddit, slashdot, HN, digg, etc.) and I've never seen it help anybody accomplish anything, anywhere... ever.
</takes off his internet-police hat>
Finally, I may have been "incorrect" but "disingenuous" is an insult. I'll be charitable and assume you're using the word wrong.
True, but that's the case for posting anything non-trivial where Google can find it. And isomorphic to using non-trivial programming languages or patterns in industrial programs.
At a certain point, you have to let go of the idea that if you hide anything requiring thought and judgment from people, they won't hurt themselves.
Some people are going to foul things up no matter what you do or don't tell them, and some will excel even if you make it hard for them to find knowledge. The interesting group are those who are open to being influenced by what you have to share.
I suggest that even if only a small proportion of SO readers walk away enlightened, this article is a win. The folks who use it to justify their own failed attempts to manage arbitrary HTML with regexen would have pooched the task in some other way even if they stuck to using a parser library.
At least that's my takeaway.
> You can write a novel like tchrist did
> [...] – meder Nov 20 '10 at 19:36
> That was kinda my point, actually. I
> wanted to show how hard it is. – tchrist
> Nov 20 '10 at 19:38
Seems that you are correctly channeling the author.>> Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems.