The Controller

You're in Control

If you're feeling a little worn out, the good news is that this is our last section in the MVC framework and probably the simplest in the case of Enable Quiz. The Controller is the brains of the application. I guess you'd have to say it's the part of the brain that does the thinking since the brain remembers things, too, and that's the Model's job. The Controller deals with the application's underlying logic or, to use some computer science lingo, algorithms. Obviously, a typical application will implement many algorithms and most of them you can leave entirely up to the software developers. However, there are many more places than you might assume where it's important to give your input on how things should work. Also, when you're troubleshooting an issue or evaluating a useability question, it's useful to have a notion about the Controllers so you can ask the right questions or collect the right specifics for a diagnosis. As such, this section will cover some example controllers for Enable Quiz. Hopefully, this section will give you a sense of how to describe and understand your key Controllers.

The Controller at Enable Quiz

Before we go through the first example Controller for Enable Quiz, we should question and refine a few key assumptions. These are the kind of questions good engineers will ask you as they flesh out your user stories. Recall that when customer administrators create a quiz, they have the option to pull questions from a number ...

Get Starting a Tech Business: A Practical Guide for Anyone Creating or Designing Applications or Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.