by donatj · 3y ago · 0 comments
I mean maybe. My big thing is single responsibility.
My suspicion is if you wrote 10,000 lines of shell script that should probably be like 20+ individual scripts and you've written something with way too many responsibilities.
A script should do a single thing.
Redis is 70k lines of code and yet only "does a single thing" - runs an in-memory data store.
IMO it's much more useful to just consider which mode of code organization increases readability and maintainability. Those are things you can actually describe and examine.