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
-
haze2706yThe most trollish thing is not the existence of those, but that they look like they have a LongButMeaninfulNameThatSaysWhatItDoes but do something completely opposite (see what is returned after comparison).
-
I doubt newbies will even write that code...
I've seen juniors write:
if (x == y){
return true;
}else{
return false
}
But nesting in a function and then screw up the simplest check orig == val then return false??
I think someone is just after retweets (talking about that dude in the picture and not ZioCain) -
hack64146yThey should implement it using a BooleanComparerFactory that implements IComparerFactory and use singleton pattern to make sure only one BooleanComparerFactory exists. So you can easyly get an instance of factory and use public function that calculates the equality of two variables by usung neural networks and deep learning. It should also use blockchain to make whole process decentralized.
-
@hack Yeah, as there are so many kinds of booleans, you can never be sure enough 😁 Maybe you can add a culture parameter as well
-
@hack and make it a microsevice running on multiple windows and linux docker containers.
-
Also, where is the 20 lines documentation comments for those methods?
(Of course the doc would describe what the method SHOULD do. Not what it actually does.) -
@gitpush I do this sometimes, now i try to do directly return x == y.
They have to do this, to learn you know what i mean.
sry for my english -
@HamsterOh if and return is ok for starter but calling a function to determine the result when he already is calling a function this is too much tbh
-
This is probably meant as a joke but are there really developer who are payed by lines of code?
-
Probably the manager made a stupid decision to pay you by the amount of lines of code.
-
mampf1836yI need to implement this using lambdas.
new BooleanComparator()
.compare(() -> b1, () -> b2)
.wantedCondition(Boolean.True)
.handle((TrueResult, falseResult) -> doSth()); -
Kaji20976ySomeone needs to write a REST API with secure authentication to tell the state of two booleans relative to each other.
Related Rants
How do you even come up with shit like this?
joke/meme
booleans
compare
useless methods
equal
useless functions
horror
c#