HNHacker News
TopNewBestAskShowJobs

grugdev42

146 karma · joined December 15, 2025

submissionscomments
grugdev42··on Passing of Joe Mancuso
My condolences.

Reminds me that life is short. We should all be thankful and make the most of what we have.

grugdev42··on enclose.horse
Love this! I feel like this would get a lot of traction as a mobile app. It's a perfect "I've got five minutes free" game.

Doesn't feel outrageously difficult to put inside a webview?

grugdev42··on I built two dozen single-file HTML tools that run offline and need no back end
Sounds neat, I like the concept. :)

How is persistent storage handled? Do users need to be made aware that their data in local storage might disappear one day if the OS runs low on disk space?

grugdev42··on Noclip.website – A digital museum of video game levels
Wow, what a throwback!

Interesting to see the speed at which levels load.

The old N64 levels are almost instant, and still look amazing.

grugdev42··on Please just try HTMX
Ultimately the complexity does have to live somewhere.

The idea that HTMX removes all the complexity is false. However it does remove some of it, and moves the rest onto the backend.

I find the backend easier to work with, so that's a win for me.

And a batteries included framework (like Laravel or Django) makes HTMX even more appealing. They already have everything you need! :)

grugdev42··on I got hacked: My Hetzner server started mining Monero
Roughly 20 years ago, PHP sites were getting hacked everywhere.

Now, JS sites everywhere are getting hacked.

JS has turned into the very thing it strived to replace.

It's good to see developers haven't changed. ;)

grugdev42··on Avoid UUID Version 4 Primary Keys in Postgres
Exactly
grugdev42··on Avoid UUID Version 4 Primary Keys in Postgres
A much simpler solution is to keep your tables as they are (with an integer primary key), but add a non sequential public identifier too.

id => 123, public_id => 202cb962ac59075b964b07152d234b70

There are many ways to generate the public_id. A simple MD5 with a salt works quite well for extremely low effort.

Add a unique constraint on that column (which also indexes it), and you'll be safe and performant for hundreds of millions of rows!

Why do we developers like to overcomplicate things? ;)

← PreviousPage 3 of 3