Tagged Questions
2
votes
1answer
174 views
Javascript Architectural Model
Are there any obvious flaws to this OO architectural model which I intend to implement using javascript? It is similar to the MVP model but instead the role of the model is broken down into three ...
1
vote
2answers
131 views
Where's the separation between Presentation and Logic in Javascript MVC frameworks?
I had learned that following piece of code is bad because it is obstrusive javascript and mixes presentation with logic:
<a href="" onclick="archive()">archive</a>
The best practice was ...
5
votes
1answer
160 views
Architectural questions regarding, MV** frameworks, NoSQL data models, and gradual refactoring
I have a web app I would like to gradually refactor by adding structure to it.
I have narrowed down the options to Backbone (with some plugins), Ember.js and AngularJS
My goal is to refactor that ...
0
votes
2answers
189 views
What is this variation of MVC in JavaScript?
I am working on sorting out my Javascript code. Currently I have views implemented without any Model or collection. Now I working on separating Model from View. So for this transformation, I am ...
5
votes
3answers
383 views
Design Patterns for Coordinating Change Event Listeners
I've been working with the Observer pattern in JavaScript using various popular libraries for a number of years (YUI & jQuery). It's often that I need to observe a set of property value changes ...
1
vote
2answers
349 views
Javascript MVC in principle
Suppose I want to implement MVC in JavaScript. I am not asking about MVC frameworks. I am asking how to build it in principle.
Let's consider a search page of an e-commerce site, which works s ...
2
votes
1answer
91 views
How to verify the client's view is consistent with the remote model?
i'm designing a client-server system via web broswser and i have this problem:
I send the data to the client via JSON, then the javascript view shows the stuff. Then the user takes actions and ...
7
votes
1answer
390 views
Defining classes in JavaScript that exist in your back-end
Doesn't it seem relatively duplicative to define your Models in your backend code AND on your front end for a rich internet application?
I'm porting a GUI application I had written to have a web ...
3
votes
1answer
560 views
Are JavaScript MVC Frameworks only for 'single-page' apps?
I've been looking into several of the JavaScript MVC Frameworks (Backbone.js, Spine, SproutCore,etc.) and it seems to me that all of these are designed to act as 'single-page' applications. All of the ...
1
vote
2answers
326 views
Storing page-specific javascript on an AJAX driven site?
I have a general question about the placement of javascript code in a AJAX-driven web application. At a previous job, we tended to throw everything in one monolithic file. When maintaining that file ...
10
votes
1answer
624 views
Patterns for ajax-heavy web applications
Up until now, I've been a great fan of the MVC pattern for developing web applications. For the web, I've developed mostly in PHP (with the Kohana and CodeIgniter frameworks) and Ruby (RoR).
As my ...