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
-
I'm not good with Java, nor do I know what valuation functions should do... But...
Why void/no return? -
@BambuSource this method basically validates some results for you after you have performed some actions.. this is basically a piece of automated testing code.. just go through the logic this guy has applied for validating the results..
-
@AndSoWeCode not only the brackets.. the logic too.. cant you guys just see it???
-
@abhishekjavali well that's what I mean. Using brackets to delimit blocks of code, not indentation. Which leads to this dude creating a function that always fails the assertion, regardless of parameter values or any other stuff out there in the universe.
-
@rnair it would have been a boon if the IDE would have said its an error.. but its not.. the linter is like "I am not saying what you have done is entirely wrong but probably you are a dimwit moron"
-
DjSall15837y@abhishekjavali now I see it. It makes me sad.
Seems like even I could land a dev job if someone like this is allowed to be there. -
him-1097y@hash-table The whole purpose of assert equals is checking for equality. The guy is checking for equality himself (which too is incorrect) and then asking assert equals to validate his result.
-
So when IDs match he logs that they don't, and no matter what assertion will fail since check is always set to false O_O
How did this reach production? How is it that this test never failed .-. -
awnumar2937yWhat the fuck. Why is that guy still alive. How few cells do you need in your brain to be able to manage that.
Jesus fucking christ.
It's like when people do:
if (v == true) { return true; } else { return false; }
Related Rants
One of my colleagues at work has cooked up this amazing amazing method.. and guys brace yourself.. This code is on production..
rant
noobs at work
amazing code
noobs
god save such developers