Skip to content

Instantly share code, notes, and snippets.

View AurelienPillevesse's full-sized avatar

Aurélien Pillevesse AurelienPillevesse

View GitHub Profile
@AurelienPillevesse
AurelienPillevesse / 1.md
Last active October 27, 2022 11:51
SOLID

Responsabilité unique - Single Responsibility Principle

Une classe, une fonction ou une méthode doit avoir une et une seule responsabilité.

A class should have only a single responsibility (i.e only one potential change in the software's specification should be able to affect the specification of the class.

Violating the Single Responsibility Principle

class Document {