I'm a web developer who has been in the market for a new job for a while now. As someone who has never enjoyed working with frontend JS frameworks (yes, I sucked it up and learned them and have worked with them professionally) I'm wondering who all the companies are who have embraced the semi-recent "HTML over the wire" movement (Can you imagine... using hyper text transfer protocol for transferring hyper text? Seems nuts, I know). It's a massive slog shifting through endless React/Vue/etc-focused jobs out there. Even if you use React in small areas where it pulls its weight but generally try and stick to simplicity of sending plain ol' HTML, I'd love to know who you are. Even if you aren't hiring, it's nice knowing you're out there fighting the good fight :)
[+] [-] JonathanBeuys|3 years ago|reply
Just sending full pages, server side rendered, like Hacker News and Wikipedia do is fine:
Going from the HN homepage to this topic we are on:
Going from the Wikipedia Homepage to an article: Going from the AirBnB homepage to an apartment listing: Going from the Reddit homepage to a Reddit thread: In comparison to AirBnB and Reddit, HN and Wikipedia feel blazingly fast. And I am sure the developer experience is an order of magnitude nicer as well.[+] [-] tshaddox|3 years ago|reply
[+] [-] phiy|3 years ago|reply
Both AirBnB and Reddit are incentived to collect a massive amount of data on their users and to maximize the experience in any way possible. They need the data to understand user behavior and feed it back into the recommendation algorithms. For both hospitality and social media, users look for images/video content since it is much more powerful than text for most people. All of their competitors have equally bad performance for similar reasons, so they don't lose a competitive edge.
Hacker news specifically goes for a retro look with an interface that has not changed significantly in decades. Wikipedia simply doesn't have the money or engineering capacity to support a more robust platform like airbnb or reddit.
[+] [-] _Donny|3 years ago|reply
For instance, on GCP, I:
It might sound like a lot, but each click easily takes 5-10 seconds, which is an excruciatingly long time if you spend a lot of day on that site -- and yes, it takes just as long doing it sequentially. Furthermore, I usually use fairly capable machines, so performance should not be an issue IMHO.It does not happen on all sites, and I know GCP is a very complex site, but it happens often enough that it has become a habbit to me.
I love sites like Wikipedia or HN where everything is snappy.
[+] [-] basch|3 years ago|reply
https://en.wikipedia.org/wiki/Ajax_(programming)
[+] [-] jonatron|3 years ago|reply
[+] [-] basicallybones|3 years ago|reply
Comparing Reddit and Wikipedia is like comparing a motorcycle to a bicycle. They are different, with specific strengths and weaknesses. Both design/engineering paradigms have a place, imo.
[+] [-] keizo|3 years ago|reply
https://grugnotes.com
I can load 3 years of notes on a single page 100kb.
[+] [-] nicbou|3 years ago|reply
I spend a lot of time in trains, hotels and airports, and I carry a 2017 12" MacBook. It strongly influences how I build websites. It's infuriating to wait for pure content to load because it's tied to a bunch of crap that isn't what you want to read.
In that context, developer docs are often the best kind of websites.
[+] [-] bradgessler|3 years ago|reply
[+] [-] danielrhodes|3 years ago|reply
Should you use X? Maybe it depends. I have been burned by using SSR when the complexity of the app increased and suddenly doing SSR was getting in the way and now I was uncomfortably mixing JS with server rendered pages and struggling to maintain state. I've also been on the other side, using React and creating more complexity than was needed.
The point is: don't be dogmatic. Get requirements, extrapolate what could happen in the future, use first principles, weigh decisions against team capabilities, ask yourself if your decisions are for your own personal reasons or have significant positive user/business impact.
Engineers who rush to use one technology over the other without doing their homework are just doing bad engineering. It has nothing to do with "fighting the good fight".
[+] [-] jacobsenscott|3 years ago|reply
Product designers are notoriously bad at working within the constraints of a stack - so when you choose SSR with hotwire or whatever, you definitely need to push back when a product designer hands you a mock up of something that can't be done easily with SSR. Don't create some mess of SSR and JS. Tell the designer to go back and redesign the experience so it meets the constraints of the stack.
So when I hear "the complexity of the app increased" I'm hearing "the designer invented something that doesn't work with our stack" and rather than saying no, the devs just tried to forge ahead with the wrong tools. (Obviously I'm projecting experiences I've had :))
[+] [-] sodapopcan|3 years ago|reply
[+] [-] ivan_gammel|3 years ago|reply
[+] [-] pphysch|3 years ago|reply
Some random tips:
- Write a "Django context processor" to inspect requests for "Hx-Request" header, and set a "base_template" variable accordingly. This means that any template that {% extends base_template %} will react to being a full page or just a fragment and you don't even have to think about that in your view logic. Great for progressive enhancement.
- You can get reactive JS elements (for example, a d3.js viz that updates when new data comes in) in a few lines of inline JS by using MutationObserver, and "abusing" HTMX by using views that return JSON targeting a <script> element (`json_script` templatetag can also be used here). In summary, you tell your fancy JS element to render or update whenever a particular <script> element is mutated, and all of it is orchestrated by HTMX.
[+] [-] noveltyaccount|3 years ago|reply
[+] [-] gpvos|3 years ago|reply
[+] [-] matwood|3 years ago|reply
[+] [-] lukaszkorecki|3 years ago|reply
[+] [-] 88913527|3 years ago|reply
[+] [-] snorkel|3 years ago|reply
[+] [-] tanepiper|3 years ago|reply
The script injected jQuery, then we replaced the page with HTML fragments. We had an Adobe Air installer, a Flash game and even had an RSS feed.
Funnily enough today we're mostly working towards using ESI - which reminds me of mod_include back in the day.
[+] [-] nickswan|3 years ago|reply
[+] [-] tracker1|3 years ago|reply
[+] [-] antoniuschan99|3 years ago|reply
Gmail is one of the first to have adopted this paradigm.
[+] [-] ravagat|3 years ago|reply
[+] [-] wvenable|3 years ago|reply
[+] [-] ryloric|3 years ago|reply
[+] [-] jerjerjer|3 years ago|reply
[+] [-] jay-barronville|3 years ago|reply
Over the past 10-ish years alone, I’ve watched web development go through so many phases, it’s not even funny. Anyone remember gulp.js? Well, I remember a time when every conference talk mentioned it and you were weird if you didn’t use it. Backbone.js anyone?
In my experience, I’ve found that most folks can’t even tell you WHY they use React or insert JavaScript framework here.
Not too long ago, I was stepping through some “hello world” code for a trendy framework and the amount of code that was touched just to write “hello world” in the browser felt absolutely ridiculous to me.
Let me stop myself before I go on a prolonged rant . . .
Anyway, all that said, this is why I’m a fan of SvelteKit (Svelte) and Remix (React). I think they provide a decent balance of modern features while building on native web features/protocols properly.
[+] [-] thrownaway561|3 years ago|reply
https://htmx.org/
Here is the talk: https://htmx.org/essays/a-real-world-react-to-htmx-port/
[+] [-] rigoleto|3 years ago|reply
[+] [-] MrPatan|3 years ago|reply
Except, guess where the mind of the user is? On the other side of the browser. Embrace the browser, server people, it's closer to the user!
[+] [-] gwbas1c|3 years ago|reply
I don't know if this counts as "HTML over the wire" because server-side Blazor contains some magic to make the page kinda-sorta act like AJAX. It's a little laggy, but for our purposes, it's "good enough."
(The customer-facing pages are going to be SPAs, for very good reasons.)
https://optirtc.com/company/careers/
[+] [-] bunnyswipe_com|3 years ago|reply
[+] [-] intrasight|3 years ago|reply
[+] [-] someweirdperson|3 years ago|reply
There might be something that's good enough through css, not sure.
[+] [-] lordpankake|3 years ago|reply
Could be worth releasing on its own as a GitHub project!
[0] https://intenso.app
[+] [-] degun|3 years ago|reply
[+] [-] thrownaway561|3 years ago|reply
[+] [-] lolinder|3 years ago|reply
The reason why so many apps use React/Vue/whatever for everything is because this hybrid setup is far from simple. It leaves you with two different ways of rendering views, which creates unnecessary context switching for developers, and the interface between the two is often ugly and complicated and prone to memory leaks if you're not careful. It also prevents you from taking advantage of the most powerful patterns in these frameworks, which rely on the assumption that it's running as a single page app.
The fact is, if your app has functions that require a JavaScript framework to work, the most straightforward answer is to build the whole app in that framework, rather than trying to cobble together multiple front end systems.
[+] [-] kbuchanan|3 years ago|reply
- One language model (i.e. no JS, just our favorite backend language)
- Extremely minimal front-end tooling
- All data is manipulated with the same tools
- No client-side routing, validation, or... really much at all
P.S. We even wrote our own import-maps solution to avoid needing a JS bundler for the small stuff you can't do without JS.
[+] [-] brink|3 years ago|reply
Thankfully people are waking up and seeing that JS is most appropriate as a "last resort" technology.
[+] [-] marcopicentini|3 years ago|reply
Almost zero JS (no Vue.js, no React, or else).
[+] [-] sodapopcan|3 years ago|reply
[+] [-] freedomben|3 years ago|reply
[+] [-] jeanlucas|3 years ago|reply
[+] [-] sodapopcan|3 years ago|reply
[+] [-] nelsonic|3 years ago|reply
[+] [-] beebeepka|3 years ago|reply
I am more in favour of BE telling FE what to render. I honestly believe many apps could be simplified with better abstractions than hard coding html into messy components. Not saying it's a great approach for super complex layouts, of course.