3 ms·
This is where Python's "consenting adults" idea comes in. Why the hell should someone change a vector "mid-flight" - that is a huge code smell and should be de
by lifeisstillgood 5y ago
This is where Python's "consenting adults" idea comes in. Why the hell should someone change a vector "mid-flight" - that is a huge code smell and should be dealt with in the review / design / discussion / pub.
But there are reasons and rationales to "lockdown" the code (beyond not trusting fellow devs!) and at that point I suggest that any mutable state language cannot be properly locked down - so use a functional language where its easier to reason about.
Usually (IMO) private classes etc are just trying to make it easier to reason about state changes - when its probably best to dump the whole mess.
- deleted 5y ago[deleted]
- hogrider 5y agoIn most situations, no you can not trust fellow devs to do the right thing and if you push for those reviews then you're the asshole and lose the office politics game. So yeah, I'd rather guardrail people into good behavior.
- lifeisstillgood 5y agoCan I clarify? You get a review that just looks wrong and you become the asshole? What kind of reviews are these ?
- lifeisstillgood 5y agoplease ignore the above. I am sure reviews can become political arenas