News for hackers. Stuff that matters.
Re:Do-nothing scripting: the key to gradual automation (2019) by Too on Wednesday November 03, 2021 @02:16AM (#29091583)
Local variables inside a function are very much encapsulated.

Unless you need to keep state between two distinct actions on the same object, but in that case a single run() entry point will not be sufficient anyway.

Inheritance can be replaced by just calling a common function.

There are many “what if” here, which will likely never happen and until they do it’s premature abstraction. Most likely some other abstraction is needed by the time script grows.

There are no comments on this comment yet.