Getting Loopy

Published 26 October 09 06:56 PM | Coding4Fun 

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.

Filed under: , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Mauro said on October 29, 2009 7:57 AM:

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

# Coding4Fun said on October 29, 2009 9:12 AM:

@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.

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

Search

This Blog

Syndication

Page view tracker