Open
Add Business Logic Patterns documentation and TypeScript examples (11.2.3)#822
Conversation
…c patterns Co-authored-by: jburns24 <19497855+jburns24@users.noreply.github.com>
Co-authored-by: jburns24 <19497855+jburns24@users.noreply.github.com>
Co-authored-by: jburns24 <19497855+jburns24@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Business Logic Patterns documentation and examples
Add Business Logic Patterns documentation and TypeScript examples (11.2.3)
Jan 6, 2026
…siness-logic-patterns
- Fix quiz embed to use the <div class="quizdown"> pattern matching 11.2.1/11.2.2 instead of the standalone script tag - Add sidebar entry under Chapter 11.2, nested alongside 11.2.1/11.2.2 - Refresh docs/README.md master front-matter record - Rebase-equivalent: merge master to pick up 11.2.2 (Data Layer Patterns) which had merged after this branch was created Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The comparison example code and its tests use a 40% max discount cap, but the doc's prose and inline snippets said 30%. Align the doc with the runnable example (code + tests are the source of truth).
HexSleeves
marked this pull request as ready for review
July 23, 2026 02:37
3 tasks
…er can import it
The quiz file ended with a self-registration block and CommonJS export
instead of the 'export { rawQuizdown }' the index.html dynamic import
destructures, so the quiz rendered as 'Cannot read properties of
undefined (reading match)'.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements comprehensive documentation for Business Logic Patterns section covering Transaction Script, Domain Model, and Service Layer patterns with working TypeScript examples and interactive quiz.
Documentation
docs/11-application-development/11.2.3-business-logic-patterns.md(22KB)TypeScript Examples
Four complete projects demonstrating pattern application:
Each example includes:
npm startExample comparing approaches:
Interactive Quiz
10 questions testing pattern selection decisions and trade-off understanding following quizdown format at
src/quizzes/chapter-11/11.2.3/business-logic-patterns-quiz.js.Front-matter
Standard bootcamp metadata configured:
Original prompt
This section details on the original issue you should resolve
<issue_title>Task 2.0: Business Logic Patterns Documentation and Examples (11.2.3)</issue_title>
<issue_description>## 🎯 Task Overview
Task ID: 2.0
Parent Spec:
docs/specs/01-spec-design-patterns-section/01-spec-design-patterns-section.mdDepends On: Task 1.0 (conceptually independent, but sequential for consistency)
Status: Ready for Implementation
Estimated Time: 1-2 hours
This task implements comprehensive documentation for Business Logic Patterns (11.2.3), including Transaction Script, Domain Model, and Service Layer patterns with working TypeScript examples and an interactive quiz.
📋 Specification Context
Project Overview
This specification defines the remaining Design Patterns subsections for Chapter 11 (Application Development) of the DevOps Bootcamp. This task focuses on patterns for organizing business logic, helping students understand trade-offs between simplicity and complexity management.
User Story
US-3: Organizing Business Logic
As a developer facing design decisions, I want to understand when to use Transaction Script versus Domain Model patterns so that I can choose the appropriate approach for my application's complexity.
Functional Requirements
✅ Acceptance Criteria (Proof Artifacts)
The following artifacts must exist and be verified for task completion:
docs/11-application-development/11.2.3-business-logic-patterns.mdexists with complete content including front-matter, pattern explanations, comparative analysis, and exercisesexamples/ch11/business-patterns/transaction-script/contains working TypeScript implementation with README showing procedural organizationexamples/ch11/business-patterns/domain-model/contains working TypeScript implementation with README showing OOP encapsulationexamples/ch11/business-patterns/comparison/contains same business problem solved with both patterns, with README explaining trade-offsexamples/ch11/business-patterns/service-layer/contains working TypeScript implementation with README demonstrating orchestrationsrc/quizzes/chapter-11/11.2.3/business-logic-patterns-quiz.jsexists with decision-making questions following quizdown formatnpm testpasses in all example directoriesnpm start📝 Sub-tasks
Documentation Tasks
docs/11-application-development/11.2.3-business-logic-patterns.mdwith front-matter (category: Application Development, technologies: TypeScript/Design Patterns, estReadingMinutes: 30, exercise definition)Code Examp...
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.