#zenofpython

IB Teguh TMteguhteja
2024-08-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.

teguhteja.id/the-zen-of-python

शून्यताwigalois@dresden.network
2024-07-25

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

2024-01-30

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.” 🎥 👉 loom.ly/48Al9vk

#PyConUS #ZenofPython #PythonDevelopment

2023-08-15

New article:

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

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

2023-07-31

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

2023-04-07

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

2022-07-21

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

John :hacker_b:jboy@post.lurk.org
2022-05-23

one_obvious = "more than one"

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

#ZenOfPython

🐒 猿人NEARKEINOS@qiitadon.com
2018-01-18

@urahito_solution

> というかあれに仮に著作権が存
> 在したらと考えると
> qiitadon.com/web/statuses/9937

#ZenOfPython パブリック・ドメインらしいので大丈夫じゃないですかね?

en.wikipedia.org/wiki/Zen_of_P

ぜひ萌え要素も入れて薄い本で!(そっちが怒られる)

Cam_doc 🏳️‍🌈Natir@mastodon.xyz
2017-04-07

@Lomig Pardon désoler j'aurais du faire plus attention (faudrait il une instance mastondon pour les bretonnant ?). Pour moi le beurre doux n'existe pas c'est du beurre sans sel, je précise beurre salé car //explicite is better than implicite// #zenOfPython

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst