Formatting Your C++ Code the Easy Way

Everyone has his own coding style and dislikes everyone else’s. When you have to work with code written by other people, there’s a ton of it, and their coding style differs from yours in many ways, you have to do something.

As for Psi project, we in fact have some set of code style guidelines. But still sometimes we occasionally are looking at something that’s noticeably differs from our sense of perfection.

That’s where code beautifiers come into play.

(more…)

Death to the Icons!

It was a good week: public Psi 0.11-beta1 release happened recently, I was able to improve some design bits of my blog, also eliminated the long-standing insect that was hurting my eyes and stopping from using the development branch in day-to-day life. Now, the insect’s dead, and I’m happily running 0.11-beta1 now.

The ones who have already tried Psi/Mac 0.11-beta1 probably noticed the sudden appearance of many little bothersome icons in all kinds of menus where they weren’t present in 0.10: icons in context menu, application menus and even in the menu bar itself! So it was decided that icons should not be able to live any longer.

(more…)

The King of Dirty Hacks

Sometimes in C++ you may feel the need to write a piece of code that uses private functionality of third-party classes. This could be very noticeable with Qt, where you have very little control on included classes, and asking nice Trolls to include functionality you need could take some time, and the only alternative would be duplicating half of Qt-code and modifying class names. But there’s a neat trick that was advised to me by Justin. Interested? Read along.

(more…)