Profile cover photo
Profile photo
Magnus Reftel
41 followers
41 followers
About
Magnus's posts

Here's a little idea for a feature I was discussing with +Fredrik Luthander earlier, that I thought I'd bring up to see whether there are others who agree with it =)

Wouldn't it be nice if we (and by "we", I mean Jenkins or similar) could upload coverage measurement files (e.g. .gcda/.gcno for gcov) so that the code view could highlight lines that have been modified in a change, but are not exercised by any automated tests? That way, the reviewers know what lines to be extra suspicious of. Not sure how the highlighting could be done, though, as both foreground and background colours are kind of taken. Italics? :-)

Post has attachment

Post has attachment
Seriously cool stuff. Marius Eriksen at Twitter describes how they're switching to Scala. Who said functional programming isn't used in the real world?

Post has attachment

Post has attachment

#define COLOURS COLOUR(red) COLOUR(green) COLOUR(blue)

enum colour {
#define COLOUR(x) Colour_##x,
COLOURS
#undef COLOUR
};
enum colour get_colour_by_name(const char* name)
{
#define COLOUR(x) if (strcmp(name, #x)==0) return Colour_##x;
COLOURS
#undef COLOUR
return -1;
}

#macromonday  

Post has attachment
Pretty picture illustrating the factorisation of 1-36 (from http://mathlesstraveled.com/2012/10/05/factorization-diagrams/)

Post has attachment
Interesting little document about how SQLite is tested. Well worth a read just to awe at what they have achieved. And here I was feeling good about reaching 100% branch coverage...
Also interesting is their conclusions on static code analysis. It's usually said that static and dynamic testing complement each other, but I guess that if you've done your dynamic testing so thoroughly that you have no bugs left, then all that static tools can do is to find false positives.

Post has attachment
The new Clang tooling infrastructure most definitely zooms! Read all about it, and as an added bonus find out the correct use of goto!

So which code hosting service should one use for a tiny (100 lines) project? Source browsing is a must (linking to that is the main purpose of putting it there), as is Git and/or Bazaar uploading.
Wait while more posts are being loaded