Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

All code in one file [closed]

After asking organising my Python project and then calling from a parent file in Python it's occurring to me that it'll be so much easier to put all my code in one file (data will be read in externally).

I've always thought that this was bad project organisation but it seems to be the easiest way to deal with the problems I'm thinking I will face. Have I simply gotten the wrong end of the stick with file count or have I not seen some great guide on large (for me) projects?

like image 701
Teifion Avatar asked Nov 28 '22 00:11

Teifion


1 Answers

If you are planning to use any kind of SCM then you are going to be screwed. Having one file is a guaranteed way to have lots of collisions and merges that will be painstaking to deal with over time.

Stick to conventions and break apart your files. If nothing more than to save the guy who will one day have to maintain your code...

like image 113
Josh Avatar answered Dec 04 '22 05:12

Josh