Getting Loopy

Description

fruit_loops1[1]Over at the Visual Basic blog, Matt Gertz has a great post on hidden effects with loops on stuff you may not realize.  He talks about how looping backwards versus forwards depending on the situation will drastically simplify your code or if you're looping and using the array.Count how the Count property will be called on every pass.

Matt also has another article about additional hidden costs too that is an interesting, quick read.

The Discussion

  • User profile image
    Clint

    @Mauro, you say that but I still see people making these types of mistakes.  Look at NASA, they forgot to convert from metric to english (maybe it was eng to met) for distance and crashed a multimillion dollar probe.

  • User profile image
    Mauro

    you dont need to read Matt Gertz to know this thing.

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.