4 ms·
I could see this causing problems on technical discussion sites as it might consider a block of C code a bad comment. Sometimes there are legitimate reasons to
by erik 17y ago
I could see this causing problems on technical discussion sites as it might consider a block of C code a bad comment. Sometimes there are legitimate reasons to post something non-english, like a blob of numbers or some ascii (or unicode) art.
Slashdot has some filters like this on their comment system, but I think they are mostly targeted at blocking ascii art spam.
- aarongough 17y agoI can see that being a problem too. I think in that case you would have to change the validation code to look for those exceptional cases. In all honesty the validation as it is now is designed to handle content on more conversational sites (versus technical ones). I'll be interested to see what people use the validation for and there shouldn't be any problem expanding the code to handle more edge-cases...
- LiveTheDream 17y agoYou could modify the plugin to exclude certain areas of the comment from validation. I'm thinking of Markdown, where indented lines are code -- you could just validate non-indented lines.
- aarongough 17y agoI thought about that after the top comment. The only issue with that approach is that it would be easier to game the system if it were setup this way. Simply include your content in an indented block to bypass the filters.
- LiveTheDream 17y agoTrue, but the goal is to encourage quality comments. I think there is more benefit to allowing code markup in comments than there is potential downsides with people gaming the system. The system can be gamed anyway be a mildly persistent troll, so don't punish your good users by making commenting too hard! The system achieves the goal of "good comments" by putting up a friction barrier to terrible comments like the ones on YouTube, not impassible barrier to someone who intends on posting a bad comment.
- eru 17y agoI guess going with a statistical tool will be easier in the medium to long term than adding special cases.
- aarongough 17y agoThat's definitely a possibility. It's worth noting that the plugin was created with a specific use-case in mind (a non-technical user generated content site) and that outside of that role it's clearly not going to perform as well...
- eru 17y agoYes, for such a limited use case special rules are quite good. Just don't fall into a trap.