4 ms·
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 functio
by mejutoco 2y ago
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.