Building an HTML-first site doubled our users overnight
Posted by edent 4 hours ago
Comments
Comment by OskarS 1 hour ago
> There was a sad coda; as is the way of contract work, I moved on. I explained what I had built to my replacement, that it always worked even without javascript. He was appalled and said, “but that’s a lot more work for us.”
Why is it more work? The approach described in the article seems honestly reasonably simple: just write the standard <input> components for the form, have a submit button at the bottom. When I was making my own websites many years ago now, that's how it worked, and it wasn't that hard. Maybe it's reflecting my ignorance in this field, but doing fancy front-ends seems much harder to me.
Comment by chao- 56 minutes ago
A few of them would outright not know how to do anything else. No knowledge of how to stand up a boring HTTP server to send pure HTML. No experience building a form that validates or submits without JavaScript. These are not the people who post here on HN. They are not engaged in online discussions of new tools and skills (or old tools and skills!). These are people who learned just enough from a bootcamp, or their uni's single "web apps" course, to get a job. Since then, they have just-in-time learned whatever their employer required, or whatever particular tools someone else on their team chose for a project.
As an old, it took me a while to recognize/realize it, but I understand them now. Depending on their career path, someone will encounter the simplest aspects of HTML, CSS and vanilla JavaScript after they learn the complex, framework-specific aspects of each. It feels (to them) like more esoteric, advanced, or tertiary knowledge.
Tying it back to to the quote "that’s a lot more work for us", that's not necessarily an intentionally false claim. It probably does feel like a lot more work to perform a task using unfamiliar tools, even if they are less-complex tools.
Comment by concinds 45 minutes ago
These are the people writing React monstrosities for government benefit websites, and testing them on fast iPhones and fast 4G, without realizing that every page load for actual users will take 30 seconds on their old $200 Android on 3G, and users won’t complete the form.
It’s a culture of not giving a shit, that’s the deeper issue.
Comment by 6510 25 minutes ago
Comment by yesco 22 minutes ago
My experience was the reverse. I learned HTML and CSS first, then Rails in college to serve templated pages. I understood the client/server boundary fine as a concept, what I couldn't see was where it actually sat in a web context. I sort of knew JavaScript ran in the browser, but then I'd see ERB templates stamping values directly into script tags, so the server was writing the JavaScript that ran on the client, and my mental model fell apart. Where does my code actually execute? Why does this variable exist here but not there? Why does the page have data the network tab never fetched? Nobody ever sat me down and explained the request/response lifecycle as its own thing. I had to assemble it from fragments over years. This was around 2017 for context.
How you learn something shapes how you keep learning. If your mental model is misaligned, everything downstream is friction. The thing that finally made it click for me was reading the actual HTTP RFCs, which is apparently a weird thing to do, because HTTP itself is absent from nearly every guide and curriculum. Tutorials teach you the framework, maybe the language, and just assume the protocol underneath. These days I make newbies read the MDN docs like a book and skim the HTTP wiki page, learn the history of the protocol. It's short! It's not even a book! That gives you a firm foundation. But if your foundation starts at React, drilling down is like digging past bedrock. People don't know where to start, and Googling only shows them wrong answers because they don't yet know how to ask the question.
Comment by luckylion 4 minutes ago
Comment by opem 36 minutes ago
This is a direct effect of being a low barrier industry to enter. Most of the ppl among us are mostly here because of a good paycheck. And it SUCKS!
Comment by chao- 28 minutes ago
Absolutely agree! Just because I understand how they got there doesn't mean I think it's a good state of affairs ;)
My post was already quite long, and I didn't want to append a treatise on what one should do when encountering those engineers. It depends on many details. Avoid hiring them, if that's a power you have. If you are stuck working with them, depending on your authority, encourage them to learn or force them to learn. If you're coming in to clean up after them... well, hopefully your comp is worth the annoyance.
We are all simultaneously in the position of encountering "the world as it is", understanding it, and doing what we can to improve it.
Comment by egeozcan 34 minutes ago
Someone is saying that they delivered a very reasonable solution that's simpler than most would come up. Person taking over was not happy.
Do we know if the code being handed over was high quality? Were they reacting to the fact that it was "not React"? Maybe they have a template they enforce in the company about how apps are built?
We don't know.
Comment by theflyinghorse 1 hour ago
Comment by seangrogg 56 minutes ago
It's akin to writing a backend in Haskell. Chances are you could write something performant that leverages FP in a way that serves as a magic bullet for your domain. But now everyone after you needs to learn Haskell and how to model all future problems in a way that conforms with it - or rewrite things again.
Comment by freehorse 29 minutes ago
Comment by oldandboring 42 minutes ago
Before LLMs I would have agreed.
Comment by hungryhobbit 38 minutes ago
Comment by CSSer 32 minutes ago
Comment by simpaticoder 1 hour ago
Comment by squidbeak 50 minutes ago
Comment by LNSY 1 hour ago
Comment by simpaticoder 52 minutes ago
Comment by LNSY 21 minutes ago
Comment by atoav 1 hour ago
I am convinced the one single thing that made HTML unusable over the time was that people wanted or needed a way to re-use parts of the page across multiple pages, like headers, navigational elements and footers.
This meant people used frames, PHP, templating engines or any other new technology mainly for the purpose of creating shared elements, simply because HTML failed (and to this day: fails) to offer a way to include one HTML file in another without having it suck (like frames definitely did, since the browser treated each subpart of the page like its own entity including caching).
Comment by autoexec 37 minutes ago
Comment by p-t 6 minutes ago
Comment by jmye 16 minutes ago
Comment by EvanAnderson 10 minutes ago
It would have been very cool if HTML had been created with the ability to do client-side includes without having to resort to using a Turing-complete VM in the client to do it.
Comment by atoav 6 minutes ago
Comment by rhelmer 59 minutes ago
Comment by LNSY 1 hour ago
Comment by EGreg 55 minutes ago
But do we really need all that stuff? Build steps, bundling, tree shaking, all for what? And is it really simpler… hmm
Comment by motoboi 1 hour ago
Not even that old. 60 year people can't user your fancy site because then don't have an internal model of how a computer works.
You know that when pressing a button a hidden engine runs in the backend (or something runs in the backend). You expect an answer and if the expectation do not match the result, the model in your mind creates an hypothesis about what maybe happened and iterate from there. Maybe you should have clicked something before? Maybe you should mark some form checkbox?
Old people don't have that because they didn't grow up with computers.
What is on the screen is what they see. I clicked next and nothing happens. Well... the site is broken.
You known when you plug your refrigerator and nothing happens and instead of reflecting on the possible blown out resistor that you can bypass with a small wire you understand that your only relationship with the refrigerator is plug and unplug or call for help? That is an old person using your site. They won't fight against it. They'll give up immediately.
Comment by StableAlkyne 1 hour ago
If the button doesn't work, the average user is going to say "this most be broken" and then use a competitor (or contact your support). That's why it's really important to error-proof one's design (eg https://en.wikipedia.org/wiki/Poka-yoke).
So instead of the button failing because you didn't check a box, pop up with a message telling them "Please click $box before continuing". Or if you want to be fancy, feed them whatever form you're giving them piecemeal, so that they can't continue until they finish this small part (e.g., have them input a name, then the next page only has a spot for an address, then the next page only has a spot for card information, then the next only has a spot to select shipping). Simple bite sized chunks anyone (well, anyone you would ethically want to sell to) can understand.
Comment by black_puppydog 43 minutes ago
Either it works right away without any further questions, or they'll not do it.
Sadly, also if they can't do it on their phone, they will not do it. It's actually very hard to get people motivated to do anything that has to do with sitting down at an actual computer anymore. Which is a bit hard if you're in a very technical political advocacy group, kinda makes me the guy to do everything remotely complex... XD
Comment by andrewflnr 31 minutes ago
Comment by breakwaterlabs 1 hour ago
Aren't insane.
When did the industry put the onus on the user to understand how the computer works? What happened to the old days of Xerox PARC's HCI studies putting the user first? The computer is in service of the user, not the other way around!
If I need to build a mental turing machine to understand your application, it is a bad application. It is rather the engineer's job to build a mental model of the user and their needs, and if you can't do that you should not call yourself a software engineer.
Comment by ryukoposting 45 minutes ago
Maybe this isn't applicable to all software devs. If you make web apps, users actually see your UI, they click an icon or type in a URL and hit enter with the intent of using the thing you made. With firmware, that's not how it works.
When you hit the "mute" button on your laptop keyboard, it should just do it. The audio should turn off and the little LED should light up. If that fails, even once, the mirage is broken. The user is forced to think about the fallibility of firmware, which is a word they might not even know, and still struggle to conceptualize if they do. I think it also has a lasting effect on the way someone thinks about the pruduct: Is this going to work today? Why did that happen? Was that a virus? So on.
OTA firmware updates have the same problem. Most users don't know what the hell firmware is. All they know is their computer is showing a loading screen they've never seen before. It's unfamiliar and weird.
Like I said, I don't know if this mindset translates perfectly to other fields, but the priorities that fall out of my philosophy certainly apply. Reliability over everything, and get it right the first time.
Comment by cosmic_cheese 16 minutes ago
The pendulum is overdue for swinging back the other way, but I don’t know who or what has both the capability and will to give it the push needed to send it on its way back.
Comment by isityettime 53 minutes ago
This is even true for things as seemingly non-technological as getting to your flight once you arrive at the airport. People who are used to dealing with a service desk might just show up with their printed ticket without even having looked at it, take it to the counter, and expect instructions on what to do next without having read or considered all the fields present on the ticket.
It's not just about understanding the technology, but sometimes about understanding the business, policies, whatever. When a human agent or customer service worker is handling that stuff for you (typical in the pre-computer age), you barely have to think about that stuff and even if you're told, it can be "in one ear, out the other". Automation very often means pushing a requirement of more understanding onto customers/users.
Comment by Hard_Space 1 hour ago
I think this is a bit outdated. I'll be 60 in a month, and have been practicing and writing about machine learning, for money, for a straight 10 years now; and I was a young man (and a full stack developer) during the digital revolution.
If anything, GenX had to work harder to get into these brittle emerging technologies and paradigms. There's no-one of my age group, at least that I know of, who is remotely as tech-illiterate as your comment depicts.
Truth is that it took so long for smartphones to dumb down everyone's tech acumen that those of my generation had already learned to do it the hard way.
Comment by rewgs 1 hour ago
Comment by tomgp 1 hour ago
Comment by lproven 51 minutes ago
Absolutely. I am in full-time work, and expect to be for another decade. I have worked my entire career in IT, doing tech support, training, systems design and implementation, tech journalism, and tech writing (i.e. documentation).
I will be 60 in less than 18 months.
> Word processors and spreadsheets having been ubiquitous for office workers from at least the early 90s.
You did say "at least", but still... longer than that.
I started work in 1988 and they were already ubiquitous in my world. Richer companies had the fairly newfangled IBM compatibles, which were still big and expensive. The cheap Amstrad PCs were just starting to appear.
Older hands had multiuser boxes with SCO Xenix or DR Concurrent CP/M or Concurrent DOS and a bunch of dumb terminals. My company had switched to these from Alpha Micro systems running AMOS -- and again, dumb terminals. One of my clients had a DEC PDP-11.
The real old hands had 8-bit kit: some CP/M, and a few BBC Micros.
The first big migrations I saw were from standalone (or multiuser) PCs to LANs, and from pre-PC systems to PCs and Macs.
Comment by jimbokun 53 minutes ago
Comment by Hard_Space 1 hour ago
Comment by wang_li 59 minutes ago
My mother, born in 1934, had no problem using computers. She didn't internalize how they work, but she learned the workflows she needed. How to launch applications and so on.
The situation described in that comment is just a broken app, it has nothing to do with the age or the understanding of the user.
Comment by dijksterhuis 1 hour ago
my mum, a boomer now in her 70s, would have no bloody clue what you're talking about. she used to work helping out a guy who was doing punchcard programming back when she was young. she ain't dumb. if i broke it down into normal human english words, she'd probably get a sort of idea (or at least nod along to humour me).
i've lost count of the number of conversations i've had with my dad, late 70s boomer, where he complains that they've changed the UI. "It's all different and i don't understand, why did they have to change it? I don't know where anything is now." he's been moaning about things like this for over a decade now (so since his late 60s).
there are definitely technically not-very-literate 60 year olds and the general point about older folks, whether that's >60 or >70, is very real:
older people exist who don't have a clue about SPAs/PWAs, and chances are they're either asking their offspring for help (my mum does this), trying to phone someone instead (my mum does this) or just walking away from it (my mum does this).
Comment by Maken 9 minutes ago
Comment by asdfasvea 34 minutes ago
Instead of "old person" he put a number on it. (Cue the people who need to cut me down because I used a male pronoun for an unknown poster)
Comment by bearjaws 33 minutes ago
I've seen static sites with these same problems, 404 was invented decades before React...
Comment by initramfs 1 hour ago
Comment by dotBen 55 minutes ago
You know, it's time to stop this trope.
People who are 60 today were born in 1966, they probably entered the workforce in the mid 80's. They probably are not even retired yet. They know how to use computers, they own a smartphone (or if they don't, it's probably for economic reasons unrelated to their age).
As a founder and product manager, this kind of thinking is unhelpful as we design the future. In many ways it's actually ageist to imply that old people are unable to utilize everyday technology.
I was building public service websites (BBC News website) back in the early 2000's where accessibility was a real and important consideration. Technology progresses, and the bar for accessibility has moved up.
My father is about to turn 80 - he checks his heart with his Apple watch, video calls his grandson from his iPad, and asks ChatGPT questions from his iPhone and MacBook Pro. Maybe he's more unusual for 80yo's but it's time to stop this lazy trope that old people are technically illiterate.
(also, shit, I'm only 15 years away from being 60 myself :/ )
Comment by pmontra 1 hour ago
Comment by Telaneo 1 minute ago
"Why did the bank change the layout? I want the old one back!" - Don't like it? Change bank then. That's what I did.
I get that changing to another bank is a big unknown, but it's probably still worth it to show your displeasure. Plus her bank are morons when it comes to several other things.
Comment by dghlsakjg 1 hour ago
I wouldn’t sweat the broken fridge either though, there’s so many other electrical appliances in the house to use.
Comment by natbobc 1 hour ago
Comment by celsoazevedo 57 minutes ago
Keep it simple and light. HTML+CSS first, JS to expand functionality. Don't re-invent the wheel.
Comment by pugworthy 10 minutes ago
You realize that someone who was 18 when the Mac was first released would be 60 now?
Comment by aidanbeck 1 hour ago
> Of course, your javascript-based analytics package doesn’t see the users you are bouncing because of javascript failures.
It is frightening to think of how many people are alienated from critical systems every day because of this bias reinforcing the idea that they do not exist.
Comment by genewitch 1 hour ago
I can't imagine trying to use links/lynx or a browser with less market share than FF that isn't based on chromium.
Comment by nunez 1 hour ago
It doesn't work if you disable JavaScript...but it wasn't always this way!
They had a mobile version of their online banking service at https://m.chase.com that was EXTREMELY FAST and did 85% of what you need to do in an online banking portal (check balances, transfer funds). They scrapped it when they moved to their current bloated monstrosity of the portal that they have today.
It was a big reason why I moved to a credit union (who outsources their online banking services to Alkami, which maintains a very tight portal and supports 2FA AND passkeys!).
Comment by genewitch 1 hour ago
Someone at chase isn't checking their work on firefox.
Comment by enlightens 1 hour ago
Comment by natbobc 54 minutes ago
Comment by Telaneo 7 minutes ago
Assuming the processor isn't horrible, I can still browse plenty of sites with those specs without much issue, and on the sites that do require more, it's very rarely because the sites actually needs it (i.e. I'm not running Windows XP in a VM in the browser or something). It could just be normal HTML and CSS and normal forms, sprinkled with some light JS to help out a bit. But the amount of sites made with that level of care and attention are sadly rare, since the people responsible rarely feel the pain or have the empathy to fix the problem.
Comment by ungreased0675 2 hours ago
Shipping tens of megabytes per web page is impolite, if not outright disrespectful to users.
Comment by pier25 6 minutes ago
You're being generous with what I would consider negligence.
Comment by HumblyTossed 2 hours ago
Comment by epolanski 2 hours ago
And don't dare to contradict me, the fact that MIT-bred leetcode ninjas paid half a million per year can't produce a simple (mostly static) website on that stack it's only because of management that wants to ship the next product. /s
Comment by ai_slop_hater 2 hours ago
Comment by pier25 10 minutes ago
Comment by jorisw 2 hours ago
Comment by alex_suzuki 2 hours ago
Comment by afavour 2 hours ago
Comment by jorisw 2 hours ago
Comment by aziaziazi 1 hour ago
Comment by pier25 8 minutes ago
Comment by jorisw 2 hours ago
Comment by hamburglar 2 hours ago
Comment by shakna 1 hour ago
Comment by kitd 2 hours ago
Comment by sarchertech 2 hours ago
Comment by msla 1 hour ago
Comment by nonethewiser 2 hours ago
React is too heavy weight for a lot of things. But it's ridiculous to call it disrespectful.
Comment by Ruarl 1 hour ago
Comment by genewitch 1 hour ago
if it sounded "clean" on all 3, without the bass muffling everything, and the highs not hurting the eardrums, we called it "good" and released.
Comment by bgarbiak 55 minutes ago
Comment by nonethewiser 1 hour ago
Comment by alok-g 22 minutes ago
I have been asked by someone in late 40s why uploading a video takes a lot longer than uploading a photo.
They are not dumb people. They just do not know.
The onus is on the engineers to design for them.
Comment by graypegg 2 hours ago
Comment by t1234s 2 hours ago
Comment by kkkqkqkqkqlqlql 2 hours ago
Comment by jppope 21 minutes ago
- shrimp scampi
- Old Adage
- chai tea
- Naan Bread
- Rio Grande River
- Lake Tahoe
- PIN/ VIN number
- ATM machine
- GPS system
- Panini sandwichComment by wpollock 1 hour ago
These gems are brought to you by the department of redundancy department.
Comment by brandrick 41 minutes ago
Comment by calvinmorrison 1 hour ago
Comment by mixmastamyk 1 hour ago
My favorite from Southern California.
Comment by lproven 46 minutes ago
It's only a matter of time until someone posts "Torpenhow Hill" -- which does not exist.
Comment by nonethewiser 1 hour ago
Comment by jp_sc 1 hour ago
"ATM" means "Automatic Teller Machine", so "ATM Machine" is "Automatic Teller Machine Machine".
Both are mentioned in the animated movie "Spider-Man: Across the Spider-Verse".
Comment by thesuitonym 1 hour ago
Comment by adi_kurian 17 minutes ago
Comment by zhengyi13 1 hour ago
Comment by pphysch 1 hour ago
Comment by genewitch 1 hour ago
Comment by iamacyborg 1 hour ago
Comment by pmontra 1 hour ago
Not in the Wikipedia page (but check the Italian version): it started as "Mons Belli" (Mount of the Battle) because of a battle fought by the Romans a few years before the Hannibal campaign. Then the original meaning was lost and it gained another "of battle" in the 1800s. Mount of the Battle of the Battle. Hopefully there won't be another one to add.
Comment by 1-more 59 minutes ago
Comment by dylan604 1 hour ago
Comment by Zambyte 1 hour ago
Comment by addandsubtract 1 hour ago
Comment by naravara 2 hours ago
Comment by danudey 1 hour ago
The applet took 30 seconds to load. Once it loaded, it showed five buttons to click to get to different sections of the site. When you clicked on one, instead of changing the content frame, it sent you to an entirely new frameset. This, of course, caused the sidebar to take another 30 seconds to load. Hitting the back button did the same thing.
Meanwhile, I knew someone whose friend made a little applet that he showed me; it was a Java applet that you could provide an image URL for and it would load the image and then, below the image, show a rippling effect as though you were looking at something on the shore of a rippling lake. This applet took less than a second to load and ran incredibly smoothly.
Java was a curse, not because Java was bad but because Java applets were written badly and used badly simply because they were neat.
Comment by dylan604 1 hour ago
I would like to say the early interweb was just a learning experience, but today's interweb hasn't learned any of the lessons. It's just changed which language the lesson is being relearned
Comment by LNSY 58 minutes ago
Comment by ErroneousBosh 1 hour ago
Every single person I showed it to including my then-70-something mother said "that just looks like menstrual bleeding".
Every single person said that.
They still went with it. Conversion rate? Dunno, never got numbers high enough to test the script.
Comment by thewebguyd 2 hours ago
Comment by faangguyindia 2 hours ago
I've found it's enough for most projects.
One of my sites is image heavy and serves 10 TB of traffic per month. For this, I use the following setup:
1. S3 (I wanted reliable data storage) 2. In front of it, I have Cloudflare (with Tiered Cache enabled, which makes POPs prefer pulling from Cloudflare rather than the origin). I've set rules to cache everything on both the browser and Cloudflare for 1 year, ignore origin cache policies, ignore query strings, etc., and I simply use immutable objects that require revisioning. 3. BunnyCDN in front
Cloudflare will not let you run an image heavy site on its own, so I use this approach to massively cut the bills. Their policy says you cannot use it primarily for images; it must be used for HTML, CSS, JavaScript, and other site content.
And if you run only S3, the bills will be huge.
But yes, lately I’ve been building mobile apps. PWAs are limited; the OS can evict IndexedDB storage, so I cannot offer people reliable data storage in the app without sign up or involving a backend.
What can I do? So I was forced to switch to Flutter on Android, but I ran into another pain point: app updates sometimes spend a lot of time "under review," which is frustrating. For the same app, I maintain a web app that is very quick to update by comparison.
I wonder why there isn't a mobile OS that simply lets you build apps with JavaScript, HTML, and CSS and gives you reliable storage without all this effort.
I like how quickly you can update PWA app.
Comment by wild_egg 3 minutes ago
Your Go server can have endpoints that render XML instead of HTML and basically get the same server-driven experience of your HTMX site. Fully skips the need for the app review process since you're not updating the actual client app code to make UI changes.
Comment by creesch 2 hours ago
There is! You just have to time travel all the way back to 2009 when webOS was launched by Palm. Time travel is the easy part, you then also need to somehow prevent Palms demise and webOS fading into obscurity as a smartphone OS.
If 2009 is too far back you can try your luck in 2012 with Firefox OS.
Joking aside, people and companies have given it a go. But a combination of bad timing and various other events never made that reality happen in our timeline.
Comment by paytonjjones 2 hours ago
Comment by shakna 1 hour ago
Running `npm install` on Android isn't so easy.
(Caveat: The new Android Terminal that only works on a handful of models.)
Comment by inigyou 1 hour ago
Comment by inigyou 2 hours ago
It's not great for every task - in particular the lack of abstraction-building capabilities - but it's great for business-logic-heavy server apps. It feels like it's specialized for that and not trying to be a jack of all trades.
Comment by shit_game 2 hours ago
I can't imagine this kind of traffic without acting as a CDN, advertising broker, pornographer, or part of a massive ecommerce site. I have to wonder, what are you doing that generates 10TB of traffic per month?
Comment by jimbokun 22 minutes ago
Comment by jimbokun 18 minutes ago
Comment by bearjaws 31 minutes ago
Because there isn't a 30% walled garden you can create with that.
Comment by shakna 1 hour ago
Pages has a 20k-100k limit on static files, but if they just guide you to R2 to offload it, which is still Cloudflare.
Did you mean the CDN? In which case, I'm not seeing that in the terms. [0] Though, I would have expected they'd have a similar thing. R2 resources don't generally count towards your cache limits.
[0] https://www.cloudflare.com/service-specific-terms-applicatio...
Comment by inigyou 1 hour ago
Comment by pragma_x 1 hour ago
Comment by pphysch 1 hour ago
Working on a "simple html page" that is actually 5 different independent "subpages" (routes, views, templates) in the backend is awful. The UX was improved, but the DX was sacrificed.
I recommend having a single view function for each page/SPA and do sub-routing within that function to handle page fragments. In other words, use a GET/path/Header parameter that indicates which fragment is currently needed, defaulting to the full document as normal. Just make sure you are considering request logging and client-side caching in your solution.
This makes it very easy to add/remove async content from the page, since you are just editing the one view function/template and you can easily reason about the entire page as one logical unit.
It also means you don't need to duplicate security logic or other middlewares for the page, since it can be implemented once at the start of your multi-faceted view function.
Comment by wild_egg 1 minute ago
Comment by miroljub 2 hours ago
Would like to hear about your Go stack for building htmx apps.
Comment by arnorhs 49 minutes ago
However, I do not like how it is framed as "simple html is better than react" - because you could just as well have told the same story as a react developer.
(Nb. I could go on forever about the complexities and intricacies of storing things session based on a server vs browser based and etc - and lots of other things that were skimmed over in this article, but that would be too long)
All of those things that are simple in html are also simple in react.
It's literally the same code - there's nothing preventing you from using browser based html validation in react - all the same code that gets complicated in react (overly complicated validation logic) also ends up being complicated in astro - they have their own thing around schema validation etc and integrating it within an astro site means you have to integrate their client router etc etc.. so it's very easy to go overly-complicated there as well.
The comparison is also with an off-shore team doing development for you with probably incomplete knowledge and the way projects are structured they have an incentive to create the solution as fast as possible, in as little time as possible, with the biggest amount of complexity as possible.
The last point is devious - it's not necessarily that the contractor does this by design, but the incentive structure makes it so something that's overly complicated actually benefits them, so they don't have a direct incentive to go with something simple.
Anyways, a simple solution, directly addressing the problem at hand is always better - no matter what stack you pick.
(I'd like to say that I don't have anything against Astro's form validation, I was just trying to highlight how there's more to it than "native html browser validation")
Comment by wmanley 2 hours ago
https://williamkennedy.ninja/javascript/2022/05/03/in-defenc...
Comment by __natty__ 2 hours ago
Comment by frisia 2 hours ago
Comment by __natty__ 2 hours ago
Comment by alsetmusic 1 hour ago
Comment by ErroneousBosh 1 hour ago
Comment by elmigranto 2 hours ago
Comment by TSiege 2 hours ago
Comment by sorenjan 2 hours ago
Comment by Izkata 34 minutes ago
Comment by bryanrasmussen 1 hour ago
"Satire isn’t dead.
Satire won.
This is what it looks like from inside, looking out. "
Comment by pegasus 2 hours ago
Comment by tele_ski 2 hours ago
Comment by sodapopcan 1 hour ago
Comment by 650REDHAIR 2 hours ago
Nice work!
Comment by bryanrasmussen 1 hour ago
Comment by pkphilip 1 hour ago
Comment by TSiege 2 hours ago
Comment by onion2k 1 hour ago
Attributing this to the technology driving the browser experience is silly. You can make a brilliant user experience with React. You can make a terrible website with plain HTML.
The improvement comes from the change design, not tech.
Comment by Aurornis 49 minutes ago
You could argue that the constraints of using HTML-first (as they call it) helped them stay away from the bad patterns they were using before.
But you’re right: The user change came from fixing the design, not the technology used.
This is a lot like those bad resume bullet points where someone tries to claim an increase in business was due to their code change. “Increased visitor count 100% by rewriting website to be HTML-first”. Then when you ask them about that point they concede that the entire site was redesigned to fix some design problems or add a feature and that’s what drove the visitor increase.
Comment by lucumo 54 minutes ago
Fun thing, TFA describes a kind of multi-page wizard style form that I haven't seen a lot anymore in the last decade or so. But when I did see it, it's always some dogshit enterprise system. Some Oracle product for expensing expenses last time.
The problem with those things always seems to be that they are slow in the middle of doing your task. Every button is seconds of waiting. Doubly annoying if you have to go back a step or two. The badly coded SPAs seem to be slow at the start. It takes a while to load, but once it's loaded its performance is usually okay.
Comment by iammrpayments 1 hour ago
Comment by entropichorse 3 hours ago
Comment by wmanley 2 hours ago
* Have working back/forward buttons * Have working progress indicator as provided by the browser * Show errors to the user - even if they are ugly * Be accessible to keyboard navigation
With SPAs these are all things the developer has to get right.
So often when using a SPA I'll click a button, you get a spinner and then nothing will happen. Is it still in progress? Don't know. Eventually I'll open developer console and trace the network requests to find the JSON HTTP request that returned "ERR_BAD_EMAIL" and fix what I've entered. With a normal form submission at least the user will see the error message and can press back and then fix it.
Comment by adjejmxbdjdn 2 hours ago
The article is clearly aimed at non crappy developers or developers who want to do better for their users.
And it provides an anecdotal experience where an HTML first option developed by a good developer was far superior to what a JS necessary option would have been, given the user base of this application.
Comment by someonebaggy 3 hours ago
Comment by nicoburns 2 hours ago
(I still very much support fast, simple HTML websites. The good ones are a fantastic user experience)
Comment by trashb 2 hours ago
Comment by nicoburns 2 hours ago
Comment by cyanydeez 3 hours ago
Comment by hyperhello 3 hours ago
Comment by swiftcoder 2 hours ago
Comment by whstl 1 hour ago
This is an absurd statement. Just because something is a proverb, doesn't mean it's automatically true for all cases.
Comment by elxr 1 hour ago
But I 100% see where the author's coming from, considering the massive fragmentation of react codebases/patterns and decision paralysis of React development in general. I really doubt most React apps, even the more accessible ones, are testing their multi-page form wizards with JS completely turned off.
HTML-first does seem highly underutilized in the commercial web, and I learnt a lot from reading this (as a solidJS/react dev).
Comment by manuhabitela 1 hour ago
An "old school" Ruby on Rails/Symfony/Django app, with templates, usual get/post forms etc, frames you and pushes you in using the standards and relying on browser default behaviors.
In JS-heavy apps, it's as easy to code normal `button` elements as it is to code clickable `div` elements. But with the divs you just forget to handle keyboard nav, proper element roles, etc. It's easy to create fake links, not relying on `a` tags, using an internal JS router that doesn't expose URLs, doesn't handle middle click mouse, for no particular reasons.
In less JS-heavy contexts, the easiest way to do is to use proper HTML so you are less inclined to mess up.
Even on codebases that use a decent framework like Next.js that handles those for you on paper, it's often we see people not very aware of the benefits of using proper semantics and standard behaviors, and you easily end up with web apps with poor UX in the end.
Comment by malteg 2 hours ago
Comment by TSiege 2 hours ago
Comment by afavour 3 hours ago
Comment by whstl 1 hour ago
Astro itself works just fine with React, and it can still be HTML-only.
But you can also render React on the server yourself using renderToString, if you don't want a framework.
Comment by bschmidt300 2 hours ago
Comment by callumprentice 1 hour ago
Then I start to wonder if that's just because I'm not smart enough to understand React or whatever the fancy technology of the day is.
Feels like I have a hard understanding threshold that cannot be breached - give me a simple editor like Sublime and ask me to make a web page - even with JavaScript - and it's my happy place. Give me VSCode or Zed, Claude/Copilot/ChatGPT plugins everywhere, React tutorials and my brain goes to mush.
Comment by thesuitonym 1 hour ago
Comment by LNSY 1 hour ago
Embrace Extend Extinguish is real, and the people going along with it deserve to be replaced by a LLM that lies and spits out garbage code just like they do but faster.
Comment by elxr 24 minutes ago
I generally prefer solidJS nowadays, but the react ecosystem has enabled lots of amazing user experiences (and developer experiences too if you don't fall into the trap of overcomplexity).
Comment by bastawhiz 1 hour ago
Comment by yawaramin 16 minutes ago
2. The design constraints had always existed, the previous app just failed to meet them.
Comment by neya 45 minutes ago
If the creators of React haven't figured it out, what makes you think you can?
Comment by sjtgraham 2 hours ago
Comment by initramfs 1 hour ago
Comment by miki123211 24 minutes ago
How many such devices can still support modern TLS certificates anyway? By this logic, shouldn't we also use plain HTTP instead of TLS?
Comment by munificent 21 minutes ago
If you're using a decade old phone to sign up for a utility, you've got bigger problems in your life and no self-respecting person should be adding to them.
Comment by Dwedit 1 hour ago
Comment by 0xpgm 2 hours ago
Too much VC money and big tech influence in the JS ecosystem made the web worse in some ways.
Comment by ecshafer 1 hour ago
Comment by xavortm 1 hour ago
Comment by Shellban 1 hour ago
Comment by yawaramin 13 minutes ago
All completions were real people. It's a government website.
Comment by initramfs 1 hour ago
https://inavoyage.blogspot.com/2026/06/im-building-parallel-... https://inavoyage.blogspot.com/2026/06/how-about-new-java-ba...
Comment by ninalanyon 1 hour ago
Comment by gcity123 33 minutes ago
Comment by sethammons 1 hour ago
Yeah, reminds me of the b52 story re holes in wings on the planes that made it back from missions, leading them down the wrong path of strengthening wings. They weren't looking at the planes that never came back with holes in the fuel silages.
Comment by Havoc 44 minutes ago
Comment by jrochkind1 2 hours ago
OK, I'm still at the beginning and irrelevant to the article, but as a USA-ian, I am so jealous about that. Unheard of here.
Comment by Uncle_Brumpus 1 hour ago
Personal anecdote: Recently they were updating everyone to "smart meters" on the gas lines. They needed me to be home so they could enter my apartment and bleed the gas out of the line by turning on the stove prior to replacing the meter. I played phone tag with them for 6 months, setting up countless appointments, and nobody ever showed up, the meter remains un-upgraded. At the same time, I have received weekly phone calls and monthly physical letters stating that if I don't upgrade the meter, my gas will be shut off. I just moved, so the new tenant will have to deal with it now.
Comment by Quarrel 2 hours ago
The public sector, simple, no frills, accessible, no flashy graphics, websites were a massive eye-opener.
They just worked. They had a job. They did it. I wasn't going to buy more from them because of it, and they didn't care. It was great.
I've heard that recently they've dismantled the centralised team that wrote all the rules, enforced it, and started moving to decentralised hosting, but so far the whole still seems to hold to together really well. I think, I hope, they have embedded the expectation that the local council, the tax office, your visa status, etc, should just be utilitarian in nature, and work for everyone.
I worry how long it will last...
Comment by freedomben 3 hours ago
> A venerable web application pattern that has had a small modern renaissance thanks to Remix
Remix is not that popular. I don't think attributing this to remix is accurate. Next.js quite possibly.
Comment by simonw 3 hours ago
> A venerable web application pattern that has had a small modern renaissance thanks to Remix, form submissions and redirects took a while to explain to my colleagues, on account of everyone being used to heavily client-side web applications.
(Although it's not really a joke, it's pretty amazing how many professional web developers these days don't know how to use forms without JavaScript.)
Comment by someonebaggy 3 hours ago
Comment by dormento 2 hours ago
I recently had to intervene during the latest office holy war to explain that you don't need JS for file uploads.
It was eye opening.
Comment by afavour 3 hours ago
I'd be curious to see the stats on how often Next.js users lean into the server component model that makes the frontend fast. My anecdotal experience is that it's an afterthought for many. By comparison, Astro (as mentioned by the author) makes you think about this stuff upfront via opt-in rather than opt-out. It's a wonderful framework.
Comment by arowthway 3 hours ago
Comment by pspeter3 3 hours ago
Comment by epolanski 1 hour ago
Comment by skybrian 1 hour ago
In this article he recommends the “validation-enhancer” library:
https://www.npmjs.com/package/validation-enhancer
I’ve also seen one called “formisch” that the author of valibot is working on:
https://github.com/open-circle/formisch
They’re both pretty new. Has anyone tried them?
Comment by kccqzy 1 hour ago
Comment by yawaramin 9 minutes ago
Comment by simonmysun 1 hour ago
Back to HN comments it looks like this wasn't actually intentional?
Comment by ErroneousBosh 1 hour ago
You've only got yourself to blame, there.
Comment by danielrhodes 1 hour ago
Comment by hiccuphippo 1 hour ago
Comment by Shitty-kitty 58 minutes ago
Comment by IFC_LLC 2 hours ago
I guess the main argument is how easy it is for an LLM to ingest the content, since I can bet all of the crawlers are llm-enabled one way or another.
Comment by NopIdoN 2 hours ago
Is it more work?
Comment by dirkc 2 hours ago
While it still does the job, I'm a little curious to explore more modern options, if for nothing else to understand the choices a more junior dev would face/make today.
I'm seriously considering giving Atro a go. Is it worth it?
Comment by theandrewbailey 2 hours ago
When messing around with my blog's Javascript, this mantra is so thoroughly embedded into writing it, that I try to include "enhance" in function names where it makes sense. I might have to do likewise with my CSS.
Comment by tootie 3 hours ago
Comment by yawaramin 7 minutes ago
Comment by yCombLinks 2 hours ago
Comment by myself248 2 hours ago
Comment by robofanatic 2 hours ago
Comment by Zak 2 hours ago
Comment by simonmysun 1 hour ago
P.S. your solution seems to have disabled the custom font instead of fixing it
Comment by Zak 10 minutes ago
Comment by fd-codier 1 hour ago
Comment by James_K 19 minutes ago
Comment by masa-kozu 2 hours ago
Comment by fisherwithac 2 hours ago
Comment by nobleach 2 hours ago
Don't get me wrong, I actually have enjoyed React over these past 10 years. But, including it blindly is just silly.
Comment by Natfan 2 hours ago
it doesn't work for everything and imo is worse for (p)react due to the lack of native JSX, but it does allow for bringing in stuff that usually takes an `npm install && npm build`
Comment by melon_tsui 2 hours ago
Comment by nilirl 1 hour ago
What were some of the downsides? Illuminating the tradeoffs would elevate this post from good to great.
Comment by aidanbeck 1 hour ago
> "but that’s a lot more work for us."
And it's not that any individual or team is lazy. Most teams have a constant barrage of priorities to balance and are paid by companies valuing efficiency over everything. That said, I think the article makes a great case for adjusting our prioritization. Going a bit slower won't kill anyone, in fact doing so will probably save some.
Comment by drchaim 2 hours ago
Comment by joelanman 1 hour ago
https://www.gov.uk/service-manual/technology/using-progressi...
Comment by 6510 36 minutes ago
Personally, rather than this luxurious approach, I just do one giant form and store all values in local storage. If something is wrong have one message at the top listing which fields failed validation and why. Generate some css to put a red border around the fields.
Local storage might not be a good idea for such sensitive data but if you can get away with the simplicity it's lovely.
Comment by regnull 1 hour ago
I don't want to be that guy, but the title is misleading. The number of users completing the form doubled.
Comment by yawaramin 3 minutes ago
Ie customers of the utility company were completing the form, not random users from the internet.
Comment by qsort 2 hours ago
I have done exactly that on a project that was under similar constraints. The UI models live in .tsx files and the browser gets pure HTML with zero JS by default.
Comment by malteg 2 hours ago
why not take the html5 standard (see https://html.spec.whatwg.org/ ) and if needed (dont think so for these use cases... "for clients ranging from energy companies to political parties") htmx or alpinejs ...
Comment by ernsheong 1 hour ago
Comment by ElijahLynn 1 hour ago
Comment by brianwmunz 2 hours ago
Comment by kijin 2 hours ago
Comment by etaioinshrdlu 1 hour ago
Comment by skylovescoffee 2 hours ago
Comment by oybng 2 hours ago
Comment by oulipo2 2 hours ago
Comment by yawaramin 2 minutes ago
Comment by TZubiri 31 minutes ago
>The PSP’s web browser is - charitably - pathetic. It is slow, frequently runs out of memory, and can only open 3 tabs at a time.
Alluring, an annoying property of private software development is that making websites and software in general inaccessible to lower end hardware is actually a positive effect, as it filters out 'undesirable' lower-income prospects.
That, along with pressure to produce fast, without much concern for quality (with notable privileged exceptions of luxury software like Apple or 1B+ user software like Google), as well as a disregard for sourcing "I don't care if you do it yourself, or npm install software from effectively unpaid volunteers", ends up in a state of software lacking craftmanship, software that one is not proud of to work in.
Comment by hit8run 36 minutes ago
Comment by tgtweak 2 hours ago
Comment by bschmidt500 2 hours ago
Comment by romanovcode 3 hours ago
Comment by rafram 2 hours ago
Comment by conductr 2 hours ago
Comment by yakshaving_jgt 2 hours ago
Oh yeah? Which?