News for hackers. Stuff that matters.
Re:Google Python Style Guide by gorgoiler on Sunday February 12, 2023 @06:20AM (#34761975)
For me, DI is where this happens at the public interface to things. I’m quite happy with subprocess.Popen’s keyword argument salad because they are relatively ergonomic and make good sense.

When that kind of “handy defaults for ya!” programming happens to a function inside a package… that has four call sites… all of which were added by the same team of three people… just refactor your stuff, get functional, and say explicitly what you actually need.

There are no comments on this comment yet.