Software Engineering (203105303)
Prof. Pirmohamed, Assistant Professor Computer Science & Engineering
Programming Principles & Guidelines Design
Unit-5
Programming Principles & Guidelines
Building robust and maintainable software requires a foundation of programming principles and guidelines. These principles act as a compass, guiding developers towards best practices for writing code that is efficient, readable, and adaptable.
SOLID Principles : The Foundation of Maintainability
Single Responsibility Each class should have only one responsibility. | Liskov Substitution Subtypes must be substitutable for their base types. |
Open/Closed Software entities should be open for extension, but closed for modification. | Interface Segregation Clients should not be forced to depend on methods they don't use. |
DRY (Don't Repeat Yourself): Efficiency in Action
| |
Prioritizing Clarity and Understandability
Easier to Understand
Simple code is easier to read, understand, and debug.
Reduced Complexity
Simplicity minimizes the risk of introducing bugs and errors.
Faster Development
Focus on clarity leads to faster development cycles.
Avoiding Premature Optimization
|
|
Coding Standards & Style Guides
| Ensuring Consistency Across Teams
|
Design Patterns
| Proven Solutions to Recurring Problems
|
Testing & Code Reviews
Safeguarding Code Quality and Reliability