Pages

Friday, January 21, 2011

Relearning C++

It's been five years since I have touched any C++.  I don't hate it or even prefer Java over it (after all, Java isn't that much sexier).

My first attempt to reacquaint myself with C++ was relatively simple.  It was a little tool for my hobby-du-jour, knitting, to calculate yarn substitution when the gauge is different.

(Ignore all the knitting-speak.)

In the two hours it took me to write this program in C++, I could have made a much more sophisticated and versatile command-line program, or a GUI one,  in Perl/Python/Ruby/Java.  Or a JavaScript one.

But the point of the exercise wasn't about writing the best tool for the job; it was about C++.

No comments:

Post a Comment