And if you propose a separable set of functionality that you can mix as you like, you'll get shut down on the base that it's not viable (doesn't matter if you had written it already), it's too complex to understand (doesn't matter that everybody keeps doing everything wrong because nobody can understand the current one) and YAGNI (doesn't matter that keeping the current one running takes most of the time from everybody).
You see, that's why you divide all the smaller distinct batches of logic into their own functions and then give the wrapper function a name like blahBlahOrchestrator or blahBlahManager waves hands mysteriously
I wrote a bunch of if statements to work out how to handle various types of errors, and called it ErrorClassifier. Can I add "AI engineer" to my resume now?
When writing a small, throwaway project, I stick with theIP, theDir, theVar, etc. More fun that way. This is with shell scripts, btw. I’m sure compiled code would be far more of a mess far quicker doing this.