GoConqr has a new look! Let us know what you think.

Flashcards

SOLID Principles

Ben Parish Software Engineering Professional English 6 cards

Cards in this deck (6)

  1. 1What are the 5 principles of SOLID?Single Responsibility Principle
    Open-closed Principle
    Liskov Substitution Principle
    Interface Segregation Principle
    Dependency Inversion Principle
  2. 2What the Single Responsibility Principle?“Gather together those things that change for the same reason, and separate those things that change for different reasons.”
  3. 3What is the Open-closed Principle?Entities should be open for extension but closed for modification:
    i.e. It should be simple to change the behaviour of an entity
    Separate the extensible behaviour behind an interface and flip the dependencies
  4. 4What is the Liskov Substitution Principle?Derived classes must be
    substitutable for their base classes:
    1. Signature must match
    2. The pre-conditions cannot be greater than the parent e.g. an if() guard clause.
    3. Post-conditions at least equal to
    4. Exception types must match
  5. 5What is Interface Segregation Principle?A client should not be forced to
    implement an interface it never uses.
  6. 6What is the Dependency Inversion Principle?Depend on abstractions and not concretions
    High level modules (e.g. PasswordReminder) should not depend on low level modules (e.g. DbConnection class)

Information

Description
Professional Software Engineering Flashcards on SOLID Principles, created by Ben Parish on 07/05/2019.
Created by
Ben Parish
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?