Topics /

Web & Frontend

The most popular blog posts about web & frontend on Hacker News. 306 posts.

2021
125

My Custom CSS Reset

I have a set of baseline CSS styles that come with me from project to project. In the past, I'd use a typical CSS reset, but times have changed, and I believe I have a better set of global styles!

129

Bad TypeScript Habits

TypeScript and JavaScript have steadily evolved over the last years, and some of the habits we built over the last decades have become obsolete. Some might never have been meaningful. Here's a list of 10 habits that we all should break.

131

Why Prefetch Is Broken

When coding a webpage, sometimes you know something is very likely to be needed, even if it's not needed yet. You can give the browser a hint: <link rel=prefetch href=url> The browser will take a note, and then when it doesn't have anything more important to do it might request url. Later on, if it does turn out…

133

Why Web3?

Over the last month, there has been a ton of debate and conversation about web2 vs web3 with many leading voices raising doubts about web3. Debate and doubt are healthy. And web3 enthusiasts, particularly on Twitter, remind me of missionaries trying to recruit the unwashed to their belief system. Frankly, it is all…

138

How Graphviz thinks the USA is laid out

25 recent entries The horn of the Robert Smalls A difficulty in race-switching the Dukes of Hazzard On futile explanations Richard Blair Race-switching The Dukes of Hazzard Greek plural Erbaut Improved English-language month names I fix a thirty-year-old mistake Minced oaths? On the monobosom Partly about pie More…

140

js;dr = JavaScript required; Didn’t Read.

js;dr = JavaScript required; Didn’t Read. Pages that are empty without JS: dead to history (archive-org), unreliable for search results (despite any search engine claims of JS support, check it yourself), and thus ignorable. No need to waste time reading or responding. Also known as, if it’s not curlable, it’s not on…

142

Starting a TypeScript Project in 2021

This is a guide for starting a TypeScript project in 2021 with modern tooling. TypeScript 4 Optionally esbuild to bundle for browsers (and Node.js) Linting with typescript-eslint (tslint is deprecated) Testing with Jest (and ts-jest) Publishing a package to npm Continuous integration (GitHub Actions / GitLab CI)…

147

SVG: The Good, the Bad and the Ugly

SVG, short for <em>“scalable vector graphics”</em> is a format for, well, scalable vector graphics. In this article I summarize my opinion of the format, what its problems are and suggest what could be done to improve things.