How jdvpl/clean-colde-solid-ts works
Project Type Analysis
This is an educational/demonstration project focused on showing SOLID principles and clean code practices in TypeScript. The project structure indicates it's primarily a learning resource rather than a production application.
Main Components
A. Core Concept Areas (Primary Modules):
• Clean Code Module
• SOLID Principles Module
• Code Smells Module
B. Implementation Examples Layer:
• Each principle's practical implementations
• Code pattern demonstrations
• Anti-pattern examples
[Top Level - Project Structure]
• Clean Code Patterns
• Naming Conventions
• Function Design
• DRY Principle
• SOLID Principles
• Single Responsibility (SRP)
• Open/Closed (OCP)
• Liskov Substitution (LSP)
• Interface Segregation (ISP)
• Dependency Inversion (DIP)
• Code Smells
• Singleton Pattern
• Coupling Examples
Create three main sections using large rectangles
• Clean Code (src/clean-code/)
• SOLID Principles (src/solid/)
• Code Smells (src/code-smells/)
For each section, create sub-components
• Clean Code section should show the progression from basic naming (01-names.ts) to more complex concepts (05-dry.ts)
• SOLID section should display each principle with both correct implementations and violations
• Code Smells section should contrast high and low coupling examples
• Relationships between principles (e.g., how SRP relates to ISP)
• Progression from violation to correct implementation
• Connections between clean code practices and SOLID principles