Archive for December, 2008

The beauty of private implementation (Pimpls)

In C++, when anything in a header file changes, all code that includes that header either directly or indirectly needs to be recompiled. Therefore, sometimes even a very trivial change might need to compile a lot of code. Also, when we usually declare both the public and private interfaces in the same c++ header file. Basically, the class declaration lets you peek at its private parts, which should actually be of no concern to the user of the class. Pimpl basically, decouples the interface of a class from its implementation (Bridge Pattern?). Any compile time dependencies are also eliminated. Lets see how.



December 20, 2008 at 12:06 pm 1 comment

5 reasons you should become a freelancer

Its been over 4 months since I quit my job and became a freelance software developer. I am enjoying every moment of my freedom and have also been able give some quality time to this blog. When I look back and think about reasons why I quit my job and what motivated me to become a freelancer, a lot of points come to my mind. But here are the top reasons that I think you should become a freelancer.


December 5, 2008 at 11:00 am 4 comments


  • RT @beeonaposy: Jumping back into code you wrote ages ago like 10% luck 20% skill 15% concentrated power of will 5% pleasure… 2 weeks ago
  • RT @jimmysong: Stuff CS departments should teach, but don't do very well: * Source control, esp. git * How to do effective code review * H… 1 month ago
  • RT @farbodsaraf: Advice to new managers: 1 earn trust by giving it 2 hire for EQ, train for IQ 3 eat lunch with your team 4 tell people t… 1 month ago