News for hackers. Stuff that matters.
Re:Ask HN: Good Python codebases to read? by rtpg on Thursday July 16, 2015 @09:33PM (#9900893)
I really like the API of the framework, unfortunately some of the core elements suffer from being extremely stateful code

The "self.thing = bar" in one function that only gets used in some other function ( or even worse something only used in a companion class) pattern is super prevalent.

Might just be me but I think a lot of the older code suffers from massive locality problems that makes debugging framework bugs super tricky

Re:Ask HN: Good Python codebases to read? by rectangletangle on Friday July 17, 2015 @12:52AM (#9901310)
Honestly, I have to agree with you to an extent.

I think a lot of the issues involving overuse of state, are primarily related to using OO when a pure function would suffice. It's just too tempting to dynamically assign attributes to mutable instances.

To be fair, when Django is used properly it isn't usually an issue. Besides the queryset/model API is extremely nice, and at this point very polished.