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
-
{
if (some_value_is_true)
{
// .. 170 lines of code
return some_value;
}
return null;
}
It's worse because it's so god damn common. -
If(condition !== false){
//code
}
Sometimes I wish I could physically attach a post-it in front of my colleagues stating: “please be patient, sometimes I am dumb” instead of seeing this stuff and having a stroke -
@C0D4 how do you tell the bot to do its magic without posting the code?
And btw, I like you code the most.
And with ‘like’, I mean I want to bang my head against the wall after seeing it. -
C0D4681453y@Lensflare I go back in time and remove the code from which the bot posted, and tell the bot to do what it's going to do in the future without telling it to do it at the time I told it to do it in the present.
🤠bow ties are cool.
In short: edit is a special power. -
i once caught a huge if statement that could be really short if the dev had used one of de morgan rules...
that was one of the times i valued the heck out of formal education -
To this day I don't understand why the if statement needs to be parenthesized. It's just visual noise in a lot of cases.
Give me an even worse one y'all can think of.
joke/meme
horrible if statements