Best of 2024

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

Web & Frontend
42

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.

46

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

47

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…

53

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