cruft

Avoiding cruft when design catches up with implementation

I'm a contractor and am often brought in on projects to be heads down and just implement features for a deadline. Oftentimes though my pace becomes faster than that of the underlying design. So I often wind up having to create functions/methods to perform a task in a preliminary way while awaiting the final design. Case in point, cu...

Is this crufty?

I'm writing code like: class Game { int getMouseX() { return inputManager.getMouseX() ; } } ; I remember seeing code like this and hating it. One function passes off to another? What is this "pattern" (or, possibly, anti-pattern) called? I don't like it! On the other hand, it saves exposing the InputManager to ...

NSCFDictionary objectForKey unrecognized selector sent to class

After I call a SOAP webservice asynchronously using WSMethodInvocationSetCallBack and WSMethodInvocationScheduleWithRunLoop I get the result in the following callback function and begin parsing it void wsCallback(WSMethodInvocationRef invocation, void* info, CFDictionaryRef data) { const void *data = CFDictionaryGetValue(resultBody, (NS...