444 karma · joined March 15, 2015
An SPA framework generally executes on the frontend in the users browser as Javascript. There may be build tools like webpack and browserify and babel, or one may y a simple spa.min.js file to include. Polyfills may be needed, even for such simple things as Object.values, as Javascript support varies across browsers and version.
The 2 backend frameworks you mentioned allow for front-end templating, which you really SHOULD use in lieul of the SPA-centric solution of "server-side-rendering" which basically takes advantage of Node.js running Javascript by hacking a client-side JS "template" to be processed by Node.js, which, unless your backend is ALSO Node.js based, requires an additional process and a totally different set of server tools than either Rails or Django.
There are a whole crop of app designs that basically use whatever backend with whatever SPA front-end in a more minimalist cohesive fashion. The basic idea is this:
1) server-template-rendered pages (NOT an SPA blob) that already have data affixed in them delivered as a response to a request on a given route path
2) judicious usage of Javascript on the front end only where needed, usually following the pattern of
A) the template assigns templated data to a Javascript object B) a Javascript virtual dom is created and mounted based upon the data in A C) normal XHRs or wss are used to send/get data from the server, with the response callback in an XHR setting the returned data into the Javascript object again, causing the Javascript virtual dom to redraw, as the data has changed.
Best of both worlds...
the main takeaway is to avoid making people wait for an SPA blob to download and then load it's data if the person is actually just interested in checking the contact info page, etc. SPAs serve a specific purpose, as a kind of interactive brochure that one is prepared to wait for initially, but later should move around quickly amongst it's various pages. I would go so far as to say that an SPA only really works best when the concept of "pages" is thrown away.
Cool Edit Pro (win-only audio editor with some interesting effects and processes.)
2) Devote your time to following your dream and doing what you enjoy doing. is there seriously nothing you always wanted to do but never thought it would be a reasonably paid career? Music? Film? Inventions? A programming side-project?
I love one contributers assessment near the end of the article that it's "going to take awhile" to "transition"
"transition" = not doing something about the problem.
What part of "we have 10 years more or less to reduce our carbon emissions drastically to XYZ level or face tipping a very delicate chain reaction irrevocably on the side of disaster" is difficult to understand?
Incrementalism won't cut it. We need a renewably sustainably produced electrical energy system with on-site hydrogen generation for what still must combust (likely, chainsaws and such, depending upon motor designs etc...) or as a storage means. Hydrogen is the only substance that, when combined with oxygen rapidly aka "burned" produces water. Methane produces water AND CO2, a greenhouse gas.
Grow up.
Arms dealers rip off the nations populations whose governments they sell arms to.
But of course, how many UK and American citizens know the history of Iran, our role in overthrowing the democratically elected Mossadegh, who rightfully wanted to nationalize their oil (the obvious source of the Occidents umbrage too...) and our installation of the repressive Shah Pahlavi regime that led to the Iranian revolution of 1979 that initially featured students and workers and such, but later turned into a purge, as most revolutions do, in which the powerful theocrats basically seized the nation, and thus bringing us into the modern era and the detente with Iran that still makes no sense.
Contrast this with the constant support of the various Hashemite kings directly since Trans-Jordan and Syria-Palestina were handed over... basically we set up satrapies in the wake of seizing the Ottoman empire and not being able to manage it ourselves...
Now let's get UK, France, Spain, and the others still selling arms to the Saudis and UAE to ALSO stop.
See:
1) I, myself, my spawn, any reasonable proxy for me. a human?
2) Wish, desire, seek, want.
3) to live, life. continuance. reproduction, etc.
See, we are currently trashing the entire ball we live on:
1) too many of us. We did a good job at the whole "Go forth and multiply" thing. (talk about an incoherent philosophy: how about "the underpinnings of our civilization" for 2 points.)
resulting in:
A) loss of biodiversity. We killed the other animals
B) a HUGE footprint (land area) required for making our STUFF
C) hubris. we think OUR STUFF and OUR ECONOMY (read: make-believe silly nonsense we pretend is real) is more important than LIFE itself! The hacker news crowd is extremely guilty of this, as many people live in a simulated screen reality so much that they forgot about the wetware underpinnings of LIFE. your life.
2)We have no sense of collective responsibility, no sense of collective existence at all. It's not the squirrels fault that you can't understand why sustaining life on earth might be a worthy goal.
Collectively speaking, humanity is a dud. We didn't manage to organize anything with regards to our collective selves. We just ignorantly pursue selfish aims because some 18th century English "economist" (phlebotomist?) told us about "invisible hands"...
Maybe you should devote your vast brainpower to explaining the coherence involved in justifying industry and human "civilization" thus far?
Bring the right wingers and life-haters with you too please...
this is the most ignorant thing I've ever seen written on the internet. Get back to me once you have 1/10000000th the bio-diversity of earth on your habitable satellite.
1) change our paradigms, economic system, and other social factors. I can assure you that this is far more maleable than Martian soil composition...
our social structures evolved in the context of low population densities and plentiful resources.
our economic system is what needs to give, it doesn't even function for humans, let alone the planet and the rest of life we share it with...
need I remind you that 1) we are only ONE species, and haven't the RIGHT to destroy our shared home, nor the other species. Some of us humans are upset about this, and we WILL take you other humans on over this issue!
2) our planet is STILL the only known place with LIFE in the entire universe. This is likely to change, at some point, but not if you get us all killed first.
3) our social systems are flexible, arbitrary, dare I say "PRETEND"... change em.
"It's noticeable which people only show up to defend far right speech on the internet."
If I were NYU, I would simply never book Milo Whatever-his-name-is. Having to deplatform him indicates that someone wanted to platform him in the first place. Kick his useless ass to the curb/kerb, as the case may be.
specifics depend upon the language and framework used on the server, etc...
2) logout = request to server, server sets cookie with "token=empty;expires:1970yaddayadda" as it's httpOnly there's no client-side messing baout with the cookie otherwise
3)_all pages send cookie with each request, so must be tls
upon logout, cookie has empty token, must be re-set with new token. old token, if stolen, can be compared with logged history, etc.
what do you see, in terms of flaws?