Check out a free preview of the full The Psychology of Code Testability course:
The "Testing code vs. Production code" Lesson is part of the full, The Psychology of Code Testability course featured in this preview video. Here's what you'd learn in this lesson:

While simple objects can be trusted to be benign, more involved objects need careful handling. The ‘new’ operator is best avoided. The graph shows the lines of production code vs the lines of test code. Ideally these should be developed evenly and at the same time.

Get Unlimited Access Now