Monday, 13 May 2013

C++?

I think the title says it all.

I spent some time last weekend looking through the C++11 spec. The seminal C++ book by Stroustrup is due to be released in about 10 days time. Incidentally the cover photo is of Mount Fisht in Russia.


After working through all the available languages on my 8-bit machines (forth/lisp/pascal and the ubiquitous basic and assembly language), C was the first language I learned on my shiny new PC-AT in around 1985. Around 1990 C++ was starting to become mainstream, I remember picking up Turbo C++ first and then Borland C++. The IDEs on these things were so quick, especially considering the performance of the machines they ran on.

Going off on a tangent here but COBOL was the next I learnt. Here is a link to a COBOL project I created: Campbell's Cuisine. It still builds on a modern machine! I wrote this when I was 14/15. I have very fond memories of this as I got an optical mouse as a gift for doing it, at a time when NOBODY had one. It came with it's own shiny metal mouse mat with a pattern on it. A bit like this:


Where was I? Oh yes, C++. So, having look up C++11, it is so far beyond that original C++ that I learned that I struggle to really make sense of it all. I'm not afraid of learning something new, but that thing has some seriously funky syntax.

Is the performance worth it? I'm a big fan of functional languages and the fact it forces you to think in a certain way. C++ gives incredible power to shoot oneself in the foot.

Maybe I should order the book and see for myself...