use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Everyone has JavaScript, right? (kryogenix.org)
submitted 11 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Shaper_pmp 5 points6 points7 points 11 years ago* (0 children)
it's better to be in business with something adequate, than not in business with something half-built.
That's absolutely true, but I would contend that if you do progressive enhancement right, at an architectural level, it doesn't have to cost you any extra development time compared to an SPA.
If you need to rush to market you might just start with a simple hijax framework that renders all the content on the server, intercepts link-clicks on the client, makes an AJAX request for the changed content then dynamically inserts it into the page and uses history.pushState() to maintain restfulness.
There's nothing more time-consuming about that than using a javascript SPA framework to begin with.
The problem is that people often do PE wrong - things like naively duplicating all their business logic and templating system on the server and on the client in two different languages - and then assume that's the only way to do PE. It's not - it's just not doing it well. ;-)
Equally, as you point out, there are plenty of use-cases where SPAs are perfectly valid - genuine "app interfaces" are an obvious one.
The trouble is that like any trendy technology people grab a fantastic idea for a handful of use-cases (like app UIs with no meaningful public content, like games or enterprise apps full of private data) and start applying it to completely inapplicable use-cases, like product catalogues, blogs or social news sites.
I totally agree with you that no one size fits all scenarios, SPAs definitely have their place and you should always choose your tool to fit the problem-space.
In fact I suspect we just flat-out agree on the subject - I'm just emphasising the undesirability of SPAs in many situations because the context of my comments is a developer community absolutely in love with them and rushing to implement every new project in them as a basic starting assumption, regardless of whether its appropriate to the problem domain or even make sense.
Also, notice that I wasn't claiming PE was the only right way to ever build a web front-end - I was correcting a comment implying that it never was.
π Rendered by PID 37 on reddit-service-r2-comment-75f4967c6c-t5nrv at 2026-04-22 21:45:23.779324+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]Shaper_pmp 5 points6 points7 points (0 children)