3 Other engineers and code contracts
This chapter covers
- How other engineers will interact with our code
- Code contracts and small print in code contracts
- How minimizing small print can help prevent misuse and surprises
- If we can’t avoid small print, how checks and assertions can be used to enforce it
Writing and maintaining software is usually a team effort. Companies that create software will typically employ multiple engineers: it could be a team of two working on a single product or thousands of engineers working across hundreds of different products. The exact number doesn’t really matter; the point is that other engineers will end up having to interact with the code we write, and in turn, we will have to interact with the code they write. ...
Get Good Code, Bad Code now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.