Always test functions before writing others that depend on them


Yeah.  Didn’t do that.  Now I have half a dozen functions, 50 or so lines of code, I have no idea if it works or not.  

At least I’ve traced this function as for sure not working.  And the other functions that it depends on are tested and work correctly.  So even if the rest are completely wrong, at least I’ve found a good starting point for debugging.

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: