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
-
I think the best thing about this is that I just found the code below that a coworker wrote. I'm glad to know someone else out there knows my pain.
var checked = "0";
if(function_name == "call_history")
{
if(document.getElementById("report").checked)
{
checked = "1";
}
} -
pepero2468yIf this is java, strings should be compared with .equals , == actually wont do @7Raiden
-
7Raiden8758y@pepero True, I never coded in Java, but I remember that there's a 'triple equal' check? Maybe the usual '==' checks the pointers and "===" the actual content? Anyway, does that work also when you equal a string to a right reference (pardon my C++)? I mean, if that's the case "==" would never work!
Another piece of code that a guy in my office wrote. Now ex-employee!
undefined