From C# to C++: Creating a blog demo project – coding style rules

Like I mentioned in my previous post, for the last months I had to change my programming language from C# to C++. To show you some of the things that surprised me in the process, I will write a short series of blog posts to emphasize the scenarios and the issues. The code samples show…

2

Back to C++: From managed to native

The project I’ve been working on for the last several months is using native C++. Since I haven’t employed C++ in a long time (since school, to be precise), I had to “relearn” the language. As expected, the language grew a lot since last I was acquainted with it, and I was impressed with the…

2

Optimize for the Hot path

The Pareto principle (also known as the 80-20 rule, the law of the vital few, and the principle of factor sparsity) states that, for many events, roughly 80% of the effects come from 20% of the causes. This applies to programming as well: 80% of the people use 20% of the features, 80% of the…


[Multithreading] Asynchronous Sleep in Distributed applications

Scenario: You have to design and implement a distributed application where a lot of clients call different operations in parallel. In certain situations, in order to make the system behave better, you need to delay some operations. Some examples where this can be useful: – The distributed system encounters a problem and you have a…


Explorer crash when installing Windows Live – How do you bring it back?

For quite a while I’ve been using Live Writer to edit and publish blogs and I am quite satisfied with it (there are some quirks, no doubt about it, but it mostly works). I recently tried to install Live Writer on my newest Win7 box and I had a most unpleasant experience. First, the installer…