Skip to content
Snippets Groups Projects
Commit 9962d673 authored by Brandon Rodriguez's avatar Brandon Rodriguez
Browse files

Add missing reference for Python "inner classes"

parent 67f5f70d
Branches
No related merge requests found
......@@ -8,6 +8,17 @@ All references to external logic. Includes anything from stack overflow links to
## New References
References new to this project.
### Nested Classes
I felt like the 3 "functions" from our book Algorithm seemed complicated enough to each be separate entities on their
own. Rather than trying to cram all the logic into one large class, I decided to look into splitting each function into
it's own class in an attempt to compartmentalize logic.
Inspiration came from how Django handles "model query managers" with the "models.objects.<query>" syntax.
References for how nested classes work are:
* <https://stackoverflow.com/questions/719705/what-is-the-purpose-of-pythons-inner-classes>
* <https://www.datacamp.com/community/tutorials/inner-classes-python>
### Class __call__ Function
Used to call a class instance as if it were a function.
* <https://stackoverflow.com/questions/9663562/what-is-the-difference-between-init-and-call>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment