Foognostic blogs Seeking knowledge of foo

14Dec/08Off

Resolving to use C++ in 2009

2009 is almost here and it's time to start thinking about resolutions. Everyone knows that resolutions are honored more in the breach than the observance. Keeping that in mind, here are my presolutions for 2009:

A.) I hereby resolve that 2009 will be the year of C++ for my coding hobby.

  ... and ... 

B.) I resolve to forget about this resolution as soon as my attention span wanes.

I'm justifying this lack of commitment by calling these pre-resolutions or "presolutions" for short. It's only December 2008, I don't see any problems with that.

I haven't used C++ since 2005; back then exceptions and Boost were verboten in the name of cross-platform compatibility. It was a little annoying but understandable; we had to appease C++ compilers from Microsoft, IBM, Sun, GNU, Metrowerks, and others. Hacks appeared all the time... sometimes you just wanted to ignore code rejected by the excellent Comeau online C++ compiler. But actually shipping things means living with warts sometimes.

Back in 2005 I had trouble imagining that Java would survive. I watched the misbegotten offspring of C++ and Visual Basic nearly reimplement CORBA in EJB2 and cackled in glee. Demise was surely imminent.

I've been using Java almost exclusively since 2005. Joke's on me!!

Since then I have been afraid that C++ was fading away into obsolescence. TIOBE says I'm wrong. All those trendy important new programs like "web browsers" not implemented in dynamic languages seem to concur.

Yes, these demonstrate my complete inability to predict trends in my occupational field. Go ahead and snicker, I deserve it. I'm like King Midas in some alternate universe where things I don't touch turn to gold.

So it is with some trepidation that I once again cast my befouling gaze on my fond old friend C++. I can change, things will be different this time! I won't pine over the preprocessor or pointer arithmetic. Honest!

I think I have a lot of catching up to do.

  1. First, I have to readjust my perspective on coding to include manual memory management, macros, virtual destructors, and avoiding non-const references to temporary objects.
  2. Next, I need to come up to speed on the standard template library (STL) and resource acquisition as initialization (RAII).
  3. Not sure how much I need to worry about C++0x.

Quite a lot of work ahead. At least I get to use GNU make again. Seriously. No snickering or eyerolling allowed!

This post is just my attempt to motivate myself. Following posts will (hopefully happen and) be substantial.

Tagged as: 1 Comment
   

Page optimized by WP Minify WordPress Plugin

Foognostic blogs is Stephen Fry proof thanks to caching by WP Super Cache