Hacker News new | ask | show | jobs
by Woden501 1485 days ago
I imagine that many of these aren't common ones to run into with a team that comes from many languages other than Python or that has people with enough experience to know that realize these kids of unclear, apparently inconsistent coding practices are not a good idea in code you want to be maintainable a year or more from now. The glance I took at a few of them shows me the smack of syntatic sugar that is all aesthetics without any real performance benefit thus provide no real benefit beyond maybe saving a few keystrokes. Keystrokes are cheap, days spent by a junior dev trying to find a bug in a pile of syntatic sugar filled Python is not.
1 comments

Mutable default arguments is the one I see most likely to come up regularly, it's gotten us a few times: https://github.com/satwikkansal/wtfpython#-beware-of-default...