2 ms·
Reminds me of getting an answer from Tom Christiansen on stackoverflow. Most of his answers follow one of the two typical patterns: 1. an extended regex to do
by viraptor 16y ago
Reminds me of getting an answer from Tom Christiansen on stackoverflow. Most of his answers follow one of the two typical patterns:
1. an extended regex to do what you want in every encoding known to man, extended to use cases you never mentioned, taking 10+ lines to replace one character with another (with occasional angry remark about random other language where "it's impossible to do that")
2. "it doesn't work, because you're not using my standard boilerplate" - followed by 20+ line boilerplate setting a lot of different things where most of them are not even remotely related to the question... because everyone should be using his boilerplate...
- draegtun 16y agoTo be fair the boilerplate does catch the usual beginners mistakes: http://stackoverflow.com/questions/4272816/using-dumper-not-triggering-a-failure/4272858#4272858 http://stackoverflow.com/questions/4272816/using-dumper-not-...
- viraptor 16y agoMy point was that majority of that answer was completely offtopic. I'm not disagreeing that it catches the mistakes - but that this reminded me of the attitude described in the post above. tchrist might be a known perl person... but this comment was confusing at best - only one line actually relates to the question - "use autodie;". You must be also full of yourself to actually write something like "If you had begun with the standard boilerplate" - where "standard boilerplate" is actually "something I use" - and expect anyone else to actually use it.
- draegtun 16y agoYes answers like this can be off putting but they are steered more towards the teaching you how to fish and are often be more valuable in the long term BTW... sorry to be pedantic but it was the use warnings and not the use autodie that caught the problem.