Monday, April 09, 2007

MORE ON OPTIMIZATION: READABILITY

What happens when "true" or "false" is not enough information from a reader viewpoint? You could optimize for readability.

From Eli's post: "... The other day I was working on my GSE game, and I had a class with an Update method. The Update returned a boolean indicating whether or not the class was finished updating. The idea was when the object was finished updating, I could stop worrying about it, and I could remove it from whatever collection was keeping track of it ...".

To get to the "Problem solved" part, just go and read Eli's full post.

No comments:

Post a Comment

Any thoughts? Post them here ...