Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Holy shit I never noticed that before..
Now I will see this all the time.
We need an explanation! -
anon8114868yBecause when devRant started ++ was actually +1. Guess they forgot to change the message...
-
@SHA-256 C'mon man. It's inaccurate. And we're all developers. x+1 doesn't change the value of x. This must be fixed or it'll be ironic to have this technical error on an app like this.
-
Root797738y@SHA-256 someone giving you a ++ would increment your reputation, whereas +1 would only change its displayed value
-
Out of scope but first time happy to read an argument between people because it's all about coding, and nothing else!
-
donuts236728yno actually that's correct? +1'd is better than +=1
And only I can give out multiple pluses as you can see here.... :) (j/k... its a semi-bug) -
Maybe it depends on the compiler. If devrant compiler is faster with +=1 than ++, it would make sense
-
@SHA-256 @Ashkin is right there is a difference between '++' and '+', the fist one is an unary operator that increments the value after returning the original value while the second one is a binary operator that returns the addition between the two operands without modifying any of them.
Something like:
++ =>
function(x){
return x;
x = x+1; //Increment after returning
}
+ =>
function(x, y){
return x + y; //No operand modified
} -
@andros705 This is why I want to be someone ++ your comment/rant. Not someone did your comment/rant ++.
-
lumy3558yI don't think it has anything to do with code.
Did you never had a conversation on a chat and when someone say something everyone agree, they just wrote '+1', maybe it come from this, when developers don't say i agree, but rather say just +1... Maybe. -
johnDoe32138yYou all should chill, everyone knows SCHEMEs iterator is the best..
(add1 x). If you wanna be classy you got (+ x 1). I'd say DevRant shouldn't have "++" or +1'd at all. What we need is:
"Insert name (add1 x)'d your rant!" Now that's style.
Thumbs up for a truly "functional" language 👍 -
@nicnaknic That would be ok too. At this point though I am more interested in having an expression that is correct than style. Plus not everyone is familiar with functional languages.
Someone +1ing a thing means that they only incremented it on their side not on devRant's server. -
@Damgecontrol someone ++'d you comment / rant would actually imply ++rant or ++comment.
Related Rants
Why does it say someone +1'd your rant/comment in the notification while the person actually ++'d it?
a+1 and a++ are not the same.
@dfox I don't like this.
undefined
wrong