DEV Community

Discussion on: OOP or Functional or Both

Collapse
 
johnkazer profile image
John Kazer • Edited

Both! For me the control logic is functional whilst representing physical graphical components is OO. I also try to use state machines (Xstate) as much as possible to represent behaviour and sequences of actions. Not sure if state machines are one or the other...