129

I was writing a comment on an answer, and when I tried to add += 1 to the comment, when I went to add my comment it said it's not allowed. Why is that?

+= 1 is used all the time in programming, so it's silly that we can't put that in a comment.

enter image description here

9
  • @Jeroen it's += 1 at least on regular stack and not the meta
    – Shadow
    Commented Sep 23, 2015 at 6:03
  • @GNKeshava I tried it again and it worked, it's strange it didn't work before
    – Shadow
    Commented Sep 23, 2015 at 6:05
  • 37
    @GNKeshava I added a screenshot proving I'm not crazy
    – Shadow
    Commented Sep 23, 2015 at 6:08
  • 8
    Jeroen answered this already, but I'll add... Try to write comments that add something useful to the post or conversation. Commenting on a self-confessed off-topic comment from years past isn't likely to help folks confused by std:begin(); it's just noise.
    – Shog9
    Commented Sep 23, 2015 at 6:10
  • 8
    @Shog9 I put my comment there because I didn't want to bother a stranger with a notification, that's my own post :P when I was writing a comment, I was putting it on another post, where someone was incrementing an array and I was going to suggest ++ isntead of += 1
    – Shadow
    Commented Sep 23, 2015 at 6:12
  • 7
    Ah, you're right; I missed this one. Just add an explanation of why ++ might be preferable then.
    – Shog9
    Commented Sep 23, 2015 at 6:25
  • 1
    They are afraid of... injection. :D Commented Sep 24, 2015 at 12:45
  • 4
    i += 1'd this..
    – Tyler
    Commented Sep 24, 2015 at 17:03

2 Answers 2

75

Ahh yes, seems to be a bug with the "don't write +1 comments" rule. If you don't use it at the start of the comment you can circumvent the restriction, see here:

plus one comments

Note that the first one does work. Just rephrase so the +1 bit isn't at the start of your comment.

Nitpicking, a comment like:

+1 is all you need to fix myFunc, after that it runs just fine...

should probably get through the filter that triggers the warning.

A quick fix may also be be to have the red box include some tip on why it thought you were "commenting on your upvote", e.g.:

Your comment seems to contain "+1" of some sort. Please don't comment on your upvote.

In any case, no biggy. Plenty of workarounds, quick fixes, and pragmatic solutions available (including: just leaving the inconvencience).

20
  • 24
    The check doesn't even particularly care if there's a +1 in the comment, as long as it's not a very short comment that starts with it. Gobs and gobs of noisy "+1 thanks" comments blocked by that.
    – Shog9
    Commented Sep 23, 2015 at 6:12
  • 90
    Number of times this feature stopped me from posting a noisy comment: 0. Number of times I noticed that Shog9 treats me like an idiot: 3. Commented Sep 23, 2015 at 8:47
  • 44
    @HansPassant Woa, what's with the hostility? That was uncalled for IMO. In any case, it seems to me a genuine attempt to prevent noisy comments, and even if it doesn't prevent you or other power users from posting noise, it may well help prevent noisy comments from less experienced users.
    – Jeroen
    Commented Sep 23, 2015 at 9:46
  • 46
    Sure, treating me like an idiot is a pretty good way to get me hostile. We have a number for that, pretty sure it says I'm a reputable user and not an idiot. Use it. Commented Sep 23, 2015 at 10:11
  • 6
    @Shog, Why not leave the old rules as they were and just allow these chars when we use backticks to signify code? So += is not allowed, '+=' is allowed.
    – James
    Commented Sep 23, 2015 at 14:45
  • 10
    Thats why we shouldnt have regex checks or anything that tries to filter "+1 good answer" out, because there will always be a way around it...and so we've solved nothing yet but made it all the more difficult to comment. While at the same time we break other things such as this example...+=1
    – JonH
    Commented Sep 23, 2015 at 16:57
  • 6
    Were some comments deleted? I am completely lost by this conversation about whether or not Shog9 is treating @HansPassant "like an idiot." Commented Sep 23, 2015 at 17:22
  • 9
    @KyleStrand - No, no one is calling any one an idiot, its just Hans being Hans...he doesn't like this "feature"...and Shog has good intentions but I too agree this was a bad feature...It almost never works right.
    – JonH
    Commented Sep 23, 2015 at 17:26
  • 10
    @JonH How do you know it never works right? Just because you never try to post the type of comment it's supposed to block and therefore only see false positives doesn't mean there aren't enough true positives that it blocks to warrant the occasional inconvenience.
    – Michelle
    Commented Sep 23, 2015 at 17:40
  • 7
    @Michelle - To me who cares if someone wants to post "+1 thanks works great" it's a comment...a comment...nothing more than a comment. It shouldn't be filtered out, besides it causes more harm than what its worth, in fact here is a perfect example.
    – JonH
    Commented Sep 23, 2015 at 17:42
  • 8
    @JonH Honestly, if the comment thread here would be anything like the rest of the internet I think SO would lose a lot of users. The entire point of SO is to make it a hard cold efficient place and rules like this contribute a lot to that. Commented Sep 24, 2015 at 11:43
  • 35
    ‭‭‭‭‭‭‭‭‭‭‭‭‭+1 Commented Sep 24, 2015 at 16:50
  • 12
    lol this isn't a "bug"; it's Shog casting the net as wide as possible when he banned everyone's sensible comments then got surprised when people started gently modifying them to work around :P Yes, folks, that's right: he literally banned leading += 1 because he hates +1 comments so much. Commented Sep 24, 2015 at 17:04
  • 4
    @duplode sorry for how my comment came across. It wasn't meant to be snarky, it was meant to be taken literally - "don't get too high an opinion of yourself based on your reputation score, we all have a little idiot in us somewhere". Maybe it came across as "with your high rep you're still an idiot", but what I meant was "with high rep you're still capable of being an idiot, just like the rest of us". I was also trying to point out that Hans was taking something personally that wasn't directed at him, and by his own admission got hostile. I'm disappointed that my comment was removed. Commented Sep 24, 2015 at 18:41
  • 10
    (The users of this site are programmers. Trying to block them from something with a programming algorithm will likely just encourage them further to find a smart way around it.)
    – Lundin
    Commented Sep 25, 2015 at 13:01
-15

This feature has been designed to avoid "thanks" spamming (as Shog9 said). However this is not so good an idea.

If I want to spam using that kind of messages I will do that regardless of just few filters...

In my opinion, instead of this waste of resources we should believe in power of the community, which will find and vote to remove such comments.

4
  • 7
    -1: Actually, it was to prevent the leading vote indicator in comments like this, that may otherwise not be "spam" or "thanks" whatsoever. Commented Sep 24, 2015 at 17:05
  • 3
    @LightnessRacesinOrbit: So "+1" comments are banned but "-1" comments are OK? Strange... Commented Sep 24, 2015 at 18:23
  • 11
    @MasonWheeler That is to encourage users to leave a comment when downvoting, a much requested feature...
    – rene
    Commented Sep 24, 2015 at 18:26
  • 5
    @MasonWheeler: Nope; the filter is automatically turned off for longer comments, so that you can say "+1" instead of "I have decided to upvote you good kind sir well done good job" and avoid truncating the actually meaningful part of your comment. Completely ridiculous. Commented Sep 24, 2015 at 18:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .