|
| 1 | +# Recommendations for Simplifying Main Text Examples |
| 2 | + |
| 3 | +This report identifies opportunities to simplify examples in the main text by referencing comprehensive examples in the `book/80-examples/` section. |
| 4 | + |
| 5 | +## Executive Summary |
| 6 | + |
| 7 | +After reviewing the main text chapters and the examples section, I identified several opportunities for simplification. However, many examples in the main text serve specific pedagogical purposes and are intentionally minimal to focus on particular concepts. The recommendations below balance simplification with pedagogical effectiveness. |
| 8 | + |
| 9 | +## Examples Section Inventory |
| 10 | + |
| 11 | +| Notebook | Domain | Key Features | |
| 12 | +|----------|--------|--------------| |
| 13 | +| `015-university.ipynb` | Academic administration | Complete schema with Students, Courses, Departments, Terms, Enrollments, Grades; synthetic data generation | |
| 14 | +| `016-university-queries.ipynb` | Query patterns | Comprehensive query examples: restriction, joins, aggregation, universal sets | |
| 15 | +| `010-classic-sales.ipynb` | E-commerce | MySQL sample database; workflow-centric business operations | |
| 16 | +| `070-fractals.ipynb` | Computational pipeline | Table tiers (Manual, Lookup, Computed), populate mechanics, image processing | |
| 17 | +| `075-blob-detection.ipynb` | Image analysis | Master-part relationships, parameter sweeps, computational workflows | |
| 18 | + |
| 19 | +--- |
| 20 | + |
| 21 | +## Recommendation 1: Queries Chapter - Reference University Queries |
| 22 | + |
| 23 | +**File**: `book/50-queries/020-restriction.ipynb` |
| 24 | + |
| 25 | +**Current State**: Creates a standalone languages/fluency database example to demonstrate restriction patterns. |
| 26 | + |
| 27 | +**Opportunity**: The restriction chapter could be simplified by: |
| 28 | +1. Keeping the concise language/fluency example for basic concepts |
| 29 | +2. Adding a cross-reference note at the end directing readers to `016-university-queries.ipynb` for more comprehensive query patterns |
| 30 | + |
| 31 | +**Suggested Addition** (at end of chapter): |
| 32 | +```markdown |
| 33 | +## Further Practice |
| 34 | + |
| 35 | +For comprehensive query examples covering all patterns discussed here, |
| 36 | +see the [University Queries](../80-examples/016-university-queries.ipynb) example, |
| 37 | +which demonstrates these concepts on a realistic academic database. |
| 38 | +``` |
| 39 | + |
| 40 | +**Impact**: Low - additive, doesn't require removing existing content |
| 41 | + |
| 42 | +--- |
| 43 | + |
| 44 | +## Recommendation 2: Relationships Chapter - Reference Classic Sales |
| 45 | + |
| 46 | +**File**: `book/30-database-design/050-relationships.ipynb` |
| 47 | + |
| 48 | +**Current State**: Creates 12 bank schemas (bank1-12) to demonstrate relationship patterns incrementally. |
| 49 | + |
| 50 | +**Analysis**: The bank examples are intentionally minimal and incremental, which is pedagogically valuable. Each schema builds on the previous to illustrate specific cardinality concepts. |
| 51 | + |
| 52 | +**Opportunity**: Add a cross-reference after the core patterns are established: |
| 53 | + |
| 54 | +**Suggested Addition** (after the "Many-to-Many" section): |
| 55 | +```markdown |
| 56 | +:::{tip} |
| 57 | +For a complete business database demonstrating these relationship patterns |
| 58 | +in a realistic context, see the [Classic Sales](../80-examples/010-classic-sales.ipynb) |
| 59 | +example, which models offices, employees, customers, orders, and products |
| 60 | +as an integrated workflow. |
| 61 | +::: |
| 62 | +``` |
| 63 | + |
| 64 | +**Impact**: Low - additive only |
| 65 | + |
| 66 | +--- |
| 67 | + |
| 68 | +## Recommendation 3: Master-Part Chapter - Reference Blob Detection |
| 69 | + |
| 70 | +**File**: `book/30-database-design/053-master-part.ipynb` |
| 71 | + |
| 72 | +**Current State**: Uses polygon/vertex example for master-part relationships. |
| 73 | + |
| 74 | +**Analysis**: The polygon/vertex example is appropriately minimal for introducing the concept. The chapter already mentions computational workflows. |
| 75 | + |
| 76 | +**Opportunity**: Add a practical cross-reference: |
| 77 | + |
| 78 | +**Suggested Addition** (in "Master-Part in Computations" section): |
| 79 | +```markdown |
| 80 | +For a complete computational example demonstrating master-part relationships |
| 81 | +in an image analysis pipeline, see the [Blob Detection](../80-examples/075-blob-detection.ipynb) |
| 82 | +example, where `Detection` (master) and `Detection.Blob` (part) capture |
| 83 | +aggregate results and per-feature details atomically. |
| 84 | +``` |
| 85 | + |
| 86 | +**Impact**: Low - enhances existing content |
| 87 | + |
| 88 | +--- |
| 89 | + |
| 90 | +## Recommendation 4: Computation Chapter - Already Well Cross-Referenced |
| 91 | + |
| 92 | +**File**: `book/60-computation/010-computation.ipynb` |
| 93 | + |
| 94 | +**Current State**: Already references `075-blob-detection.ipynb` extensively as a case study. |
| 95 | + |
| 96 | +**Analysis**: This chapter demonstrates best practice - it explains concepts briefly and directs readers to the comprehensive example for implementation details. |
| 97 | + |
| 98 | +**Recommendation**: No changes needed. This is a model for other chapters. |
| 99 | + |
| 100 | +--- |
| 101 | + |
| 102 | +## Recommendation 5: Normalization Chapter - Potential for E-commerce Simplification |
| 103 | + |
| 104 | +**File**: `book/30-database-design/055-normalization.ipynb` |
| 105 | + |
| 106 | +**Current State**: Contains extensive E-commerce Order Processing example (Order → Payment → Shipment → Delivery → DeliveryConfirmation) spanning ~100 lines. |
| 107 | + |
| 108 | +**Analysis**: This example is integral to explaining workflow normalization principles. It demonstrates how traditional normalization approaches differ from workflow normalization. |
| 109 | + |
| 110 | +**Opportunity**: Consider adding reference to classic-sales after the e-commerce discussion: |
| 111 | + |
| 112 | +**Suggested Addition**: |
| 113 | +```markdown |
| 114 | +:::{seealso} |
| 115 | +The [Classic Sales](../80-examples/010-classic-sales.ipynb) example demonstrates |
| 116 | +these workflow normalization principles in a complete business database with |
| 117 | +offices, employees, customers, orders, and products. |
| 118 | +::: |
| 119 | +``` |
| 120 | + |
| 121 | +**Impact**: Low - additive only |
| 122 | + |
| 123 | +--- |
| 124 | + |
| 125 | +## Recommendation 6: Concepts Chapter - Reference Fractals Example |
| 126 | + |
| 127 | +**File**: `book/20-concepts/04-workflows.md` |
| 128 | + |
| 129 | +**Current State**: Explains Relational Workflow Model concepts theoretically. |
| 130 | + |
| 131 | +**Opportunity**: Add reference to practical implementation: |
| 132 | + |
| 133 | +**Suggested Addition** (after "Table Tiers: Workflow Roles" section): |
| 134 | +```markdown |
| 135 | +:::{tip} |
| 136 | +For a hands-on demonstration of all table tiers working together in a |
| 137 | +computational pipeline, see the [Julia Fractals](../80-examples/070-fractals.ipynb) |
| 138 | +example, which shows Manual tables for experimental parameters, Lookup tables |
| 139 | +for reference data, and Computed tables for derived results. |
| 140 | +::: |
| 141 | +``` |
| 142 | + |
| 143 | +**Impact**: Low - connects theory to practice |
| 144 | + |
| 145 | +--- |
| 146 | + |
| 147 | +## Not Recommended for Simplification |
| 148 | + |
| 149 | +### Bank Examples (050-relationships.ipynb) |
| 150 | +The 12 bank schemas serve a clear pedagogical purpose: demonstrating relationship patterns incrementally. Replacing them with references would lose the step-by-step learning progression. |
| 151 | + |
| 152 | +### Language/Fluency Examples (020-restriction.ipynb) |
| 153 | +These are appropriately minimal for teaching restriction concepts. The university queries example is more complex and would overwhelm the focused explanation. |
| 154 | + |
| 155 | +### Mouse/Cage Examples (055-normalization.ipynb) |
| 156 | +These examples are tightly integrated with the normalization discussion and demonstrate the specific points about workflow normalization vs. entity normalization. |
| 157 | + |
| 158 | +### Polygon/Vertex Example (053-master-part.ipynb) |
| 159 | +This minimal example is ideal for introducing master-part concepts without distraction. |
| 160 | + |
| 161 | +--- |
| 162 | + |
| 163 | +## Implementation Priority |
| 164 | + |
| 165 | +| Priority | Recommendation | Effort | Impact | |
| 166 | +|----------|---------------|--------|--------| |
| 167 | +| 1 | Add blob-detection reference to master-part chapter | Low | High - connects concepts to practical example | |
| 168 | +| 2 | Add fractals reference to concepts chapter | Low | Medium - connects theory to practice | |
| 169 | +| 3 | Add university-queries reference to restriction chapter | Low | Medium - provides comprehensive practice | |
| 170 | +| 4 | Add classic-sales reference to relationships chapter | Low | Low - supplementary | |
| 171 | +| 5 | Add classic-sales reference to normalization chapter | Low | Low - supplementary | |
| 172 | + |
| 173 | +--- |
| 174 | + |
| 175 | +## Conclusion |
| 176 | + |
| 177 | +The main text examples are generally well-designed for their pedagogical purposes. The primary opportunity is to **add cross-references** to comprehensive examples rather than remove existing content. This approach: |
| 178 | + |
| 179 | +1. Preserves the focused, incremental learning in main text chapters |
| 180 | +2. Directs motivated readers to comprehensive examples for deeper exploration |
| 181 | +3. Demonstrates how concepts apply in realistic, complete systems |
| 182 | +4. Reduces duplication of effort for readers who explore multiple chapters |
| 183 | + |
| 184 | +The computation chapter (`010-computation.ipynb`) already exemplifies best practice by referencing `075-blob-detection.ipynb` as a case study rather than duplicating the full implementation. |
0 commit comments