When do you violate SRP (Single Reponsibility Principle)?

SRP ( PDF version of HTML ) indicates that

You cannot be more than one reason for a class change.

When you view Outlook, the Event Calendar window, it has a Save and Close button .

alt text

So, when the functionality of one or both of Save or Close changes, this button should change. Obviously, this violates the SRP.

This feature saves time and convenience, as this is what most users expect to do when they save an appointment to the calendar.

, , else SRP, , Outlook?

+5
1

SRP . , " ", , , . .

SRP, . SRP , .

+19

All Articles