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
-
/*slow clap*/
Probably would have worked just fine if *only* they checked to see if $query['pt'] was set another couple of times. -
7Raiden8756yAfter 6 months he'll read that snippet and say "Oh my God, I can fix it!"
nChecksToBeReallySure = 1000
ret = False
for i in range(nChecksToBeReallySure)
ret = ret || bool(math.sin(isSet(...) * math.pi / 2))
if ret:
return True
else:
return not True -
C0D4669446y@billgates even as a Jnr you should know that the first isset() is the only one ever to be evaluated if it returns true for this conditional.
So unless somehow you manage to have $query[‘pt’] be false, false, false, false,false, and then true without modifying it within the condition it’s useless and you really have done something beyond remarkable. -
xmimic486yOh how nice it is to be young and naive and young and naive and young and naive and young and naive.
Related Rants
-
linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
-
DRSDavidSoft28Found this in our codebase, apparently one of my co-workers had written this
-
Korvax31Italian chef: We have the best spaghetti in the world PHP developer: I doubt that
This is how one of our junior devs solved a merge conflict
rant
merge conflict
wtf
oh god why
who hurt you
code quality
isset
php