Перейти к содержимому

Single Responsibility Principle | SOLID #1 (Java)

MoRunIt

0:00 / 0:00

Single Responsibility Principle | SOLID #1 (Java)

11 просмотров · 9 ч назад
MoRunIt
40 подписчиков
11 просмотров · 9 ч назад
A one-line email change breaks the tax report. Why? Because one Java class answers to four different people. This is what the Single Responsibility Principle really means: not "do one thing", but one reason to change, one actor. 0:00 Intro 0:05 The one-line change 0:30 Who asks for changes? 0:54 The hidden trap 1:08 The rule 1:28 Split by actor 1:44 Duplicate on purpose 2:01 Replay the ticket 2:14 Don't split too far 2:26 The test Next in the SOLID series: Open/Closed Principle. #java #solid #cleancode