Media Molecule PMoly

warning signs

2010January 25th

when I’m coding, sometimes I get warning signs that I haven’t understood the problem fully. Normally, they take the form of gross looking code - ‘-1’ or ‘+1’ hanging round in loop limits, even worse, seemingly arbitrary constants, large amounts of unavoidable pointer dereferencing,…

nearlly always this is a sign that either I’m doing it wrong, or I got the data structure wrong. It is ALWAYS better to stop and rethink.

as I’ve got more experienced coding, I’ve continually lowered my tolerance to these warning signs, and it always helps. even if I find myself doing something fairly innocuous, like a nested loop, or if I find an unexpected number of edge cases I need to ‘code around’, I now stop and rethink. I don’t always get the right answer… but I’ve never regretted that mental check.

tl;dr version: develop your spidey coder sense for anything gross, and listen to it. it’s like the human form of -Wall, and it’s always worth it.

For those of you who use a wide-screen monitor, managing windows can be a bit annoying. oh for a tiling window manager for windows! ah well, this is nearly as good: it maps Ctrl+Alt+numeric keypad such that the current window snaps to the relevant half or quarter of the screen. makes it very easy to quickly organise your windows into tiles, without having to touch the mouse (as you do with windows 7 new features).

Posted by: Alex

Categories: Code

image

Posted by: Alex

Categories: Code
Tags: the matrix

Highcharts

2010January 3rd

Ccool interactive JavaScript charts: http://www.highcharts.com/

image

Posted by: Paul

Categories: Code
Tags: javascript

LLVM Project Blog

2010January 2nd

http://blog.llvm.org/

image

Posted by: Paul

Categories: Code
Tags: llvm