2007/05/11

A large Sysco truck drove in front of me today. It was going slowly enough that I could read something written in permanent marker on the side of the truck, down near the bottom where the wall of the truck meets the underside. Someone had written "Nice weld, rookie!" and there was an arrow pointing to some bar of metal that had been welded to some other piece of metal. The joint where the two pieces met was a big mess of once-molten metal, cooled but still retaining it's liquid appearance. It really cracked me up. Maybe it's the use of the term "rookie". I should start using that.

I recently came across this code fragment:

Boolean.Parse(chkTaxSmart.Checked.ToString())

What this does is take a boolean value (the "Checked" property of the chkTaxSmart checkbox), convert it to a string by calling ToString, and then converting it BACK to a boolean by passing that value to Boolean.Parse. The whole thing could be replaced by just:

chkTaxSmart.Checked

If I could do it anonymously, I'd insert a comment that says "Nice code, rookie!"

Oh, and completely seperately: Can English speakers as a whole please unite behind me and never use the term "guestimate" ever again? It's not funny. It's not clever. It's not witty. It's annoying. Thanks! :)

No comments: