News for hackers. Stuff that matters.
Re:3 percent of Python codebases we checked had silently fai... by js2 on Wednesday February 16, 2022 @12:21PM (#30362710)
Given that this is a not uncommon mistake, despite the name, indicates that people make mistakes. They don't read. They're in a hurry. They see what they want to see.

The fix isn't to blame people for making mistakes. It's to figure out a design that doesn't allow this mistake to happen in the first place.

For example, the method could (today) require the second argument to be a keyword argument. This is also something a good linter should be able to warn on.

edit: rikatee and I wrote essentially the same reply at the same time. :-)

There are no comments on this comment yet.