I Should Have Used ASSERT…

After about a week, I finally tracked down a pesky little bug that was throwing off the timing.

The really irritating bit was that when I’d written the following comment in front of the code:

-- FIXME: This will break if the value is too large!

What I should have done was written an ASSERT at that point to catch the bug – something I’ll be doing from now on.


About synsinger

Developer and Musician
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s