by pestaa · 14y ago · 0 comments
Out of the three terminologies (state, representation, flow), the third one is arguably the most tangled. I find it healthy to refactor it into reusable chunks (operations) and event-driven flow management.
The problem was, in my opinion, that operations should have not been put into controller units. It attracted more copy-paste solutions in my experience.
The original MVC designs and sample code all had views and controllers observing models through an Observer based event pattern.
The operations were the controller units. The events were not.