S.O.L.I.D. Flashcards
Which clean-coding principle does the “S” in SOLID represent?
single responsibility
Which clean-coding principle does the “O” in SOLID represent?
open / closed
Which clean-coding principle does the “L” in SOLID represent?
Liskov substitution
Which clean-coding principle does the “I” in SOLID represent?
interface segregation
Which clean-coding principle does the “D” in SOLID represent?
dependency inversion
The Single Responsibility Principle says we should limit code to one purpose per…?
class
Applying the Single Responsibility Principle limits the frequency we need to…?
change code
Applying the Single Responsibility Principle makes it easier to understand the code’s…?
purpose
The Open / Closed Principle says we should leave software open to…?
extension
The Open / Closed Principle says we should make software closed to…?
modification
Applying the Open / Closed Principle means we should be able to add what without changing existing code?
functionality
The Liskov Substitution Principle says a child class should do what for everything in the parent class?
implement
Applying the Liskov Substitution Principle means we should be able to interchange the parent and child class without getting…?
incorrect results
The Interface Segregation Principle says clients shouldn’t be forced to depend on interfaces that…
they don’t use
Applying the Interface Segregation Principles means to avoid implementing something if it’s not…
needed