Archived

This topic is now archived and is closed to further replies.

Metus

help me from going insane

Recommended Posts

Metus    168
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....

Share this post


Link to post
Share on other sites
BriTeg    168

  
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();
}

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
hey, that''ll run out of stack space sooner or later!

Share this post


Link to post
Share on other sites
Cybrosys    186
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]

Share this post


Link to post
Share on other sites
BriTeg    168
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]

Share this post


Link to post
Share on other sites
Cybrosys    186
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.

Share this post


Link to post
Share on other sites