Archive for November, 2008

“Almost the square root of 2″ - rounding errors in computer code

Monday, November 24th, 2008

[caption id="" align="alignleft" width="300" caption="Photo by Waka Jawaka"][/caption] Computers are great for handling numbers and doing large amounts of operations on them.  They can repeat the same operation over and over again and they will do the same thing every time (unlike a human, who will sometimes do the wrong thing ...

The basics of…Matlab

Monday, November 17th, 2008

[caption id="" align="alignleft" width="300" caption="Photo by kennymatic"][/caption] It's important to know the basic features of any language you're programming in.  We don't just mean the syntax or whether the language is dynamically or statically typed (although these are very important); you also need to know what the language is good for, ...

Surviving legacy code

Monday, November 10th, 2008

[caption id="attachment_337" align="alignleft" width="300" caption="Photo by hryckowian"][/caption] During Rich's PhD, he was presented with some code and told to use it as the basis for a project he was working on.  This generosity turned into a major headache for a number of reasons, not least because the (somewhat sparse) comments were ...

Book review of … The Pragmatic Programmer

Monday, November 3rd, 2008

[caption id="attachment_331" align="alignleft" width="240" caption="The Pragmatic Programmer by Andy Hunt and Dave Thomas"][/caption] 'The Pragmatic Programmer: From Journeyman to Master', by Andy Hunt and Dave Thomas. An essential part of the education of any scientist-programmer (indeed, any programmer full stop) is reading good books on the subject. So we're going to ...