New

The latest blog posts to take off on Hacker News. 3,821 posts.

Any topic
2022
1803

Go generics are not bad

When programming, we often need to write 'generic' functions where the exact data type is not important. For example, you might want to write a simple function that sums up numbers. Go lacked this notion until recently, but it was recently added (as of version 1.18). So I took it out for a spin. In … Continue reading…

1812

Body Margin 8px

All browsers add an 8px margin on the body element – it’s part of the w3c-recommended default stylesheet which browsers generally use as a starting point for their own ‘user agent’ styles. But why 8px ? Where does that come from?

1828

Selfhosting on Localhost

As a software engineer with a bit of job-induced paranoia, I love the idea of escaping the claws of big tech via self-hosting. In recent years, a plethora of amazing free and open source projects have emerged, providing alternatives to everything from Dropbox and iTunes to Android Home. However, I don’t want to manage…