3 ms·
Would you mind sharing a little example of what you mean by non-OOP Ruby code with state machines?
by Toutouxc 4y ago
Would you mind sharing a little example of what you mean by non-OOP Ruby code with state machines?
- fortysixdegrees 4y agoSure. I am working on the firmware for a camera. Believe it or not it's a bunch of ruby services coordinated via redis pubsub. But at the core is the main system state which is a service in itself which is the main state machine. This pattern is something which I've evolved over the years and it's fantastic (if I do say so myself).