Hello all,
So last week, I discussed about MVC, and in that discussion, I mentioned that MVC is also a way to organize your code base. I am sure many of you have your own method of organizing your files, but if you do not, then this is your wake-up call.
File organization is extremely important. Without it, your files will be all over the place, and if you are attempting to track down a bug in order to fix it, it may prove to be very difficult in order to follow the chaining of the files without some kind of organization. Not only that, but many people need to have some kind of organization in order to be more efficient in what they do. If you are one of these people, then without some kind of organization structure, you will prove to not be very efficient in what you do. Also, most of you have your files somewhat organized on your computer, right? So why not on your game?
I certainly cannot say that I am perfect either because my files are not organized 100% of the time, but this is still something to heavily consider if you are an owner of a game. You want to be organized!
So, if you do not have any file organization right now, what can you do?
My first suggestion to you first is to map out your game. Sounds tedious, doesn’t it? Well it is vitally important to do so. Not only will you be able to easily trace the file chaining for bugs, but you will have a complete understanding of where all of your files link up. For those of you who purchased engines, you may also find that some of the files that you have are not even used!
After mapping out your game, your next suggestion is to figure out how you would like to organize your files. Figure out a structure that makes sense to your game in particular. MVC is not suggested if you already have your game set up, but it can work. The link to my post discussing MVC is here: http://g7470programming.com/blog/wordpress/2014/11/mafia-games-monday-mgm-what-is-mvc/. Most of the time, you should pick a organization structure that makes the most sense to you.
After picking your structure, the next step is to start organizing your files. This is pretty straight-forward, so put your files in the proper defined directory that you have decided.
The final step is to adjust your code base to reflect the organization change. If you have your mapping available from the first step, this will be rather simple to find the files and rename the include paths appropriately.
I know that this sounds like a daunting task, but file organization is very important in any kind of application or even on your home computer.
What kind of file organization do you have? If you don’t have any file organization and choose not to organize, why not?
That’s all for now, until next time…keep that tech gear ticking.
~Goliath7470
