Re:Python errors as values: Comparing useful patterns from R...
by VoodooJuJu on Thursday November 09, 2023 @12:16PM
(#38207817)
lol the most important thing about writing code is that it works, and works well enough that it puts shekels in my pocket. I'll start worrying about Pythonic code when my accountant does. Until then, we'll keep counting shekels.
[ Parent
| on HN ]
Re:Python errors as values: Comparing useful patterns from R...
by passivegains on Thursday November 09, 2023 @12:48PM
(#38208246)
yeah, this guy gets it. idiomatic-ness is based on p̵o̵p̵u̵l̵a̵r̵i̵t̵y̵ consensus and only indirectly by technical merit. if someone throws shade at code for being nonpythonic, the code probably isn't bad. if it was they'd have focused on that first.
on the other hand, if someone's writing non-pythonic python because pythonic code doesn't work well for their program, it might be a program they shouldn't be writing in python, which in my experience happens way more often than it should.