|
|
|
|
|
by mruniverse
3825 days ago
|
|
> "built many hundred line dense bash scripts... please do not do this" Of course. But that's with any language that's many hundred lines of dense code. His point is if something can be done simply with built-in proven tools, use them until you need something more. |
|
Most experienced programmers know a little bash and enough UNIX commands to get by. This is enough to write a script that handles the happy path, but not enough to handle all error conditions correctly. There are all sorts of tricks you need to know that are commonly skipped. (Forgetting to use -print0 for example, and that's an easy one.) The resulting script is probably okay if you run it interactively and check the output but will blow up or silently do the wrong thing for unexpected input in production. To properly review a bash script for errors you need to be an expert.
By contrast, Go programmers with a few months of experience typically know all of Go.
The older tool is not necessarily better if it has lots of obscure sharp edges that most people don't learn.