Slugs and record IDs in web apps
Hi Tomas, positive feedback like this is really appreciated. Great you found the tutorial easy to follow.
The main use for slugs for database records that I have seen is for articles, such as on Medium. You often see websites combine slugs with some kind of id or hash, so that the record is stored against the id, but a user can also visit the url that provides more semantic meaning for humans to read.
For example, if you go to the url https://medium.com/p/67c631475a94
…it will redirect you to the url that includes the descriptive slug: