News for hackers. Stuff that matters.
Re:Tests aren’t enough: Case study after adding type hints t... by rightbyte on Monday October 18, 2021 @02:34PM (#28909462)
> ... grepable ...

This is so important.

It is also the reason why I like global variables. They are accused of making a spaghetti mess but ... in my experience the opposite is true.

Fancy patterns are way worse to reverse engineer than simple flat long functions accessing globals. Easy to debug too!

Re:Tests aren’t enough: Case study after adding type hints t... by mewpmewp2 on Tuesday October 19, 2021 @06:20AM (#28916609)
I agree with that. I despise all the DI things where I can't "goto" to the definition of the actual dependency that was injected, but only to the interface. So frustrating. It makes understanding what is going on so difficult for me.