Tuesday, March 15, 2011

To C Something in Less Words...

Thanassis Tsiodras makes a good case on C++ for C programmers. His main point – which I wholeheartedly share – is that C++ allows algorithms to be generalized in ways not easily available in C (if at all), whithout the performance hit found in most other alternatives.

Futhermore, both C programs and programmers can benefit from a more smooth transition, since the languages are mostly compatible at source-level. While it is my experience that, for new projects, one should not try to mingle C and C++ – it's better to go full C++ from the start, lests one risks creating an ugly mess of conflicting memory management paradigms – for ongoing projects hindered by the limitations of the C language, moderate doses of C++ may well be the right medicine.