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
-
Maybe they think
return false;
Means it won't return, just carry on with the method? 😋 -
TehWardy118yThose people are called "users" not "co-workers" ... peers know how to write functions.
-
donuts238488ySometimes I do that for debugging when I want a whole lot of a function skipped.
Maybe they just forgot to undo it. -
Sometimes I like to mess with people
function getVal() {
return this.value;
while(true) {
console.log("ahahaha");
}
} -
donuts238488y@calmyourtities yes kinda like that usually keep it from running some really long data logic... Though it didn't take forever, just close to it
-
vasq2778yCalm down people. Maybe his co-workers are in the sales or marketing team. He didn't specify that they were programmers.
-
johnDoe32338yDepends, but yes typically if it's in the main body of a function it's all useless. How did they even get a job?
-
LMagnus20638yI accidentally once wrote "return" instead of "break".
Oh how we laughed/panicked over why data files were only being partially processed.
2 of my co-workers don't know that they shouldn't write any code after return statement of a function
undefined