4 ms·
I’m not an expert on Python, but I read ‘Pythonic’ as ‘idiomatic for Python’. All languages have ways of doing things that fit the language well, or are recomme
by vintagedave 3y ago
I’m not an expert on Python, but I read ‘Pythonic’ as ‘idiomatic for Python’. All languages have ways of doing things that fit the language well, or are recommended. A programming language is incredibly flexible and there are many ways of doing anything, but which are safest, clearest while concise, use the unique features, are performant, or show good architecture? Patterns that overlaps all those become language idioms.
So it’s not a cult, more just doing it the way that best fits.
I fully agree re the _ prefix, by the way. As I’ve been learning Python the lack of some features other languages have for clean code has bothered me (even forward declarations which, so far as I know, don’t exist.) But I view it as something to learn. It didn’t take long before I read _ as ‘private’.