It all relies on how you organize your coding. You can do it through one script, through several, through modules. There is no “proper” way to do it, but there are majorly preferred methods and others that you should generally not use in either public or private projects, with or without a team.