Help me find the correct object-oriented design-pattern/workflow
February 8, 2009 9:32 AM Subscribe
Help me find the correct object-oriented design-pattern/workflow
I am working a new project in objective-c, however I am having trouble finding the optimal design for the workflow. Most of the work I have been doing so far has been on the abstract frameworks/engine, but now I am playing around with different implementations in a class called Sketch, continuously changing the settings and logic. So far I have been just changing the code, commenting out this and that, all in the same file, thus losing previous setups. I am using version control, however not sure if I should be branching these various setups, as I wouldn't want the changes for the specific sketch to propagate back up. I may want to refine it to one master Sketch at one point, or merge together several, but at this point I just want to have a good workflow setup so that I can play around at will, testing out ideas.
So what is the optimal design pattern to be able to work both on the frameworks, in one place, and these various implementations of it. Subclassing the Sketch class from one generic class, or interfacing? Keeping the frameworks in a different folder, importing it as a static library into sketch projects?.. thanks!
posted by martini to computers & internet (5 answers total) 1 user marked this as a favorite
You don't need to branch if you're trying things out. Just check-in everytime you think you have something useful that you may want to roll back to. That way its all in the version history. Much better than commenting things out. Of course, you don't want to break other people who need to work in the code, so make sure what you have always builds. Though it sounds like you may be the only one working on it.
posted by jeffamaphone at 9:42 AM on February 8, 2009