Archive for the ‘Programming’ Category
Friday, April 9th, 2010
A while ago I wrote a bit about Microsoft’s practice of “dogfooding” their software. That sparked a fair amount of discussion on Reddit.
Of course, a few people assumed I was talking in absolutes, that because the practice of dogfooding is not perfect, it must be evil. That’s a bit of an exaggeration. (more…)
Posted in Programming | No Comments »
Wednesday, April 7th, 2010
The end is nigh.
On monday the 12th of April, I’m going to defend my master’s thesis. If you’re in the area, and are geeky enough to find it interesting, feel free to drop by.
(more…)
Tags: thesis
Posted in Meanwhile, Programming | 1 Comment »
Saturday, April 3rd, 2010
Just over a month ago, I handed in my Masters Thesis. All that’s left now is an oral defense of it one of the next weeks. So what happens then? I suppose I should find a job. A few people have asked if I am going to do a PhD, but I don’t think so. I think I’ve had enough of academia for now. It was fun while it lasted, but I think it’s time to try something different.
(more…)
Tags: thesis
Posted in Games, Meanwhile, Programming | 2 Comments »
Friday, March 12th, 2010
Funny how it goes. Some subjects are just flat out impossible to write catchy titles for. Others seem to attract them like flies. A lot of very clever people have written volumes about “The Simpleton Pattern”, and “Singletonitis”.
Many people are in love with the Singleton pattern. Others — a small minority, I suspect — consider it a mistake, an anti-pattern, or something that was only ever included in the Design Patterns book as a lifeline to procedural programmers who couldn’t really figure out this OOP thing.
(more…)
Tags: c++, design patterns, singleton, stackoverflow
Posted in Programming | 6 Comments »
Wednesday, January 13th, 2010
A term that’s become very popular, and which especially Microsoft’s developers seem to champion, is “dogfooding”. The idea that as a developer, you should use your own products on a daily basis, even during development. This exposes you to all the weaknesses and flaws of the product, and makes you much better equipped to deliver a product that’s actually worth using.
(more…)
Tags: dogfooding, microsoft, visual-studio, Windows Mobile
Posted in Programming | 2 Comments »
Saturday, January 2nd, 2010
I tried really hard to come up with some witty title or pun to weave into the title of this post. I couldn’t. RAII is just a terrible name, and it isn’t really clever or funny. Unfortunately, it is also the single most important key to C++. It is not just an idiom but a fundamental philosophy used to solve almost any problem in the language. So we can’t really avoid it.
If I had to pinpoint one thing that marked the difference between a skilled and an unskilled C++ programmer, it would be “do they understand RAII”. Many people don’t, hence this post. (more…)
Tags: .net, c++, java, raii
Posted in Programming | 5 Comments »
Wednesday, December 30th, 2009
As I mentioned earlier, I’d like to celebrate the new year by calling out a few products I’d like to see improved in the new year.
First in line is Microsoft’s C++ compiler and IDE. (more…)
Tags: c++, ide, intellisense, msvc, new-year, visual-studio
Posted in Programming | No Comments »
Sunday, December 20th, 2009
A friend recently asked me for “the simplest optimization problem I could think of”. This led to a fun discussion of low-level optimization and how the CPU executes your code. And so I decided to share it here. (more…)
Tags: assembly, cpu, low-level, optimization, performance
Posted in Programming | 4 Comments »
Tuesday, December 15th, 2009
Ouch. These last few days, I’ve been fixing a few lingering bugs in my STM system, and last night, I finally nailed them. Specifically, it is now possible to open variables within a transaction as read-only. An obvious optimization, right? At least that’s the idea. Less work is required by the STM system if we can trust that the variable isn’t modified by this transaction.
(more…)
Tags: c++, performance, stm, thesis, transactional-memory
Posted in Programming | No Comments »
Monday, November 30th, 2009
As promised yesterday, I’d like to show off a few bits of my STM library. Of course it’s far from done, and is still missing several key features, but the core library is in pretty good shape. So as they say on the internets, “my STM library, let me show you it” (more…)
Tags: c++, stm, thesis, transactional-memory
Posted in Programming | 2 Comments »