Live data from Hacker News

Building an HTML-first site doubled our users overnight

mohkohn.co.uk

411–420 of 605 posts

Re: Building an HTML-first site doubled our users overnight

#411
post #244

Earlier quoted context omitted.

They don't know what a megabyte is

+1. 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.

"Does it take longer to upload 10,000 photos than to upload 1 photo?"

If a 40-year-old can not answer that question, then they are in fact - dumb.

Re: Building an HTML-first site doubled our users overnight

#412
post #165

As a non-web dev, I have a question about this part: > 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 components for the form,…

The short and sad answer is that most people that work in web development do not understand how the web works or how web apps work.

Re: Building an HTML-first site doubled our users overnight

#413
post #198

Earlier quoted context omitted.

Starting a few years ago, I realized some junior and medior engineers never once considered the possibility of building a website (app, experience, etc.) in anything other than a heavy SPA framework. But they're not stupid people! If you directly asked "Can you build a website without React?" they know the answer is obviously "Yes." However, if you asked them to build a new website, they would unthinkingly start a ne…

You are far too empathetic to them. They should not hold the jobs they have. 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.

I just had one of these people, a contractor working for a state government, argue vocally with me in a meeting stating that "500 JavaScript requests is not a problem" for a single page. Un-cached, of course, despite there being a CDN in front of the site.

You can't win against cargo-cult coders because they just assume you're from a different, competing cult.

They have no concept of engineering or science, they have never encountered it.

Re: Building an HTML-first site doubled our users overnight

#414
post #165

As a non-web dev, I have a question about this part: > 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 components for the form,…

[dead]

Re: Building an HTML-first site doubled our users overnight

#415

Earlier quoted context omitted.

You are far too empathetic to them. They should not hold the jobs they have. 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.

I had a contract once to save a government website that had serious performance issues, it was so unusable that people preferred to go in-person and wait 4h in a queue rather than try to fill the forms online. The frontend was in React because the company that got the contract initially used React for everything. The frontend was a 5MB SPA, but it could've been (mostly static) HTML files with some interactivity for f…

> Sometimes developers care, but the people in charge don't, and in government environments every change must go through them first.

To be fair, the same thing happens in private companies. How many UI changes have people gone through that didn't actually make anything better and just made everybody relearn everything? We would have been better of scrapping many of those and let people continue to use what's already familiar, but that too would have to involve someone admitting failure, which is a hard thing to do for some people.

Re: Building an HTML-first site doubled our users overnight

#416

Earlier quoted context omitted.

You are far too empathetic to them. They should not hold the jobs they have. 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.

I had a contract once to save a government website that had serious performance issues, it was so unusable that people preferred to go in-person and wait 4h in a queue rather than try to fill the forms online. The frontend was in React because the company that got the contract initially used React for everything. The frontend was a 5MB SPA, but it could've been (mostly static) HTML files with some interactivity for f…

I've used many a government website in the Navy, and they were almost invariably bad, but it had nothing to do with React per se.

A very slow website I can think of had something like 200 GET requests required to load the landing page, and it used Liferay with Material Design Bootstrap. That was closer to the "style at the time". React is the style of this time, but you can write very slow websites in anything, I'm convinced.

Re: Building an HTML-first site doubled our users overnight

#418

Most of my apps are now simply HTMX + Go + SQLite. 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…

have you considered Capacitor? it works pretty well for cross platform web development

Re: Building an HTML-first site doubled our users overnight

#419
post #198

Earlier quoted context omitted.

Starting a few years ago, I realized some junior and medior engineers never once considered the possibility of building a website (app, experience, etc.) in anything other than a heavy SPA framework. But they're not stupid people! If you directly asked "Can you build a website without React?" they know the answer is obviously "Yes." However, if you asked them to build a new website, they would unthinkingly start a ne…

You are far too empathetic to them. They should not hold the jobs they have. 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.

This is a leadership failure. People who want to do a good job always get fired for taking too long.

Re: Building an HTML-first site doubled our users overnight

#420
post #357

Earlier quoted context omitted.

If it's a government employee (as it should), it shouldn't be open to fraud and abuse, no. There should be a trail of what happened

Yes, there 'should' be a trail. And there's someone and a process to check that trail. And a process to find the issues, correctly so, and fix, and do all that on a timely basis, and reimburse the person for damages, ... PS: I have actually suffered through some of this, badly so, though in an unrelated setting. It comes back to which system is more robust/mistake-proof and more practically recoverable.

Sure, but that's how Governments worked for decades before widespread access to laptops / mobile phones...
Post reply on HN