Tagged Questions
0
votes
1answer
83 views
How to handle “animated” game where the visual should “animate” instead of abruptly change?
I've been playing around and learning javascript/KineticJS by making some simple games (think like board games).
I have the game model that is relatively logically simple. When a "move" is given to ...
0
votes
1answer
186 views
What kind of JavaScript design pattern is that?
In our workplace we use simple ajax library for getting page data and submitting changes to server ,on certain occasions we do need to change the forms fields values ,now we know that fields can be of ...
21
votes
5answers
1k views
How do I convince my boss (and other devs) to use/consider Unobtrusive JavaScript
I'm pretty new in our develepors team.
I need some strong arguments and/or "pitfall" examples, so my boss will finally understand the advantages of Unobtrusive JavaScript, so that he, and the rest of ...
2
votes
1answer
134 views
Shift Javascript framework - What pattern is this? MVP, MVC or something else
I have created a very tiny framework to be able to get away from all the clutter while developing. The point of the framework is not to replace any library of choice but simply segregate the code to ...
0
votes
1answer
235 views
How to structure our Javascript so that it is easily editable, testable, and can make calls to render a view without knowing specifics about the view
I am working on a web app that displays some data and uses javascript.
Right now, we are serving up parts of our js (to display certain types of information, ie "Render a View") via our server which ...
35
votes
2answers
2k views
Are there any OO-principles that are practically applicable for Javascript?
Javascript is a prototype-based object oriented language but can become class-based in a variety of ways, either by:
Writing the functions to be used as classes by yourself
Use a nifty class system ...
2
votes
1answer
557 views
Should I implement BackBone.js into my ASP.NET WebForms applications?
Background
I'm trying to improve my group's current web app development pattern. Our current pattern is something we came up with while trying to rich web apps on top of ASP.NET WebForms (none of us ...
6
votes
1answer
151 views
Event Aggregator.. not getting a response, how to determine completion?
I'm rewriting a vehicle tracking application, a google maps based thing..
The users are able to search for a vehicle by typing a few characters of the vehicles "callsign".
My application is based ...
7
votes
4answers
770 views
JavaScript application design patterns [duplicate]
I need to write a PhoneGap application with JavaScript and I'm thinking of the code design patterns. I've read some books of JavaScript design patterns but can't really see the ...
4
votes
3answers
681 views
Ajax race conditions
Is there a pattern or standard way to handle Ajax race conditions? Take the following example. You have two tables. Clicking a row on table 1 removes the data from DB and then updates table 2 (which ...
5
votes
3answers
378 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
1answer
659 views
What is the best design pattern for asynchronous message passing in a Chrome extension?
I have a background script that is responsible for getting and setting data to a localStorage database. My content scripts must communicate with the background script to send and receive data.
Right ...
6
votes
1answer
998 views
Advanced JavaScript design patterns [closed]
I'm looking for books, online resources or suggestions about how to structure big projects or build a framework in JavaScript.
I'm not looking for books explaining how inheritance or closures work. ...
19
votes
6answers
4k views
Self-Executing Anonymous Function vs Prototype
In Javascript there are a few clearly prominent techniques for create and manage classes/namespaces in javascript.
I am curious what situations warrant using one technique vs. the other. I want to ...
5
votes
3answers
337 views
What are the disadvantages of unobtrusive script patterns in web applications?
First of all, is there a name for this as a bona-fide design pattern? Currently I've just been referring to it as "unobtrusive javascript". Here is a brief example of what I am talking about:
1.) Use ...