Monday Mar 05, 2007

Write Dumb Code

"Often, the way to write fast code in Java applications is to write dumb code --- code that is straightforward, clean, and follows the most obvious object-oriented principles."

Who said it? Well, you need to go here to find out.

Comments:

Completely agree, but it doesn't just apply to Java. In most cases the compiler/runtime really does know better than most programmers. I've seen code recently where algorithmically it should be faster but the code to check for the shortcutting features as more instructions than just doing it the same way every time.

Posted by Darren Moffat on March 06, 2007 at 09:45 AM EST #

Post a Comment:
  • HTML Syntax: NOT allowed