3 ms·
if you took a few seconds to explain why regexp is the wrong solution rather than just saying "don't use it", I'm sure the user would not only leave a lot more
by dagw 17y ago
if you took a few seconds to explain why regexp is the wrong solution rather than just saying "don't use it", I'm sure the user would not only leave a lot more enlightened, but would also stop asking the same question.
- mst 17y agoIf only that were actually true. Well, no, a lot of the time it does work, and I never say a word or I'm the one doing the explaining. The point of the example is that there's a fairly common pattern where people don't listen, don't become enlightened, and don't stop asking the same question because they've managed to get tunnel vision through staring at their non-working code for too long. At which point a short sharp verbal slap upside the head often serves to dislodge the cobwebs, at which point they start thinking again, read the explanation properly and become enlightened.