By Ryan on June 28, 2009
One thing I’ve heard a couple of times in either a trac ticket or in a forum thread is that we should all switch over to a decrement-style loop. Why? Simply because it’s faster. (We’ll ignore the time it takes to realize that you can actually loop down to zero.) I’ve wondered if it really [...]
Posted in Browsers, Java, Javascript | Tagged Browsers, decrement, increment, Java, Javascript, loop, speed |
By Ryan on November 3, 2008
My WarGame.java program required me to break out of two loops if a certain condition came up. Many programmers would say that you should fix your logic if you’re going to need to break out of two loops, but in this particular case, the solution seemed to be just that. In java, you’re offered the [...]
Posted in Java, Tips | Tagged break, enhancement, feature, hint, Java, loop |