Best of 2024

The blog posts Hacker News loved most in 2024. 437 posts.

Web & Frontend
69

How to center a div in CSS

Back in the day, centering an element was one of the trickiest things in CSS. As the language has evolved, we’ve been given lots of new tools we can use… But how do we pick the best option? When do we use Flexbox, or CSS Grid, or something else? Let's dig into it.

70

Why Gumroad Didn't Choose Htmx

In this essay, Sahil Lavingia, CEO of Gumroad, explains why the company decided against using htmx for its new project, Helper, in favor of React and Next.js. He shares the challenges faced with htmx, including issues with developer experience, user experience limitations, scalability, and AI tool support. While…

74

WP21

It seems like just yesterday WordPress was becoming a teenager, and in a blink of the eye it’s now old enough to drink! 21 years since Mike and I did the first release of WordPress, forking Michel’…

75

HTTP: , FTP:, and Dict:?

I went for a spelunk through an ancient codebase a few weeks ago which contained a curious regex that I just couldn't grok. Copied to 📋⧉ {<((https?|ftp|dict|tel):[^\'">\s]+)>}i I'm familiar with HTTP and FTP. I worked in the mobile industry, so knew that tel:+44... could be used to launch a dialer. But DICT?!?!?! It…

83

“Attention assault” on Fandom

Stop Using Fandom 2024-06-16 fandom is a wiki website (allegedly) if you are unfortunate enough to browse a fandom wiki without an ad blocker, you will experience what i like to call "attention assault" upon opening a fandom page (for me, it was the hollow knight wiki), you will note the very subtle aroma of a 1/3…