3 ms·
Neat take on it. Finite state machines tend to be very robust since the designer has to lay out all the state transitions beforehand. Everything else is all com
by chillacy 10y ago
Neat take on it. Finite state machines tend to be very robust since the designer has to lay out all the state transitions beforehand. Everything else is all combinational logic. Bad OO tends to have state spread out everywhere, but even good OO usually won't be so strict about state.
- sjclemmy 10y agoYeah - I think FP forces you to think about state and state transition while OO forces you to think about your abstraction and modelling. So if you do OO without consideration of what's going to happen next - the compilation and what the computer is actually doing, i.e. moving from state to state, then it's easier to make bad design decisions.