News for hackers. Stuff that matters.
Re:OO in Python is mostly pointless by knuthsat on Thursday January 28, 2021 @05:13AM (#25940170)
You can create an OO mess in Go and Rust that is equivalent to this too.

Dependency injection is a nice name for factory functions + dependency list + topological sort, but people still use it horribly, injecting dependencies everywhere, not writing functional and data-oriented composable code.

It's nice to learn about patterns but it's wrong to think about patterns as a solution.

Re:OO in Python is mostly pointless by throwaway894345 on Thursday January 28, 2021 @12:34PM (#25945352)
>> ...idiomatic Go or Rust

> You can create an OO mess in Go and Rust that is equivalent to this too.

To be quite clear, I qualified with idiomatic. I don't think you can create an OO mess with idiomatic Go or Rust, but then again, the whole point of this thread is that there's no clear consensus on what OO actually means, so what does "OO mess" mean.

Re:OO in Python is mostly pointless by knuthsat on Friday January 29, 2021 @04:12AM (#25955489)
Idiomatic says nothing about code design. Code design is far above what idiomatic means. You can still have dependencies where you shouldn't have them. Your services can still be designed without composability in mind.