Giving meaningful names are important. Suddenly a few incidents popped up in my mind.
Once I was going through a legacy code, which had a variable like this: bool isWasStarted. I still don't know what it was used for!
The same project was having a function writeLog(text), and I expected the function to write the text to the output stream. The function body looks like this:
function writeLog(text){
UserManager.createUser(text);
}
Seriously, why people do this?!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Giving meaningful names are important. Suddenly a few incidents popped up in my mind.
Once I was going through a legacy code, which had a variable like this:
bool isWasStarted
. I still don't know what it was used for!The same project was having a function
writeLog(text)
, and I expected the function to write thetext
to the output stream. The function body looks like this:Seriously, why people do this?!