Stupid coding errors

06 Jun 2006 » 1 min read » Filed under: Productivity & Tools

I’ve been doing a lot of C# programming lately and for the life of me, I keep making the same dump coding error. Instead of doing this:

  if (objFoo.IsNew) 

I have been doing this:

  if (objFoo.IsNew = true) 

The thing is, I know that the second way is wrong and will lead to all kinds of bad results and yet I keep making the damn mistake!

It’s all of those years doing VB programming that’s got me screwed up.

Tagged as ·


Get new posts by email

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Jamie Todd Rubin

Subscribe now to keep reading and get access to the full archive.

Continue reading