Originally Posted by ******
- By code type: With this method you put variables in one file, defines in another, hooks in another, dialogs in another, etc... This is completely useless split as it means the code to do one thing is still split between multiple files. You also loose any benefits of separation you could get by using static functions and variables.
- By feature: With this method you have your streamer in one file (hooks, variables, API etc), your vehicles in another, your police job in another, your admin system in another, etc... This is called "separation of concerns" and is programming basics!
|