No respect

I have no respect for people who write code like this example below:

return false;
return true;


vpapanik said…
You mean the wrong indentation don't you ? :D :D :D
frankoid said…
if(this.hasActionMessages() == BooleanConstants.FALSE){
return false;
}else if (this.hasActionMessages() == BooleanConstants.TRUE) {
return true;
} else {
throw new IllegalArgumentException("Unknown value returned by hasActionMessages()");
Much better ;-)

Popular posts from this blog

Chrome Packaged Apps

GetDIBits vs. Scanline vs. Pixels[] in Delphi Bitmaps

Installation of Mint 17.1 Cinnamon on VMWare