Best of 2024

The blog posts Hacker News loved most in 2024. 5,273 posts.

Any topic
642

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.

655

Care Doesn't Scale

I met a social worker whose job was to look after four orphaned children. She’d alternate with her coworkers spending 24 hours at a time living with the kids, effectively acting as their parent. The children, unsurprisingly, had a lot of trauma and so her job was certainly not an easy one, but she found it deeply…

656

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…