When it comes to living or working in small spaces, great architecture is essential. When you step into the house of Tinder, you see a simple, modern design. But if these walls could talk, they’d have a lot to say.
For Bool variables, it is common to want to toggle the state of the variable. In larger (nested) structs, the duplication involved can become especially annoying.
Mocking is a key technique when it comes to writing unit tests in pretty much any language. Whether we're testing networking code, code relying on hardware sensors like the accelerometer, or code using system APIs like location services - mocking can enable us to write tests a lot easier.