7
votes
1answer
109 views

Restructuring a large Chrome Extension/WebApp

I have a very complex Chrome Extension that has gotten too large to maintain in its current format. I'd like to restructure it, but I'm 15 and this is the first webapp or extension of it's type I've ...
0
votes
1answer
92 views

Javascript based application controller in Javascript-less environments

I just got done watching an informative Box tech talk by Nicholas Zakas on a javascript architecture for web development: https://www.youtube.com/watch?v=mKouqShWI4o&feature=youtu.be This image, ...
1
vote
0answers
105 views

Should I use SignalR to synchronize & cache CRUD data to a mobile app?

I'm considering using SignalR to send data to a mobile app, but need to have a way to synchronize data while it's closed or pending updates. Is it a good idea to use Backbone.js <--> SignalR to ...
3
votes
1answer
124 views

Architecture for a template-building, WYSIWIG application

I'm building a WYSIWYG designer in Ember.js. The designer will allow users to create campaigns - think MailChimp. To build a campaign, users will choose an existing template. The template will have a ...
4
votes
1answer
211 views

Designing storage service data structure for decoupled models sharing same data

Surely most of you remember the Norton Commander application where similar (sometimes the same) data is displayed in separate decoupled views. I'm building a web application that follows the same ...
0
votes
1answer
219 views

HTML markup vs programmatic JS

I've been thinking about the consequences of using programmatic JavaScript components versus HTML markup. For example I looked into the Enyo Framework, which has its power in composition. One can ...
2
votes
4answers
616 views

Call the database every time, or create an object in memory, and if so, how and how often to update?

I'm creating an app in javascript/nodejs and using neo4j as database. Let's say I have an entity User in my database. It has a bunch of properties, like boxes_collected and places_visited, which keep ...
2
votes
1answer
167 views

Structuring asynchronous javascript code

I am working on an application that heavily depends on asynchronous data operations. I am dealing with those through promises. However, while my code works, I have the feel that it is getting chaotic ...
1
vote
1answer
190 views

Recommended architecture for an interactive table widget with multiple behaviors in Javascript / jQuery

Use case: For an administration UI, I want an interactive table widget with a number of behaviors: Collapse / expand (yes, this means the rows are a hierarchy) Update of data in a child cell based ...
1
vote
1answer
158 views

What is the best implementation strategy for this html + javascript widget?

The Problem I came up with this select-box variant in answer to a question on UX.SE: http://ux.stackexchange.com/a/48951/16187 However, working out how to implement it has been driving me mad ever ...
3
votes
1answer
314 views

How do I cleanly design a central render/animation loop?

I'm learning some graphics programming, and am in the midst of my first such project of any substance. But, I am really struggling at the moment with how to architect it cleanly. Let me explain. To ...
1
vote
2answers
190 views

What parts of functionality should be refactored into a directive?

I am creating an application from legacy code using AngularJS. I wonder what parts of my code should be moved into a directive. For example, iI had thought of moving a table which is used multiple ...
1
vote
3answers
399 views

Monitoring App: Client side or Server Side?

I have a monitoring web application which has a .Net Backend and a Silverlight frontend. The application crunchs big chunks of data, process them and presentates to user. Then user can interact with ...
1
vote
1answer
96 views

HTML Canvas: Should my app x, y values be global?

I have a large file of functions. Each of these functions is responsible for drawing a particular part of the application. My app has x and y parameters that I use in the setup function to move the ...
4
votes
3answers
246 views

How should modules access data outside their scope? [closed]

I run into this same problem quite often. First, I create a namespace and then add modules to this namespace. Then issue I always run into is how best to initialize the application? Naturally, each ...
4
votes
1answer
563 views

How should I architect a personal schedule manager that runs 24/7? [closed]

I've developed an ADHD management system for myself that's attempting to change multiple habits at once. I know this is counter to conventional wisdom, but I've tried the conventional for years & ...
6
votes
4answers
702 views

Building a web application that is almost completely rendered by Javascript, while back end only delivers Json. Do or don't?

As a programmer, and taking into account the overall "funness" of the process, I'm tempted to start a project in Sinatra where the back end's sole concern is the logic, and returning a Json API, and ...
5
votes
2answers
394 views

Please explain object versioning in the nodejs module system

This question is about the persistance of variables across different modules in nodejs when they don't directly "require" each other, but do "require" a common ancestor. It is also the generalised ...
5
votes
2answers
481 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 ...
3
votes
1answer
189 views

Idiomatic Javascript code architecture

I am writing a node.js application which I am breaking down into modules, the issue is I am not sure how to organise my code in an idiomatic Javascript way. Currently each of my modules exposes a set ...
3
votes
3answers
229 views

Bothering to cater to non-JavaScript clients? [duplicate]

Considering that it's April, 2013; do I still need to worry about non-JavaScript capable/enabled clients? Note: This question excludes having helper text with: JavaScript is required to view this ...
38
votes
11answers
3k views

Is there any reason not to go directly from client-side Javascript to a database? [duplicate]

Possible Duplicate: Writing Web “server less” applications So, let's say I'm going to build a Stack Exchange clone and I decide to use something like CouchDB as my backend store. If I use ...
7
votes
4answers
4k views

Why make the login page to a single page application a separate page?

I am wondering why it seems to be popular to have the login page of a SPA be a separate page that is not page of the SPA (as in loaded and send data through ajax requests)? I only thing I can think ...
4
votes
2answers
519 views

Should I be using a JavaScript SPA designed when security is important

I asked something kind of similar on stackoverflow with a particular piece of code however I want to try to ask this in a broader sense. So I have this web application that I have started to write in ...
7
votes
2answers
5k views

Backbone/JQuery, ExtJs 4… is there something else worth looking?

Im currently evaluating a front-end architecture for a big app that will be developed by a team of about 6 developers + 1 web designer so that said, having a robust SVN friendly architecture is a ...
4
votes
3answers
275 views

How would you represent an object that can be of multiple types, when storing it as a document in MongoDB?

Somewhat related to this question, say that I have an object category which, depending on which type of object I have, has different restrictions on what it contains. (if you can reword the previous ...
3
votes
5answers
320 views

How would you architect an application which is largely a collection of flowcharts?

I am working with a history teacher on a history app. He has like 200 flowcharts that he wants to put into the app (among other things). The two likeliest-looking ways to do it: HTML/CSS. The big ...
3
votes
2answers
480 views

What is the best technology for a TRULY portable REST client

I develop a suite of productivity tools, for Mac, iOS and Windows. They all communicate with a sync server via a RESTful interface (using Protocol Buffers), but as we add new platforms, we realize the ...
3
votes
1answer
885 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
1answer
653 views

Writing a game engine using javascript

..by this I mean a logic handler for a chess game. Basically validating a move and checking if somebody has won. Now ignore the complexity of the game(if you can..) I'd like some sort of psuedo code ...
4
votes
1answer
354 views

Does anyone have suggestions for design or open source libraries specifically for a single page AJAX application? [closed]

I'm working on a major new version of a browser based application and I'm looking for comments/suggestions about the architecture/design. It's a single page application using AJAX and client side ...
7
votes
2answers
907 views

Moving all UI logic to Client Side?

Our team originally consisted of mostly server side developers with minimum expertise in Javascript. In ASP.NET we used to write a lot of UI logic in code-behind or more recently through controllers ...