Is using ELSE bad programming?
- by dave.b
I've often come across bugs that have been caused by using the ELSE construct. A prime example is something along the lines of:
If (passwordCheck() == false){
displayMessage();
}else{
letThemIn();
}
To me this screams security problem. I know that passwordCheck is likely to be a boolean, but I wouldn't place my applications security on…