All Questions
9 questions
2
votes
1
answer
323
views
How do I properly organize JavaScript files for web development?
I am fairly new to web development and have been trying to figure out the best way to organize my JavaScript files for the front-end.
The first approach I started with was "one JavaScript file ...
0
votes
2
answers
2k
views
Store static data in public folder as json file or directly in .js file?
I'm busy working on a website – somewhat new to this – and I don't quite know where I should store static data: in the public folder as a separate json file, or within the .js file as an object.
In ...
1
vote
2
answers
786
views
Should a client / server share error codes?
I am in two minds about sharing client / server errors codes. We are writing both ends of the system, if our API was external this would not be possible, but that requirement is very unlikely.
So an ...
-2
votes
1
answer
661
views
Choosing the right architecture for my web application
I've started working on my web application and I'm stuck at the design stage. I cannot decide which web technologies would be the most suited to this project. Let me explain what I want to achieve:
1)...
-1
votes
1
answer
2k
views
Best Practices: URL Path Parameters [closed]
What's the current best practice around path parameters in URLs?
For instance
/artist/name
A long time ago I might have made artist.html and then passed in a query parameter /artist.html?name=name ...
7
votes
3
answers
1k
views
Reuse already fetched data for request
I have action that fetches user model from db to check access.
Then I have method that in some cases requires same model.
function checkAccess(req, res, next) {
var data = Data.fetch(req.params....
47
votes
6
answers
7k
views
How safe are hidden AJAX requests that fake performance?
What is a hidden AJAX request?
I've noticed an increase in the usage of hidden AJAX requests designed to make a user's action appear to happen immediately. I'll refer to this type of AJAX request as ...
5
votes
1
answer
479
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
3
answers
4k
views
Javascript, Text Annotations and Ideas
I am very curious to hear input from others on a problem I've been contemplating for some time now.
Essentially I would like to present a user with a text document and allow him/her to make ...