<span class="Apple-style-span" style="font-family: Times; font-size: medium; "><b>Zenaan Harkness</b> wrote on <i>Tue Oct 20 19:42:14 PDT 2009:</i></span><div><font class="Apple-style-span" face="Times"><span class="Apple-style-span" style="font-size: medium;"><i><span class="Apple-style-span" style="font-style: normal; "><pre>
> For the cleanest view 'code' (ST templates), data is 'cleaned up'
> not in the view, but in the model.
>
> MVC recursion says that to the extent this 'data cleaning' is a view
> specific thing unrelated to the system's data-model, that a view-model
> is created for just this purpose (distinct from the data-model (which
> business logic uses/ requires) and from view-view (ie ST)).
</pre><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;">Ack.</span></font></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"><br>
</span></font></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;">If I understand you properly, the recursive nature of MVC allows for each MVC component</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;">to be subdivided into MVC as well? So for example, the View can also be broken down</span></font></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;">into three MVC subcomponents, V-Model + V-View + V-Controller.</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;">In ST's case, the V-View could be the functional language ST (very functional, very pure),</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;">leaving room for a V-Model and V-Controller as helpers to the V-View.</span></font></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;">For instance, a V-Model could clean and convert data from input for the ST V-View,</span></font></div>
<div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;">and perhaps a V-Controller could handle trivia data tweaking, tagging, and tracking.</span></font></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"><br>
</span></font></div><div><span class="Apple-style-span" style="font-family: monospace; white-space: pre; ">Cool.</span></div><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre;"><br>
</span></font></div></span></i></span></font></div>