Programming by Contract

Emphasizing the importance of mindset, Alexander discusses how formalizing responsibilities between program elements can enhance understanding and testing efficacy. While mainstream languages may lack built-in contract support, tools and libraries can help enforce these principles. The conversation also highlights the challenge developers face in determining how many tests to write, suggesting that viewing testing through the lens of contracts can provide clarity and direction.