Software Design

Get Started. It's Free
or sign up with your email address
Rocket clouds
Software Design by Mind Map: Software Design

1. Goals

1.1. Scalable

1.2. User Friendly

1.2.1. Intuitive Interface

1.2.2. Well Documented

1.3. Maintainable

1.4. Feature Complete

1.5. Reliable

1.6. Responsive and Fast

2. Guidelines

2.1. Object Oriented Programming

2.1.1. Law of Demeter

2.1.2. Favor composition over inheritance.

2.1.3. Open-Closed Principle (OCP) - Classes should be open for extension, but closed for modification.

2.2. Tell, don't ask.

2.3. Don't repeat yourself.

2.4. Follow the Principle of Least Surprise.

2.5. Separate code that varies from code that stays the same.

2.6. Program to an interface, not an implementation.

2.7. You're Not Going To Need It (YAGNI) - Favors Simplicity over Completeness.

2.8. Design to avoid Rigidity, Fragility, and Immobility.

3. Principles

3.1. Simplicity

3.2. Consistency

3.3. Completeness

3.4. Correctness

3.5. Efficiency

3.6. Clarity

3.7. Portability

3.8. Code Safety

3.9. Security

3.10. Intuitive

3.11. OO

3.11.1. Low Coupling

3.11.2. High Cohesion

3.11.3. Polymorphism

3.11.4. Encapsulation

4. Philosophies

4.1. Worse is Better

4.2. MIT approach (The Right Thing)

5. Code Smells

5.1. Duplicated Code

5.2. Long Method

5.3. Large Class

5.4. Long Parameter List

5.5. Divergent Change

5.6. Shotgun Surgery

5.7. Data Clumps

5.8. Primitive Obsession

5.9. Switch Statement

5.10. Parallel Inheritance Hierarchy

5.11. Lazy Class

5.12. Eliminate unuseful classes

5.13. Speculative Generality

5.14. Temporary Field

5.15. Message Chains

5.16. Middle Man

5.17. Inappropriate Intimacy

5.18. Alternative Classes with different interfaces

5.19. Incomplete Library Class

5.20. Data Class

5.21. Refused Bequest

5.22. Comments

6. Patterns