Maybe it’s becuase i grew up on python and bash still seems somewhat alien to me, but any time I’m crafting something with more than three or so nested functions, I use python as a wrapper for bash. Python initiates a bash script, parses the retval, inititates the next bash script from that data, etc.
I had two jetsons that i was using for a project, had one on my desk and one in another office. Started back into some gpio stuff that I’d been working on the last few days and found that i was getting nothing, after about an hour of fucking with configuration trying to determine what had happened, i realised that i had sshed into the wrong one.
Now i make sure to give descriptive hostnames to every device on my network.