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 https://realpython.com/podcasts/rpp/272/
Episode #272: Michael Kennedy: Managing Your Own Python Infrastructure – The Real Python Podcast

How do you deploy your Python application without getting locked into an expensive cloud-based service? This week on the show, Michael Kennedy from the Talk Python podcast returns to discuss his new book, "Talk Python in Production."

I took the liberty of adding @kevinrenskers "Django views versus the Zen of Python" to the https://github.com/filiplajszczak/awesome-zen-of-python list #django #python #zenofpython

@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

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

https://teguhteja.id/the-zen-of-python-guide-pythonic-programming/

The Zen of Python: A Guide to Pythonic Programming

Zen of Python: key principles for writing clean, efficient Pythonic code. Learn to apply this philosophy in your projects.

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

Are you following the Zen of Python when it comes to best practices for environment settings and versioning? 🧘

Learn the tools and techniques for “Bootstrapping your Local Python Environment.” 🎥 👉 https://loom.ly/48Al9vk

#PyConUS #ZenofPython #PythonDevelopment

Six Feet Up at PyCon 2022: Bootstrapping Computers

Six Feet Up CTO and AWS Community Hero, Calvin Hendryx-Parker, gave his talk “Bootstrapping your Local Python Environment” at PyCon 2022.

Six Feet Up

New article:

⚠️Why you should avoid import * in Python 🐍
https://pybit.es/articles/why-you-should-avoid-import-in-python/

Covering:
- Why modules are great and namespacing explained
- Why import * is a problem
- A practical example where a function gets overriden
- The recommended way to do imports
- What PEP8 has to say about this
- Protection workaround, use __all__ to define your module's public interface

#python #pythonprogramming #modules #encapsulation #namespacing #zenofpython #bestpractices #pitfalls #imports #dundermethods

⚠️Why You Should Avoid Import * In Python 🐍 - PyBites

However, not all ways of using modules are equally beneficial. In this article, we will discuss why using import * can be more problematic than it's worth,

PyBites

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

#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.

Go Proverbs - https://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

Go Proverbs