help me from going insane
i''ve just started to code from scratch now with DirectX9. my problem is that my code design keeps me from working effecient. after a couple of weeks, i realize the design won''t work as the project is getting bigger. i''d really need some help so that i won''t go insane.
please, just give me some design guidelines or hints so that i can keep developing....
void DoNewProject(){ bool done; int count = 0; GetIdea(); DoResearch(); Design(); do { done = Code(); if(!done) { DoMoreResearchIfNecessary(); RedesignALittleIfNecessary(); count++; if(count >= SANITY_THRESHOLD) { if(WillingToRedesignFromScratch()) { DoMoreResearchIfNecessary(); Design(); } else { ScrapProject(); done = true; } } } }while(!done) DoNewProject();}
You will never escape the design part of development. It's all just a part of life. You come up with some new design idea, you try it out and you'll notice what was wrong with it, you redesign it and notice what was wrong with the redesign. This is something we all suffer from.
[edited by - Cybrosys on May 27, 2003 8:53:35 PM]
[edited by - Cybrosys on May 27, 2003 8:53:35 PM]
quote:Original post by Anonymous Poster
hey, that'll run out of stack space sooner or later!
Ah, you noticed the recursion I built in. When you reach the stack overflow, you die.
[edited by - BriTeg on May 27, 2003 9:03:46 PM]
Design it first and run through all possible scenarios on paper before coding. It will help about 80% of your "oops I didn''t think of this let''s start over" glitches.
Yes but sometimes you dont have enought experience to be able to design certain areas of the engine. Maybe its your first try and your design is extremely flawed and you have to start from scratch.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement