1. Get the Idea.
2. Plan some basic structures i will need ( Afterall it all starts how you organize your data ) - for this i often use notes ( paper, notepad whatever ).
3. i start writing pseudo code like:
Code: Select all
; Functions
; -> InitMyApp() - Initializes blahfoo
; -> MyApp_LoadThisAndthat() - Load Attributes from Prefs File...
; -> MyApp_ProcessThisandDoThat()
; -> MyAppCheckThis()
; -> Mainloop()
; -> MyAppCheckThis()
; etc...
Well, that show i do it.. Sure, takes some time into planning but afterall you basically can code away without big try and error and think-over-recode-and-shit-where-did-i-use-what-variable-again...
As last: use Structures to keep stuff organized, pass pointers and use variables liek a, b, c ,i , x .. for loops and such. Plus writing some meaningful Varnames that you can sort out where you used them helps alot to keep the code clean and avoid odd bugs.
Cheers, Thalius