On days like these, I realise why C++ is really not my preferred langauge any more...
Python is clearly the winner, and has been for some time. Python is so elegant, powerful and productive that when I hack in other languages I really miss it. These days, I think the ideal development model is to write mostly in Python, and then optimise the slow bits with a C module. Have a good separation between the 'engine' and the interface, so things are nicely reusable and embeddable. I would probably rather write in C than C++ anyway. Oh, and lots of Twisted stuff too. That is way cool... Oh, but -
But... I didn't mention why C++ is giving me the poos right now. I just spent (no, read wasted) a good hour on a bug that turned out to be an unsigned int being divided by a constant float and giving me -2.94e15 instead of just 25. Argh! More casts...
The good news however, is that this was the last bug standing between me and world domination. Ok, well not really, but my research code is now doing sensible things with resampling CT scans. W00t! I really should post some screenshots; I've even got some pretty 3D piccies now...
Or maybe I'll do that after I finish this paper. :/

Leave a comment