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
-
Im amazed someone who’s getting paid actually sat down and thought this would be a good idea
-
A Boolean check on an integer named variable.
With two equal signs.
Oh boy, the radiation level says you'll have a lot of contamination sunshine ahead of ya. -
cb21910094yFirst I thought this was about using guard clauses to fix the
if {
if {}
}
nesting, then I saw the true || false ... how?? Is this an accident? -
@cb219
Nah... it's nesting.
true or false can have a lot of meanings here thx to duck typing.
Check if array index is set and != null
Check if array value is "something" (1|0 e.g.)
Most likely followed by another tirade of nesting and an exit() or header() - for redirect / termination -
C0D4669024y🤔 and no ones going to point out why in the fuck is the user id in a cookie!
Why thank you good sir, let me go roll that ID around until I find someone of interest.
2 lines, 2 ifs, so many things wrong, it's great, and terrifying all at the same time. -
@TeachMeCode i see this shit every day from legacy code at work.
These are some of the wonders that we get from drinking php and falling into the rabbit hole -
I have something like this for knowing if user is administrator like
If(cookie(admin)){
Session == admin
}
I cry and i quit the job -
cprn17624yLet's play "how to fuck it more"! You can add only one change and you have to change version from previous comment. Using http://instaco.de/ is optional. 😆 Extra points for making change "not obvious".
Related Rants
Welcome to my live.
rant
shitcode