Skip to content

Commit aabef27

Browse files
author
Elle Meredith
committed
Add images
1 parent 137a7df commit aabef27

12 files changed

Lines changed: 7 additions & 7 deletions

01-08-solid.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ SOLID helps us write code that is:
3131

3232
## Single Responsibility Principle
3333

34-
![Single Responsibility Principle](../images/solid/srp.jpg)
34+
![Single Responsibility Principle](./images/solid/srp.jpg)
3535

3636
> A class should have a single responsibility
3737
@@ -113,7 +113,7 @@ After refactoring, we have two classes that each perform a specific task. `The F
113113

114114
## Open-Closed Principle
115115

116-
![Open-Closed Principle](../images/solid/open-close.jpg)
116+
![Open-Closed Principle](./images/solid/open-close.jpg)
117117

118118
> Modules, classes, methods and other application entities
119119
should be open for extension but closed for modification
@@ -252,7 +252,7 @@ logger.log("Emergency error! Please fix me!")
252252

253253
## Liskov Substitution Principle
254254

255-
![Liskov Substitution Principle](../images/solid/liskov.jpg)
255+
![Liskov Substitution Principle](./images/solid/liskov.jpg)
256256

257257
> Subclasses should add to a base class' behaviour, not replace it
258258
@@ -312,7 +312,7 @@ To comply with the LSP principle, we can segregate the filtration logic and the
312312

313313
## The Interface Segregation Principle
314314

315-
![Interface Segregation Principle](../images/solid/interface-segregation.jpg)
315+
![Interface Segregation Principle](./images/solid/interface-segregation.jpg)
316316

317317
> Clients shouldn't depend on methods they don't use.
318318
Several client-specific interfaces are better than one generalised interface
@@ -405,13 +405,13 @@ class Staff
405405
end
406406
end
407407
```
408-
![Autopilot](../images/solid/auto-pilot.png)
408+
![Autopilot](./images/solid/auto-pilot.png)
409409

410410
Image credit: https://levelup.gitconnected.com/interface-segregation-principle-made-simple-990da495441c
411411

412412
## The Dependency Inversion Principle
413413

414-
![Dependency Inversion Principle](../images/solid/dependency-inversion.jpg)
414+
![Dependency Inversion Principle](./images/solid/dependency-inversion.jpg)
415415

416416
> High-level modules shouldn't depend on low-level modules.
417417
Both modules should depend on abstractions.

02-00-Day-2-session-slides.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ App: [https://github.com/elle/survey_app](https://github.com/elle/survey_app)
4242

4343
---
4444

45-
![inline](../images/mvc.jpg)
45+
![inline](./images/mvc.jpg)
4646

4747
---
4848
# Models
13.7 KB
Loading

images/mvc.jpg

20.8 KB
Loading

images/rails_3_components.png

49.5 KB
Loading

images/solid/auto-pilot.png

170 KB
Loading
63 KB
Loading
74.7 KB
Loading

images/solid/liskov.jpg

89.4 KB
Loading

images/solid/open-close.jpg

92.6 KB
Loading

0 commit comments

Comments
 (0)