home.social

#zenofpython — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #zenofpython, aggregated by home.social.

  1. as a fan of @pythonbytes, @realpython, and @talkpython - i especially enjoyed this podclash. Some very reasonable observations on cloud, microservices, data protection, web analytics and more - this show felt quite the #zenofpython realpython.com/podcasts/rpp/27

  2. as a fan of @pythonbytes, @realpython, and @talkpython - i especially enjoyed this podclash. Some very reasonable observations on cloud, microservices, data protection, web analytics and more - this show felt quite the #zenofpython realpython.com/podcasts/rpp/27

  3. as a fan of @pythonbytes, @realpython, and @talkpython - i especially enjoyed this podclash. Some very reasonable observations on cloud, microservices, data protection, web analytics and more - this show felt quite the #zenofpython realpython.com/podcasts/rpp/27

  4. as a fan of @pythonbytes, @realpython, and @talkpython - i especially enjoyed this podclash. Some very reasonable observations on cloud, microservices, data protection, web analytics and more - this show felt quite the #zenofpython realpython.com/podcasts/rpp/27

  5. as a fan of @pythonbytes, @realpython, and @talkpython - i especially enjoyed this podclash. Some very reasonable observations on cloud, microservices, data protection, web analytics and more - this show felt quite the #zenofpython realpython.com/podcasts/rpp/27

  6. @yantor3d

    When people have pushed that around me, I show them the Zen of Python. It's important enough that it's the climactic line.

    > Namespaces are one honking great idea -- let's do more of those!

    `from x import y` throws one of Python's greatest features in the trash, and mashes everything into a single namespace, with all the opportunities for collisions, accidental overwrites, thinkos, and other problems.

    Don't do it.

    #python #namespace #namespaces #ZenOfPython #zen #import

  7. @yantor3d

    When people have pushed that around me, I show them the Zen of Python. It's important enough that it's the climactic line.

    > Namespaces are one honking great idea -- let's do more of those!

    `from x import y` throws one of Python's greatest features in the trash, and mashes everything into a single namespace, with all the opportunities for collisions, accidental overwrites, thinkos, and other problems.

    Don't do it.

    #python #namespace #namespaces #ZenOfPython #zen #import

  8. @yantor3d

    When people have pushed that around me, I show them the Zen of Python. It's important enough that it's the climactic line.

    > Namespaces are one honking great idea -- let's do more of those!

    `from x import y` throws one of Python's greatest features in the trash, and mashes everything into a single namespace, with all the opportunities for collisions, accidental overwrites, thinkos, and other problems.

    Don't do it.

    #python #namespace #namespaces #ZenOfPython #zen #import

  9. @yantor3d

    When people have pushed that around me, I show them the Zen of Python. It's important enough that it's the climactic line.

    > Namespaces are one honking great idea -- let's do more of those!

    `from x import y` throws one of Python's greatest features in the trash, and mashes everything into a single namespace, with all the opportunities for collisions, accidental overwrites, thinkos, and other problems.

    Don't do it.

    #python #namespace #namespaces #ZenOfPython #zen #import

  10. @yantor3d

    When people have pushed that around me, I show them the Zen of Python. It's important enough that it's the climactic line.

    > Namespaces are one honking great idea -- let's do more of those!

    `from x import y` throws one of Python's greatest features in the trash, and mashes everything into a single namespace, with all the opportunities for collisions, accidental overwrites, thinkos, and other problems.

    Don't do it.

    #python #namespace #namespaces #ZenOfPython #zen #import

  11. Unlock the secrets of Pythonic programming! Dive into the Zen of Python and learn how to write cleaner, more efficient code. From simplicity to readability, discover the principles that make Python unique. #Python #CodingTips #ZenOfPython

    teguhteja.id/the-zen-of-python

  12. Unlock the secrets of Pythonic programming! Dive into the Zen of Python and learn how to write cleaner, more efficient code. From simplicity to readability, discover the principles that make Python unique. #Python #CodingTips #ZenOfPython

    teguhteja.id/the-zen-of-python

  13. Unlock the secrets of Pythonic programming! Dive into the Zen of Python and learn how to write cleaner, more efficient code. From simplicity to readability, discover the principles that make Python unique. #Python #CodingTips #ZenOfPython

    teguhteja.id/the-zen-of-python

  14. Unlock the secrets of Pythonic programming! Dive into the Zen of Python and learn how to write cleaner, more efficient code. From simplicity to readability, discover the principles that make Python unique. #Python #CodingTips #ZenOfPython

    teguhteja.id/the-zen-of-python

  15. Unlock the secrets of Pythonic programming! Dive into the Zen of Python and learn how to write cleaner, more efficient code. From simplicity to readability, discover the principles that make Python unique. #Python #CodingTips #ZenOfPython

    teguhteja.id/the-zen-of-python

  16. Namespaces are one #honking great idea – let's do more of those! (t p) #ZenOfPython

  17. Just found myself considering when/whether to work on a particular blog post that’s been bobbing about in my brain, and I answered myself with “Now is better than never. Although never is often better than *right* now.”

    I have been assimilated.

    #Python #ZenOfPython

  18. Just found myself considering when/whether to work on a particular blog post that’s been bobbing about in my brain, and I answered myself with “Now is better than never. Although never is often better than *right* now.”

    I have been assimilated.

    #Python #ZenOfPython

  19. Just found myself considering when/whether to work on a particular blog post that’s been bobbing about in my brain, and I answered myself with “Now is better than never. Although never is often better than *right* now.”

    I have been assimilated.

  20. Just found myself considering when/whether to work on a particular blog post that’s been bobbing about in my brain, and I answered myself with “Now is better than never. Although never is often better than *right* now.”

    I have been assimilated.

    #Python #ZenOfPython

  21. Just found myself considering when/whether to work on a particular blog post that’s been bobbing about in my brain, and I answered myself with “Now is better than never. Although never is often better than *right* now.”

    I have been assimilated.

    #Python #ZenOfPython

  22. #Python query: should the string message inside Exception (sub)classes be considered part of the API / contract?

    On one hand, client code performing "stringly typed" comparisons to a caught exception's text, is a code smell. Changing to raise a subclass of the old exception, w/ a different message, "should" be backwards compatible.

    OTOH, esp when a codebase historically had too-broad exception classing, users have to #ZenOfPython rule 9 & do that string compare. Now they're broken. Ugh.

  23. #Python query: should the string message inside Exception (sub)classes be considered part of the API / contract?

    On one hand, client code performing "stringly typed" comparisons to a caught exception's text, is a code smell. Changing to raise a subclass of the old exception, w/ a different message, "should" be backwards compatible.

    OTOH, esp when a codebase historically had too-broad exception classing, users have to #ZenOfPython rule 9 & do that string compare. Now they're broken. Ugh.

  24. #Python query: should the string message inside Exception (sub)classes be considered part of the API / contract?

    On one hand, client code performing "stringly typed" comparisons to a caught exception's text, is a code smell. Changing to raise a subclass of the old exception, w/ a different message, "should" be backwards compatible.

    OTOH, esp when a codebase historically had too-broad exception classing, users have to #ZenOfPython rule 9 & do that string compare. Now they're broken. Ugh.

  25. #Python query: should the string message inside Exception (sub)classes be considered part of the API / contract?

    On one hand, client code performing "stringly typed" comparisons to a caught exception's text, is a code smell. Changing to raise a subclass of the old exception, w/ a different message, "should" be backwards compatible.

    OTOH, esp when a codebase historically had too-broad exception classing, users have to #ZenOfPython rule 9 & do that string compare. Now they're broken. Ugh.

  26. #Python query: should the string message inside Exception (sub)classes be considered part of the API / contract?

    On one hand, client code performing "stringly typed" comparisons to a caught exception's text, is a code smell. Changing to raise a subclass of the old exception, w/ a different message, "should" be backwards compatible.

    OTOH, esp when a codebase historically had too-broad exception classing, users have to #ZenOfPython rule 9 & do that string compare. Now they're broken. Ugh.

  27. Go Proverbs - go-proverbs.github.io/

    Like #ZenOfPython but for #Go.

    „Clear is better than clever“ and „A little copying saves a dependency“ are my favs. What are yours?

    #GoProverbs #Golang

  28. Go Proverbs - go-proverbs.github.io/

    Like #ZenOfPython but for #Go.

    „Clear is better than clever“ and „A little copying saves a dependency“ are my favs. What are yours?

    #GoProverbs #Golang

  29. Go Proverbs - go-proverbs.github.io/

    Like #ZenOfPython but for #Go.

    „Clear is better than clever“ and „A little copying saves a dependency“ are my favs. What are yours?

    #GoProverbs #Golang

  30. one_obvious = "more than one"

    print(f'There should be {one_obvious} way to do it.')

    #ZenOfPython