Hacker News new | ask | show | jobs
by CatsoCatsoCatso 3632 days ago
I loved it until I hit save and saw the monster of a URL it returned.

These URLs aren't something I'd be able to quickly tap in on another device to save messing about with accounts & logins. If the URLs became short and/or pronounceable I'd use this service daily.

1 comments

That was my main concern when creating it, that link length would be a turn-off. It's understandable and I am considering shortening the hash in the next iteration.

The idea is that the link is actually a sha224 hash of the content itself. This serves two purposes, the first that the content is verifiable and de-duplicated by default, i.e. posting the same content will not create another entry.

This also has the added benefit that it's very cache-able. Since content addressed by a unique hash/link never changes by design, it can be cached forever (popping something like cloudflare in front makes it very economical to run).

Can't you make an id in the database that translates to the hash? Then you can generate short URL's.