Re:Do-nothing scripting: the key to gradual automation
by masukomi on Monday July 22, 2019 @09:30AM
(#20497792)
I dunno. it could be argued that in the "do nothing" form of the script it's silly. HOWEVER some of those steps could eventually require the encapsulation of lots of behavior and information. So, `CreateSSHKeypairStep` Could become a full-on class with lots of small methods in it that eventually get wrapped up in a `.call` method. It seems better to start with code that's prepped for the eventuality you know is coming. Setting yourself up for a good long term codebase.
[ Parent
| on HN ]
Re:Do-nothing scripting: the key to gradual automation
by CaptainMarvel on Monday July 22, 2019 @09:37AM
(#20497842)
Seems like a violation of YAGNI, and converting a function to a class is fairly effortless