Unit tests should not interact with anything outside the program. This keeps tests clean and focused just on the code being tested.
To make testing easier, functions should use interfaces to handle outside interactions. This allows for fake implementations during testing.
By controlling how the outside world is accessed in a programming language, tests can be made deterministic. This means results are reliable and consistency is ensured.
Having a good boss is harder than having good coworkers because you usually only have one boss. With colleagues, you can mix and match different relationships, but there’s less room to do that with your boss.
Relationships with peers often feel like a trade-off. You help each other out, creating a sense of teamwork, while the boss-employee relationship can lack that mutual support.
A boss may not have strong incentives to be a great leader. They prioritize their own goals, which may not align with making you happy, so it can be tough to expect them to act like a supportive figure.