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
-
Biggy131656yYou: please take off your pants as it’s easy for me to fuck your ass.
Code-reviewer: 🤒 -
For long A and short B, this makes sense. Also for variable A and constant B if Yoda expressions are part of the required coding style.
-
dev14103816yIn terms of readable code :
a = {}
a manipulated....
check_a = a.keys().__len__()
if check_a > 0:
return True
else:
return False
Me be like .....
return not a
Then slapped by the ass.
Sometimes reviewer so frustrating. -
I think it’s time to create a comment bot which would reply “fuck off” every time it sees something as ridiculous as this...
-
How does that make it easier? unless for example:
if (allowedBalance == userBalance)
then ya I'd switch them just to reflect the case I'm checking which is, is user balance equals to allowed balance -
-
jindradev236yin all seriousnes I thought the same until...
if (david == shit)
if (shit == david)
made me realise that maybe David doesn't look like shit, it is just some shit that looks like him -
I review code every day. That is not fair. It expresses a pure, personal preference which has nothing to do with coding standards or guidelines. It's not meant to be like that.
-
Dear code reviewer, would this work: B===D
Let me know! (also, shove that down your fucking throat) -
@GodlikeBlock "if (VALUE == myvar)". That is like saying "if strong is the force", which is how Yoda speaks.
-
dr-ant13446y@Fast-Nop I just don't get why yoda expressions are still popular. It's established that code is read more than it's written and yoda expressions are not readable. Any bugs these expressions try to avoid should be caught by simple testing if not source checker or compiler.
-
@dr-ant catching such a bug in testing or even with manual debugging is too expensive because the cost of bug fixing grows exponentially with the project phase.
The compiler should warn on this indeed, but I guess not all of them actually do that. GCC requires double parentheses if you really mean a combined assignment and comparison against zero. Then again, many projects compile with tons of warnings (another no-go) so that the hot ones will go unnoticed.
And of course, you don't get any warning in the browser console if you do "if (x = 1)" in JavaScript. -
That moment when you comment. Then go through other comments and see many same comments as you did. Lol
Related Rants
-
nachocode23If Gordon Ramsay made code reviews, I would watch that show. Especially the insults he would use for handling ...
-
adnanh86Got assigned an intern to mentor him, with an explicit order not to do any of the legwork for him. We start o...
-
cdrice32This code review gave me eye cancer. So, first of all, let me apologize to anyone impacted by eye cancer, if ...
The story of how humans evolved to an asshole.
Code-reviewer: please change 'if a==b' to 'if b==a' as it is easier to read so I can approve.
Code-owner: -_-
rant
asshole
code review