scratch/content/html/en/blog/mvc/mvc1.md
2010-03-12 13:49:27 +01:00

34 lines
647 B
Markdown

-----
# Custom
kind: article
menupriority: 1
title: MVC explained
multiTitle:
fr: design naïf
en: Naive design
-----
## The naive design ##
Suppose you want to make a simple todo list application.
In your mind you draw a simple scheme:
<pre>
[ ] task 1 X
[ ] task 2 X
[ ] task 3 X
</pre>
If you click on the box, then it should show the task is done.
If you click on the cross, then it should delete the task from
the list.
You then think:
> "Whoa! That's easy!"
You want to be able to use it as fast as possible
and you also want to complexify this model later.
For example, adding dates, contexts and projects...