·

Stupid coding errors

No. 461

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.

Or follow the RSS feed.

Comments

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