Modern IDEs help developers write code much quicker than ever before, autocompleting and auto-sensing a lot of what we want to do. Sometimes it generates code that needs to be changed due to the intent of the programmer that differs from the assumptions made by the IDE.
That said, when I see code like this I cannot help but ponder for a brief moment whether the developer just forgot to clean up the code generated by the IDE, or whether the developer intentionally placed the cookies on the table - ummm - I meant the break after the return:
switch (someType)
{
case A:
case B:
case C:
case D:
return false;
break; // <- WTF?
}
It is retarded. Why do people insist on writing:
boolean overwrite = check();
if (overwrite == true) {
doSomething();
}
when this does the same, requires less typing and is more natural to read:
When Charles Darwin came up with his incredible theory of evolution, he managed to explain a lot about where we came from and how we became the species we are now. So he answered the WHERE and HOW pretty darn well.
However there is one thing that he did not answer, and to the best of my knowledge has never been answered before. That is the WHY. In specific:
Why do cells want to survive and reproduce? What drives this need?
I have just spend the better part of a day trying to do something seemingly very simple - to restore a System Image I made of my Windows 8.1 system. In the end I finally managed to get the system restored, but it was not without more pain than I can bare at this advanced stage of my life.
A couple of things complicate the restore, so let me give a brief history of what led up to this.