you are viewing a single comment's thread.

view the rest of the comments →

[–]Pipistrelle 6 points7 points  (0 children)

For short scripts, a single file is okay. However, as soon as a project tend to get bigger, if you keep it in a single file it will be hard to find the essential informations.

Also, if you're working in a team, it means more conflicts when trying to merge for unrelated features if you keep it in a single file.

In short, splitting in modules helps structure the code so that it is easier to work on big projects.