×
Copy
Open
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Pythonic Naming PyCon Australia, 2015
Slide 2
Slide 2 text
Hello, I’m Amber Brown (HawkOwl)
Slide 3
Slide 3 text
Twitter: @hawkieowl
Slide 4
Slide 4 text
No content
Slide 5
Slide 5 text
The biggest two problems in programming
Slide 6
Slide 6 text
Cache invalidation
Slide 7
Slide 7 text
Naming
Slide 8
Slide 8 text
Off by one errors
Slide 9
Slide 9 text
We need a PEP for Python names
Slide 10
Slide 10 text
The regulation should be that the name should be:
Slide 11
Slide 11 text
A common word (werkzeug is German, it counts)
Slide 12
Slide 12 text
Easy to spell (parameeko? paramako?)
Slide 13
Slide 13 text
Easy to pronounce (lol django???)
Slide 14
Slide 14 text
A horrible pun.
Slide 15
Slide 15 text
This is why Twisted is the best Python package on PyPI.
Slide 16
Slide 16 text
No content
Slide 17
Slide 17 text
the curses replacement: insults
Slide 18
Slide 18 text
RPC framework: spread (made up of banana and jelly)
Slide 19
Slide 19 text
The channel-esque package: Twisted Tubes
Slide 20
Slide 20 text
live telnet/ssh debugger: manhole
Slide 21
Slide 21 text
the Flask clone: Klein (a twisted flask is a klein bottle)
Slide 22
Slide 22 text
the Django runner: Hendrix (a twisted Django Rinehart is Jimi Hendrix)
Slide 23
Slide 23 text
dual-direction WebSockets: autobahn
Slide 24
Slide 24 text
But some people are getting good on PyPI
Slide 25
Slide 25 text
(not considering that the Cheeseshop itself is a Monty Python sketch)
Slide 26
Slide 26 text
py2 x py3 compat: six
Slide 27
Slide 27 text
internationalisation: babel
Slide 28
Slide 28 text
process pooling: billiard
Slide 29
Slide 29 text
Python interpreter written in Python: pypy
Slide 30
Slide 30 text
SOAP client: suds
Slide 31
Slide 31 text
ASPIRE TO THIS
Slide 32
Slide 32 text
I expect better from you all!
Slide 33
Slide 33 text
If you write a client for elasticsearch, don’t call it pyES
Slide 34
Slide 34 text
don’t call it ‘elasticsearch’
Slide 35
Slide 35 text
Call it ’stretchyadder’ (or something idk)
Slide 36
Slide 36 text
Make it amusing!
Slide 37
Slide 37 text
Make it a play on words! (extra points for obscurity)
Slide 38
Slide 38 text
Make it really easy to Google
Slide 39
Slide 39 text
Because nobody else but a Pythonista would call their pride and joy such a dumb name
Slide 40
Slide 40 text
Keep Python Weird