Single Responsibility (S)
A module should have one reason to change.
After the fix
new SignupService(validator, hasher, users, welcome)You notice a change to the email copy breaks the sign-up tests.
Open/Closed (O)
Open for extension, closed for modification.
After the fix
new Checkout([new PercentOff(10), new BlackFriday()])You notice every new promotion means editing the same switch.
Liskov Substitution (L)
Code written for a base type must keep working when handed any of its subtypes.
After the fix
saveMarker(store: StoreWriter)You notice a subclass throws "not supported" where the base class worked.
Interface Segregation (I)
No code should be forced to depend on methods it does not use.
After the fix
new SupportBot(orders: OrderLookup)You notice your test fake has to stub six methods the code never calls.
Dependency Inversion (D)
High-level policy should not depend on low-level detail. Both should depend on abstractions.
After the fix
new OrderService(gateway, orders)You notice you cannot run a test without hitting the real payment API.