Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Youtube as Example in Real World Examples #9

Closed
2 tasks done
nelsonic opened this issue Dec 11, 2018 · 7 comments
Closed
2 tasks done

Add Youtube as Example in Real World Examples #9

nelsonic opened this issue Dec 11, 2018 · 7 comments
Assignees
Labels
enhancement New feature or request please-test question Further information is requested starter T1h

Comments

@nelsonic
Copy link
Member

nelsonic commented Dec 11, 2018

@nelsonic nelsonic added enhancement New feature or request help wanted Extra attention is needed T1h starter labels Dec 11, 2018
@RobStallion RobStallion self-assigned this Dec 13, 2018
@RobStallion
Copy link
Member

The first ever youtube video

https://www.youtube.com/watch?v=jNQXAC9IVRw

Newer youtube video
https://www.youtube.com/watch?v=g5eGKw4TWbU

another 2018 video
https://www.youtube.com/watch?v=fYyDQBG_tYc

All videos seem to have similar urls. This leads me to believe that youtube never had an incrementing system for URLs like the example of instagram in the readme.

Appears that they do something more similar to this example in the readme (which makes sense as google also own youtube).

@RobStallion
Copy link
Member

@nelsonic given that the urls for youtube videos appear to be working in very similar way to the google shortener example, do you still want to add a Youtube example?

@RobStallion RobStallion added the question Further information is requested label Dec 13, 2018
@nelsonic
Copy link
Member Author

@RobStallion YT has an 11 character base58 string as ID.
The fact that they have always used an 11 char string is indicative that the YT founders were planning for "scale" from Day One. 💡
The reason I opened this issue was not because I thought that YT was "different" from Google URL shortener. On the contrary, the reason I want the YT example is that it's highly relevant to the 1.8Bn people who use YT every day, most of whom have shared a YT video URL and will be familiar with the IDs.
I'm happy to add the example.

@RobStallion
Copy link
Member

@nelsonic I'm happy to at it. That wasn't this issue at all sorry.

I didn't think about it from that point of view at all. That is a really good point and I'm happy to up write that up 👍

@RobStallion
Copy link
Member

RobStallion commented Dec 16, 2018

base58 uses all the upper and lower case letters in the alphabet (with the exception of O and I, capital versions of the letters o and i, and the lowercase version of the letter L) and the number 1-9.

Youtube does not appear to be using base 58
jNQXAC9IVRw <-- contains a capital i
fYyDQBG_tYc <- contains an underscore

However it is not using base64 either. It appears to be using the same character set as the google url shortener from the example

0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz

Can't be certain but it would make sense as youtube is owned by google

nelsonic added a commit that referenced this issue Jan 7, 2019
adds section about youtube to readme #9
@RobStallion
Copy link
Member

@nelsonic Can this issue be closed now?

@nelsonic
Copy link
Member Author

@RobStallion thanks again. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request please-test question Further information is requested starter T1h
Projects
None yet
Development

No branches or pull requests

3 participants