okzgn

Joined 4 months ago

Karma
76
Submissions
64
Member since
Jun 23
Self-taught Applied AI, Platform & Software Engineer.

Open to feedback and contributors: <https://okzgn.com>

Built several open source projects (Turbo Server, Estructura, DX Server): <https://github.com/okzgn>.

View on Hacker News

Recent submissions

Comment · 6 days ago
Comment · 2 months ago
Of course, that's why I wrote the article. There are many surprisingly good and simple things you can do with JS to avoid 100KB+ of frameworks.
Comment · 2 months ago
The Web 1.0 hosting looks like a 2000s website, but surprisingly, it includes 100MB of free static hosting if you subscribe to their service (that's what it says on the page).
Comment · 2 months ago
Comment · 2 months ago
Thanks for the background context, very interesting and realistic. Yes, of course it also has read/write access, though I always make sure there’s no interference of that kind. It has only happened to me once, where a binary I hosted on Pages didn't work when downloaded with wget (though that happened several years ago).
Comment · 2 months ago
Looking at the code and the website, you can tell it was hand-coded: the HTML, CSS, and even the JS (few people use DOMNode.style.display = 'none/block' these days, and I doubt an AI would suggest doing that). An impressive leading by example.
Comment · 2 months ago
An alternative: <meta http-equiv="Content-Security-Policy" content="script-src 'self' https://only-scripts-allowed-from-here.com">

This makes the client only load self-hosted scripts, or scripts only from the specified origins, among the other directives CSP allows (e.g. restricting styles, images, frames, etc.): https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton