As we all agree, GOTO is evil, right? Relevant XKCD Or even funnier: New Intern Knows Best Of course, GOTO isn't evil Of course, somewhere deep down in our professional selves, we know that GOTO isn't evil, it's just a very basic processor instruction that was available since the early days of assembly code. GOTO … Continue reading Don’t Overdo the “Principle of Least Astonishment” Cargo Cult
Tag: Break
Don’t Extract Everything Into a Method
Every now and then, I tweet something like this, just to piss off some clean coders: https://twitter.com/lukaseder/status/885498470542577673 Apart from the obvious trolling factor (why can't I ever resist?), I do think there's something thought provoking in such a tweet. First off, given how rare break and continue statements are in Java code, many people probably … Continue reading Don’t Extract Everything Into a Method