Application state

A web service only needs to care about your application state when you’re actually making a request. The rest of the time, it doesn’t even know you exist. This means that whenever a client makes a request, it must include all the application states the server will need…

What defines a SPA

What really defines an SPA is that the routing is handled by the client-side application using JavaScript, instead of the server. Source.…

Context object vs. function calls

function foo() { console.log(this.a); } var obj = { a: 2, foo: foo }; obj.foo(); Regardless of whether foo() is initially declared on obj, or is added as a reference later (as this snippet shows), in neither case is the function really "owned" or "contained" by the obj object. However... the…