On 2024-04-04 09:24:45 +0200 (+0200), Christian Rohmann wrote:
On 03.04.24 7:55 PM, Jeremy Stanley wrote:
On 2024-04-03 19:06:25 +0200 (+0200), Sven Kieske wrote: [...]
bad coding practices like inscrutable variable names, no Types being used [...]
It's hard to say lack of typing is a "bad coding practice" for code that was written (as much as a decade) before Python standardized on any sort of type annotation scheme. Not getting into judgement on whether typing is a real improvement in the language, but don't fault an antique radio for using tubes instead of transistors.
There is a line between not judging something for what it is, some years old, written with the knowledge of the time, and not allowing for new developments and improvements to be leveraged because one holds the "we have always done it this way"-paradigm too high. [...]
Yes, my point was that it was not "bad coding practice" when some of the code was written (whether or not it is now is debatable hence the discussion), it was in fact the only possible coding practice at the time. Accusing people for not writing to standards that did not exist or were changing too rapidly to follow is going to quickly alienate many of those who you hope to win over with your arguments. The status quo wins by default, always, and it is incumbent on those proposing change to make a compelling case for any needed investment on the part of others. Appeals to nebulous authority ("bad" by whose definition? how do you measure that empirically?) make for a weak argument. The points you want to make are best supported with evidence, not anecdote. Judgemental phrases like "bad coding practice" are doing everyone who supports this change a disservice by unnecessarily polarizing the discussion and driving some participants into defensive postures. Sticking to facts, rather than opinions, will help you make faster progress with the rest of the community. -- Jeremy Stanley