Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Utilizing a client-side MVC framework can be useful for code organization when dealing with very large, Ajax-reliant applications. Consider a client-side Model layer that consistently talks to one or more services provided by individual applications in a Service-Oriented Architecture. The individual service providers may implement their services with an MVC or not, but there's an advantage in having client-side Models to consume that data.</p> <p>Keep in mind, too, that Javascript frameworks - whether jQuery, Mootools, Node.js - are going to implement an event-driven control workflow, where a single event can trigger callbacks that cascade into other callbacks. Typically on the server-side, at least where the HTTP request-response cycle is concerned, we want to create discrete, atomic tasks that generate a quick and redictable response and may trigger or enqueue some other asynchronous event on the server, because the response is blockking the user from making another request and continuing his workflow. Not so for client-side Javascript.</p> <p>Adding a full client-side MVC to the stack when you're already utilizing a MVC framework server-side can be overkill and may lead to a duplication of effort. It can be done correctly. Specialize your server-side code into access control and CRUD operations, returning JSON instead of HTML views. Specialize your client-side code into view processing and event handling using light-weight models expecting a JSON data store with conventional, ReST-ful routing. Use them for what they're both good for to get the most mileage.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload