3 ms·
"Unpythonic" must be something positive. Whenever someone uses that word, I like the code or the application in question. "Pythonic" seems to mean using magic
by 291289812 10y ago
"Unpythonic" must be something positive. Whenever someone uses that word, I like the code or the application in question.
"Pythonic" seems to mean using magic until an application works in 99% of the cases, satisfies some superficial criteria of readability to those intimately familiar with it and is utterly un-debuggable for those who aren't.
- orf 10y ago> Whenever someone uses that word, I like the code or the application in question. Then either they are not describing something unpythonic or you can't visualize how better the code would look if it was pythonic. > "Pythonic" seems to mean using magic until an application works in 99% of the cases, satisfies some superficial criteria of readability to those intimately familiar with it and is utterly un-debuggable for those who aren't. Not at all, it's usually exactly the opposite. Open a python shell and type "import this", if Python code satisfies a large enough number of those then it's Pythonic. The first six pretty much sum it up: > Beautiful is better than ugly. > Explicit is better than implicit. > Simple is better than complex. > Complex is better than complicated. > Flat is better than nested. > Sparse is better than dense. Words to live by. They all help improve debugging and readability.
- 9912121qwq 10y agoHardly anyone writes code like that in the Python world. It's all about features and gross hacks.