joelcarrier/web-slot-machine — Issue #2: separation of concerns
Author: joelcarrier
Created: 2012-02-05 16:02:07+00:00
State: open

Although an MVC framework is being used, separation of concerns has not been perfectly implemented. The controller has knowledge of html presentation details. For example, the controller is specifying the colours that should be used when rendering spin results. This is less than idea. It should be completely presentation agnostic so that it can service different views belonging to different types of clients. For example, an iPhone/iPad client might simply make application/json requests and choose to render the game differently. It may elect to render fruit instead of colors.