$30 off During Our Annual Pro Sale. View Details »

Pythonic Naming (PyCon AU 2015 Lightning Talk)

Pythonic Naming (PyCon AU 2015 Lightning Talk)

Python needs a PEP for package naming.

Amber Brown (HawkOwl)

August 02, 2015
Tweet

More Decks by Amber Brown (HawkOwl)

Other Decks in Programming

Transcript

  1. Pythonic Naming
    PyCon Australia, 2015

    View Slide

  2. Hello, I’m
    Amber Brown
    (HawkOwl)

    View Slide

  3. Twitter:
    @hawkieowl

    View Slide

  4. View Slide

  5. The biggest two problems
    in programming

    View Slide

  6. Cache invalidation

    View Slide

  7. Naming

    View Slide

  8. Off by one errors

    View Slide

  9. We need a PEP for
    Python names

    View Slide

  10. The regulation should be
    that the name should be:

    View Slide

  11. A common word
    (werkzeug is German, it counts)

    View Slide

  12. Easy to spell
    (parameeko? paramako?)

    View Slide

  13. Easy to pronounce

    (lol django???)

    View Slide

  14. A horrible pun.

    View Slide

  15. This is why Twisted is
    the best Python
    package on PyPI.

    View Slide

  16. View Slide

  17. the curses replacement:
    insults

    View Slide

  18. RPC framework:
    spread
    (made up of banana and jelly)

    View Slide

  19. The channel-esque package:
    Twisted Tubes

    View Slide

  20. live telnet/ssh debugger:
    manhole

    View Slide

  21. the Flask clone:
    Klein
    (a twisted flask is a klein bottle)

    View Slide

  22. the Django runner:
    Hendrix
    (a twisted Django Rinehart is Jimi Hendrix)

    View Slide

  23. dual-direction WebSockets:
    autobahn

    View Slide

  24. But some people are
    getting good on PyPI

    View Slide

  25. (not considering that the Cheeseshop
    itself is a Monty Python sketch)

    View Slide

  26. py2 x py3 compat:
    six

    View Slide

  27. internationalisation:
    babel

    View Slide

  28. process pooling:
    billiard

    View Slide

  29. Python interpreter written in
    Python:
    pypy

    View Slide

  30. SOAP client:
    suds

    View Slide

  31. ASPIRE TO THIS

    View Slide

  32. I expect better from
    you all!

    View Slide

  33. If you write a client for
    elasticsearch,
    don’t call it pyES

    View Slide

  34. don’t call it
    ‘elasticsearch’

    View Slide

  35. Call it
    ’stretchyadder’
    (or something idk)

    View Slide

  36. Make it amusing!

    View Slide

  37. Make it a play on words!
    (extra points for obscurity)

    View Slide

  38. Make it really easy to
    Google

    View Slide

  39. Because nobody else
    but a Pythonista would
    call their pride and joy
    such a dumb name

    View Slide

  40. Keep Python Weird

    View Slide