Need help organizing code... its a complete mess.
Members - Reputation: 122
Posted 27 June 2011 - 11:04 PM
Anyone know a good book? Generally, the examples in most of these XNA books are simple games and they put all the logic into the Game1.cs file. I'm looking for a better structure than that...
Members - Reputation: 376
Posted 28 June 2011 - 04:17 AM
My open source DirectX 10/11 graphics engine. https://sites.google.com/site/dawoodoz
"My design pattern is the simplest to understand. Everyone else is just too stupid to understand it."
Moderators - Reputation: 10552
Posted 28 June 2011 - 05:10 AM
Personally, this is something I learned by writing bigger and bigger programs, to the point where I couldn't maintain my older style so I was forced to abandon globals and really start separating things out into smaller units. Even then, it wasn't until I was working where I learned the value of unit testing, and totally minimising the dependencies so everything can be tested in isolation.
That is my excuse for not having many good resources to point you to. However, here are some excellent articles on programming design principles: