All Questions
7 questions
-2
votes
3
answers
76
views
Is there a secure way to ensure a data in an API endpoint of mine came from an Instagram endpoint?
Is there a way through encryption/keys/jwt or anything else to ensure that the data being sent through a POST request is only data coming from another request I made on the client to a 3rd party ...
2
votes
1
answer
2k
views
Is this the right way to handle errors using the fetch api?
I am using the fetch api in my handleSubmit function in a React component to post data like this:
handleSubmit(event) {
event.preventDefault();
var error = false;
var { username, password } = this....
0
votes
1
answer
225
views
Best practices for creating multiple HTML buttons that are used for a similar purpose
I realize this may be subjective, but I don't see any clear-cut place for asking questions on good software design principals. I'm sure there are some software patterns and anti-patterns I should be ...
2
votes
1
answer
859
views
Javascript Implementation Patterns for Server-side MVC Websites
I'm looking for information on common patterns for initializing and executing Javascript page by page in a "traditional" server-side MVC website architecture.
A few months ago, my development team ...
-1
votes
1
answer
419
views
What kind of JavaScript design pattern is this?
In our workplace we use simple ajax library for getting page data and submitting changes to the server. Sometimes we need to change the form’s field values. We know that fields can be of any type (...
6
votes
3
answers
2k
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 ...
3
votes
2
answers
714
views
Examples of MVVM adoption outside the Microsoft community?
IS MVVM getting any kind of traction outside the Microsoft community? Within Silverlight this is a non-issue, but for other technologies, like JavaScript it surely is: For instance Knockout.js is a ...