pydantic-i18n
pydantic-i18n is an extension to support an i18n for the pydantic error messages
Slide 5
Slide 5 text
pydantic-i18n
So what is it?
Slide 6
Slide 6 text
pydantic-i18n
To start to work with pydantic-i18n, you can just create a dictionary (or create any
needed translations storage and then convert it into dictionary) and pass to the
main PydanticI18n class.
Slide 7
Slide 7 text
pydantic-i18n
So what is it?
Slide 8
Slide 8 text
What does i18n mean?
i18n = internationalisation
Slide 9
Slide 9 text
Pydantic-i18n = internationalisation for pydantic
Why didn't you say?
Slide 10
Slide 10 text
Numeronyms
Have you read about k8s, a11y, i18n,
l10n, m17n, c14n and v12n - but no
idea what people are talking about?
Slide 11
Slide 11 text
Numeronyms
It's not because you're stupid -
it's because they're obtusely using
numeronyms!
Slide 12
Slide 12 text
Numeronyms
Numeronyms are a cryptographically
(c15y) secure way to compress long
words using a one-way hash, meaning
they cannot usually be decrypted.
Slide 13
Slide 13 text
Numeronyms
Kubernetes
Slide 14
Slide 14 text
Numeronyms
Kubernetes
Slide 15
Slide 15 text
Numeronyms
Kubernetes
-12345678-
Slide 16
Slide 16 text
Numeronyms
K 8 s
Slide 17
Slide 17 text
I wrote a numeronym decrypter in Python
$ python numeronyms.py -d i18n
intercrystallization
interdifferentiation
internationalization
institutionalization
Slide 18
Slide 18 text
Are you feeling lucky?
$ python numeronyms.py -d a11y --lucky
aboriginality
Slide 19
Slide 19 text
Want to turn a long word into a numeronym?
$ python numeronyms.py -e numeronym
n7m
Slide 20
Slide 20 text
Want to turn a short word into a numeronym?
$ python numeronyms.py -e test
t2t
Slide 21
Slide 21 text
Want to turn a shorter word into a numeronym?
$ python numeronyms.py -e bin
b1n
Slide 22
Slide 22 text
Want to turn an even shorter word into a numeronym?
$ python numeronyms.py -e ha
h0a
Slide 23
Slide 23 text
Want to turn an even shorter word into a numeronym?
$ python numeronyms.py -e x
x-1x
Slide 24
Slide 24 text
What are numeronymns? Even Wikipedia doesn't know
● 143 – I love you
● 187 – slang for "murder"
● 520 – I love you
● E15 – The Eyjaallajökull volcano in Iceland
● s5n – shorten
● h7k – hyperlink
● a16z – Andreessen Horowitz
● 64 – Tiananmen Square protests of 1989
● K8s – Kubernetes
● sk8r – Skater
● K9 – Canine
Slide 25
Slide 25 text
K3s? WTF?
We wanted an installation of Kubernetes that was half the size in terms of memory
footprint. Kubernetes is a 10-letter word stylized as K8s. So something half as big
as Kubernetes would be a 5-letter word stylized as K3s.
Slide 26
Slide 26 text
K3s? WTF?
We wanted an installation of Kubernetes that was half the size in terms of memory
footprint. Kubernetes is a 10-letter word stylized as K8s. So something half as big
as Kubernetes would be a 5-letter word stylized as K3s.
Slide 27
Slide 27 text
Numeronyms are obnoxious
Like with acronyms, don't assume people know what they mean! Expand them!