Original Post
Hey gamedev, I am getting really frustrated with programming, everytime I write some code it usually breaks down the road, I try to fix it but then it breaks something else. I try to plan things out but I don't know what to plan or even what I need. So I just start programming I get so lost that I start all over, then I plan out this is the only thing I need, then I forget to include something that would be very good to have but then it breaks all my other code. I am sick of rewriting every time to get a good peice of code. I mainly program in c++. So before I plan anything or start writing code I want to how you guys set up your include files, Do you have on main include file thats included in all your files. Do you just .h files or do you have a .cpp for every .h, Do you guys put the source files in a source folder, and include files in an include folder. Do you use namespaces and have seperate folders for each namespace or category of code. I want it easy to navigate through my code, but not so complicated I have to go through 10 folders just to find a file. The next thing I would want to do is see all the useful classes I would need to cut back on rewriting everything a million times. Obviously it would be a class that creates a window or something. But I don't want to get too far from just planning. Post what you guys think and maybe we could post a window class. thanks