Live data from Hacker News

Building an HTML-first site doubled our users overnight

mohkohn.co.uk

511–520 of 605 posts

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

#513
post #351
post #180

Earlier quoted context omitted.

By this point people don't appear to have any real clue how to write HTML anymore. Writing semantic HTML isn't significantly harder than say writing Markdown. You copy some HTMl skeleton and you literally just stack your elements into the body. I managed to do that as a 13 year old on MySpace without any deep instruction. Sure you have to close elements as well so the syntax is slightly harder than markdown, but that…

> writing straight html and css sucked. building reddit css themes sucked

Yes you used HTML to design a website in a way that was the opposite of semantic. Semantic HTML is about just writing your content and then using CSS and js for everything else (as far as possible).

Also: the meaning of the word semantic is that the used elements give you context about the contents. So if you place text in an that tells you that this is additional information as opposed to the stuff in for example.

If you use a hundred nested divs, there is probably a better way to do it.

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

#514

Earlier quoted context omitted.

In the olden days, people wouldn't take office jobs or factory job necessarily because they thought: "Yes! That's my passion! That's exactly what I've always wanted to do." Passion isn't your first and foremost thought when you have a family to feed. A few decades ago, IT jobs were for the most part done only by people who were in it for the kick they got out of working with computers. They already hacked at their da…

> If you have the hacker spirit, you don't enshitify because you simply can't. Not me, if they want shit I give them shit. I used to care 30 years ago, but they beat it out of me. Now its all for the money, HODLing to retirement.

Beaten by the system. Thanks for adding that, it's not uncommon. I should have added that to my post above.

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

#515
post #180

Earlier quoted context omitted.

By this point people don't appear to have any real clue how to write HTML anymore. Writing semantic HTML isn't significantly harder than say writing Markdown. You copy some HTMl skeleton and you literally just stack your elements into the body. I managed to do that as a 13 year old on MySpace without any deep instruction. Sure you have to close elements as well so the syntax is slightly harder than markdown, but that…

> (and to this day: fails) The ` ` tag has gotten very close. Right now you still need JS (optionally wrapped as a Web Component) to load a ` ` from an outside HTML file (at which case, yeah, it's so easy to just use a JS-based HTML renderer instead of a template today), but discussions are ongoing about closing that loop for simpler "JS-free Web Components". I don't know when that will be accepted into the web platf…

I used SSIs to include menus and footers back in the day.

If you wanted to reduce server load you could “compile” those includes at publish time.

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

#518
post #4

Earlier quoted context omitted.

The full context of that quote makes it clear that it's meant more as a wry joke: > 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 thes…

The opposite is why I'd never be a good web developer. I grew up messing around with PHP and if I spent the time to learn the modern stack, I'd constantly be thinking it's stupid.

I'm in the same boat as you. Today I generally use Laravel for new projects.

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

#519
post #129

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…

> 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. 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…

Looks like "Section 2.8 to give Cloudflare the means to preserve the original intent of the CDN: limiting use of the CDN to webpages." is gone.

https://blog.cloudflare.com/updated-tos/

interesting, it seems now i can host stuff directly on r2 and put CF in front and serve images, video and other files!

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

#520
This reminds me of the story of the "Feather" project at YouTube where they improved a lot the page weight and the average page latency went higher just because they were actually seeing a lot more traffic from places with slow Internet.

https://blog.chriszacharias.com/page-weight-matters

Post reply on HN