Archive for July, 2010

Functional Refactoring in C++

Sunday, July 11th, 2010

Consider the following C++ code snippet: bool UNIVERSE::Initialize(const std::string & assetpath, const std::string & shippath, const std::string & behaviorpath, MODELMANAGER & modelmanager, std::ostream & info_output, std::ostream & error_output){ if (LoadAssets(assetpath, modelmanager, error_output)) { info_output << "Loaded universe assets successfully" << std::endl; } else { error_output << "Error loading universe assets" << std::endl; return false; }  […]

Dev Journal and Project Hosting