February 2020
Intermediate to advanced
404 pages
8h 42m
English
Let's code the URL-shortening service to explain all the concepts we discussed in the preceding section. We need a few basics before writing an API for our service. First, we need to design a package that implements the Base62 algorithm with encoding/decoding functions. The URL-shortening technique needs the Base62 algorithm to convert a long URL to a short one, and vice versa. After designing the package, we'll write an example to show how this encoding works.
Read now
Unlock full access