Archive for April, 2007
Mist – The refactoring plan and progress
You can tell I have got back into programming again as the frequency of my blog entries has dropped to one very other week and the information contained in them is limited to what I am working on rather than what I am learning!
The Mist refactoring is underway. There are 3 major phases to it (at the moment). Read the rest of this entry »
Thoughts on Abstraction
It is a funny thing, abstraction, I have instinctively understood it but never really tried to give a good example as to what it actually is, with regard to producing code. Generally I have approached abstraction via the lazy programmer route, if something lets you fill in the blanks and fits any other criteria then use it and get onto other interesting stuff, if not roll you own.
My examples of a simple calculator provide a good comparison. The first attempt was deliberately ”retro style” C++, look here and you will see lots of control structures while in the later example, here, you see much less in the way of control structures meaning the more important actions can be seen more clearly.
Boost::Graph – Simple Calculate Version 3 (Spirit)
If you have not read my posts about the first two version of the code you can read about version one here and version two here. Basically the idea has been to use a simple calculator program to demonstrate the boost::graph library. In the latest version and probably the last I replace our hand rolled parser/lexer with one created using the Spirit framework for parser generation.