3 ms·
You can write the basics of that sort of thing from start to finish in half a day - easy stuff. You need: 1) Database table to store the "codes" - two "main" c
by ScottWhigham 18y ago
You can write the basics of that sort of thing from start to finish in half a day - easy stuff. You need:
1) Database table to store the "codes" - two "main" columns: Code, DestinationUrl
2) Random code generator to generate the "Code"
That's really the gist of it.
- MoeDrippins 18y agoExactly. The "win" tinyurl.com (etc.) was that someone had the foresight to see the need at all and do it, not that it was hard to do. Amazon got patents on less.
- dagobart 18y agoWasn't it services like learn.to, beam.to and similar that came first? With the intend to have freely pickable shorthand URLs, where the shortness of them was just a byproduct? I'm not sure of this, but iirc the learn.to/beam.to etc services were around in the early web already, mid-90s, while tinyurl and friends came later.
- nimbix 18y agoThose services were different because they were meant to provide an alternative URL for your website, not someone else's. Also, they required you to go through a signup process and I remember some of them displaying ads. And of course, there was no Twitter back in those days to create an artificial need for short URLs.
- dagobart 18y agoYepp, I made that experience too. But to work out the details took inexpectedly long.