You're not a soothsayer, so don't try to predict the future use cases of your code! Writing functions with an interface in mind allows your code to be consumed in new and unexpected ways in the future without having to modify the source code.
The code from this video: https://gist.github.com/NWCalvank/d04...
I started a dev blog: https://nwcalvank.dev
Not much there yet, but check it out if you want. I'm in a tough spot as far as recording videos goes, but I can sneak more writing in here and there - so I'm hoping to have some good things up on the site over the coming weeks/months :)
On this page of the site you can watch the video online Programming to an Interface with a duration of hours minute second in good quality, which was uploaded by the user NWCalvank 01 July 2020, share the link with friends and acquaintances, this video has already been watched 1,842 times on youtube and it was liked by 19 viewers. Enjoy your viewing!