Doing it for yourself - deciding whether to use someone else’s code

June 22, 2009 – 4:05 pm
Photo by jurvetson

Photo by jurvetson

Using someone else’s code can be great.  Or it can be horrible.  If it does exactly what you need it to, doing so with no bugs and no ambiguity, then this is awesome.  If you need to make changes to buggy, uncommented code written by someone who thinks the GOTO statement “really isn’t that bad”, then we don’t envy you one bit.

So, here are some of the things you need to consider when deciding whether or not to use someone else’s code.
Read the rest of this entry »

Stay on target! Ways to help yourself work

June 10, 2009 – 8:38 pm
Clockwork egg timer.
Image via Wikipedia

In a previous post we talked about how to keep your brain in tip top condition and staying in the ‘zone’. We recommended some simple techniques like removing distracting email, IM or twitter traffic but sometimes the problem isn’t staying in the zone, it’s getting into the zone in the first place. In this post we recommend some tools and techniques to help you get going. Everybody has different techniques so we’d also like to hear from you about how you beat procrastination and get working. Read the rest of this entry »

The 4 levels of making code work

May 26, 2009 – 8:36 am
Photo by dbking

Photo by dbking

You want to make your code work.  Anything else would be dumb, right?  Right.  But as we’ve discussed before, deciding whether your code is good enough to count as “working” isn’t always straightforward.  On way of looking at this is to categorise four stages of relative completion of a software project.  Any one of these four can count as “good enough” if that’s what your project requires and in many ways they represent a sequence of levels of technological development. Read the rest of this entry »

The basics of SWIG

May 11, 2009 – 5:48 pm
Image from sketch22

Image from sketch22

Simplified Wrapper and Interface Generator, or SWIG for short, is a tool that provides a way to interface C/C++ with a variety of high level programming languages (notably Python, R but not Matlab - which has it’s own way of linking to C). It generates wrapper methods that allow the two languages to talk to each other. If you have legacy C code that you want to use in your shiny new R program or if some of your code needs to be re-written in C++ for a speed boost then SWIG can help you out.

Read the rest of this entry »

Fine-tuning your programming brain

April 27, 2009 – 4:01 pm
Photo by Gaetan Lee

Photo by Gaetan Lee

Even the most genius programmer has bad days.  But have you ever stopped to consider how much of a better programmer you’d be if you had as many good days as possible?  We think it’s not so much about how great you are on your best day; it’s about bringing your A-game to the project each and every day. Read the rest of this entry »