mardi 14 octobre 2014

Organizing The Script - Optimal Solution?

Hi.



I have a problem when it comes to writing big scripts. It always gets to that point when the code becomes too big to easily overlook and edit. I've tried to organize my scripts into smaller sections, but it's hard to decide what i should put in it's own section and what not to. Often if i make too many small sections i run into compiling problems.



Here's an example:



Either i put all the database reading/writing code in its own file (which can be alot of code to overlook), and clothing script in another. Or maybe i should put the database reading / writing relevant to the clothing script in its own file, which means i have to read the database atleast twice, right?



The reason i make this thread is because i want a solution that works nice, and looks nice. Are you people satisfied with how you solve this problem, then please tell me how you solve it.




Aucun commentaire:

Enregistrer un commentaire