News for hackers. Stuff that matters.
Re:On over-engineering; finding the right balance by mejutoco on Wednesday September 11, 2024 @06:36AM (#41510015)
I always try to find the unspoken assumptions in these kind of articles. In this case, the need to use classes for everything, as the only hammer.

Pure functions with clearly typed inputs and outputs: you list all the available types and add when you need more supported, like data. They could be in a static class for convenience, or simply in a module.

or some finite state machine or a data-driven approach would make most of the examples much clearer.

There are no comments on this comment yet.