I am a newbie so when ever i start over i get stuck how to organize things (code) or what should be the order of my work. Can you share your experience of project granularity so i can make my mind what should be done first and so on.
|
|
Here are the general steps I would go through:
The process is a little slow, but it has a number of benefits to someone in your situation:
|
|||||||
|
|
Mostly it sounds like what you need to do is read up on software engineering. The approach I use is called the spiral development model. In this model you repeatedly do the software development cycle(design, code, test, release) on an ever slightly expanding project. Lets say we were going to apply this to a 2d shooter. first spiral open a window. second spiral get player on screen and moving to user input. third spiral get enemies on screen. fourth spiral be able to shoot stuff. 5th spiral ad AI to enemy units. 6th spiral polish. |
|||||||
|
|
I recall this tutorial being quite helpful in learning to refactor and (re)structure code - while doing something fun (physics engine with opengl visualisation). I especially enjoy the way test-driven development is introduced in a fairly practically way.. |
|||
|
|
|
Make sure to know what you're doing. Have a definite plan, design document, whatever - you don't want the problem of 'done that, ooh this sounds good-I'll add this. Oh and this and maybe I'll try adding this thing I just though of'. I cannot remember if this is top down or bottom up. It's one of them. But if you're newbie, a very important point is to get stuff done. I mean:
|
|||||
|
