digital Utopia

'C++' Category Archives

Evolution of code

Published by . Filed under C++, Programming. Total of no comments in the discussion.

A few years ago I worked on a project for a company that used a base64 class to encode a binary object into xml.  It was a class in that loosest of senses it being a simple wrapper around a pair of static C functions.  In fact it also made some assumptions which was painfully […]

Read More...

Improving Legacy Code

Published by . Filed under C++, Programming, Work. Total of 1 comment in the discussion.

My suggestions to a client on improving their legacy code. Initially: Move all source code from VSS into TFS. Ensure all code needed to compile is within the workspace. Ensure all dependencies are correct so compilation of any one module will automatically compile needed dependencies for that module. Add UnitTest++ (or CppUnit – whatever floats […]

Read More...

C++ and Maven sitting in a tree

Published by . Filed under C++, Life, Programming, Work. Total of no comments in the discussion.

…but they definitely were not K-I-S-S-I-N-G. In fact they weren’t even holding hands. As a test at work for a new project I was asked to look at using Maven, which is currently being used to great effect by the Java programmers, with C++. A new project has arisen that requires proof that there is […]

Read More...

Creating directories

Published by . Filed under C++, Life, Work. Total of no comments in the discussion.

I recently had a problem at work where an application failed if the user tried to use UNC paths in a application that was ran as a service. This service was written in C# that called into C DLL. Not only that, but the DLL was written in VC6. So after confirming I could recreate […]

Read More...

Functors

Published by . Filed under C++, Life, Programming, Work. Total of no comments in the discussion.

NOTE: I found this in my drafts folder, from a long, long time ago, it’s a little dated but I will let it stand as some of the points are still valid. At work I’ve inherited several legacy projects, one large with several smaller ones that support it. Making changes is pretty dangerous – I’ve […]

Read More...