Archive for the ‘testing/debugging’ Category

Testing and the scientist-programmer

Monday, March 30th, 2009

[caption id="" align="alignleft" width="300" caption="Photo by dullhunk"][/caption] You do test your code, right? Well?  We certainly hope so. Testing can be a pain.  But it should also be a habit.  And we think it's pretty uncontroversial to say that testing your code is a Good Thing.  The Scientist-Programmer often finds a tension between ...

Seven ways to test your number-crunching code

Monday, December 22nd, 2008

[caption id="" align="alignleft" width="240" caption="Photo my alisdair"][/caption] Testing your code is important.  Pretty much vital, in fact.  This is because if you don't test your code, you don't know if it really works.  So an integral part of any software project is to come up with a good set of tests ...

Everyone wants to build, but no-one wants to do the maintenance…

Friday, October 10th, 2008

[caption id="" align="alignleft" width="240" caption="Photo by Y"][/caption] This is an article about maintaining your code once it's written.  By this point, your project is useful.  People (possibly you) are using it to actually do some science.  However, there's more still to be done and it would be a very bad plan ...

The psychology of debugging

Monday, October 6th, 2008

[caption id="" align="alignleft" width="300" caption="Photo by Esparta"][/caption] Debugging is a very different task from coding and it benefits from a different mindset.  Finding bugs can take time and can involve a lot of trial, error and testing of different thoughts as to what might be going wrong, because there are lots ...

Four ways to find invisible bugs

Monday, September 29th, 2008

[caption id="" align="alignleft" width="300" caption="Photo by Chainus"][/caption] "I just can't find what's wrong with my code..." Sometimes you just can't see why your code isn't working.  It's clearly broken , but you have no idea why.  Frustrating, isn't it? Happily, there are good tactics you can employ when this happens to find ...