There's no absolute best.
It would be waste of time to write a small FS modular, but for a complex gamemode a modular design has clear advantages (organization, multiple people working on it, dynamically enabling/disabling systems if done right, etc).
But even complex gamemodes can be done in one file, if you use a good editor which gives you some tools for organization (like jump to functions, "minimizing" whole sections (sorry I forgot the correct word for this) and so on).
It really depends on what you are doing and if you get any advantage from it. If it just complicates things for you (which can definitely happen if every module interacts with each other) it's probably not worth it.
Quote:
Originally Posted by TwinkiDaBoss
All in one if you are starting off.
|
That's not really correct, if you learned to keep code clean and use a modern IDE there's absolutely nothing wrong to code a complex script in one file if it makes sense. It's just harder for someone who just started to script to write something modular. This isn't valid the other way round though.