Hacker News new | ask | show | jobs
by badminton1 3563 days ago
A piece of code should not know a lot about the system and should work under a restricted set of assumptions and preconditions.

When this rule is not respected:

1) You end up with lot of coupling

2) Unit tests end up with a lot of overhead