(February 1, 2018 at 5:15 pm)bennyboy Wrote: The number of lines shouldn't really matter unless it's spaghetti code. Every main section of code has its job, every function has its job, every line has its job.
Yup... with server side languages, at least, each class is its own file, usually somewhere in a directory hierarchy that makes sense. Like, the project I'm working on is:
Code:
/
/app
/config
/bunch of config files, in YAML
/src
/controller
/my controller files (PHP)
/entity
/my entity (database classes) files (PHP)
/resources
/views
/my templates (Twig)
/web (the web root)
/js
/JavaScript files
/css
/CSS files
/images
/images
/app.php <-- the front controller of the application
/vendor
/all of the 3rd party packages I use
Like the old saying goes, a place for everything, and everything in its place.