Archive for October, 2008

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 ...

How to Optimise code

Friday, October 3rd, 2008

[caption id="" align="alignleft" width="300" caption="Photo by NathanFromDeVryEET"][/caption] We've covered the theory of optimisation and how to write a profiler in previous articles.  This article is about specific optimisations that you can use to make your code go faster or use less resources. Related posts:How to…optimise MatlabWriting code for a big scientific collaborationScripting for science ...