2 ms·
> For some people a one-hundred-line shell script is too long. For others, that’s a regular day. But most people would probably agree that a 10,000 line shell s
by donatj 4y ago
> For some people a one-hundred-line shell script is too long. For others, that’s a regular day. But most people would probably agree that a 10,000 line shell script should probably have been written in a more robust programming language. So why the contention?
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.
- notshift 4y ago"Do a single thing" is a meaningless qualifier. 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.