MarbleMice.com

Hacking the trees of knowledge.

Archive for April, 2007

Mist – The refactoring plan and progress

without comments

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 »

Written by birdle

April 23rd, 2007 at 3:05 pm

Posted in General

Thoughts on Abstraction

without comments

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.

Written by birdle

April 6th, 2007 at 10:29 pm

Posted in Programming

Boost::Graph – Simple Calculate Version 3 (Spirit)

without comments

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.

Read the rest of this entry »

Written by birdle

April 5th, 2007 at 2:27 pm

Posted in C++