summaryrefslogtreecommitdiff
path: root/lib/sew_stack/stitch_layers/mixins/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sew_stack/stitch_layers/mixins/README.md')
-rw-r--r--lib/sew_stack/stitch_layers/mixins/README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sew_stack/stitch_layers/mixins/README.md b/lib/sew_stack/stitch_layers/mixins/README.md
new file mode 100644
index 00000000..12b6504b
--- /dev/null
+++ b/lib/sew_stack/stitch_layers/mixins/README.md
@@ -0,0 +1,9 @@
+Functionality for StitchLayers is broken down into separate "mix-in" classes.
+This allows us to divide up the implementation so that we don't end up with
+one gigantic StitchLayer class. Individual StitchLayer subclasses can include
+just the functionality they need.
+
+Python multiple inheritance is cool, and as long as we include a `super().__init__()`
+call in every `__init__()` method we implement, we'll ensure that all mix-in
+classes' constructors get called. Skipping implementing the `__init__()` method in a
+mix-in class is also allowed.