UWPCE-PythonCert / PythonCertDevel

Development Repo for the Certificate Program
https://uwpce-pythoncert.github.io/PythonCertDevel/index.html
Other
7 stars 15 forks source link

dependency injection example #48

Closed PythonCHB closed 6 years ago

PythonCHB commented 6 years ago

In the multiple inheritance module, it says:

""" Super() is the right way to do dependency injection.

https://en.wikipedia.org/wiki/Dependency_injection """

This is a pretty abstract concept, particularly for newbies -- an example would be really helpful.

Or just leave it out, and focus more on the mechanics, which is what they need now.

PythonCHB commented 6 years ago

leave it out.....

PythonCHB commented 6 years ago

I commented that bit out in the notes in MultipleInheritance.rst Maybe want to add it back in when if/when we update.

PythonCHB commented 6 years ago

we don't need this -- just extra complication at this point.