base36!

Are you making any piece of software that receives an ID from user input and returns a {post, image, whatever}?
May I suggest: base 36?

Just look at this:
http://example.invalid/?a=1000000
http://example.invalid/?a=lfls

What looks better?
Thought so.

You can convert between bases easily in any language, so you have no excuse not to!
You don’t need to store the base36 value, accept it in URLs and convert it to base 10 for your database operations – then when displaying the URL to the end user convert from base to base 36.

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.