Hanselminutes with Scott Hanselman cover image

Test Driven Development is Design - The Last Word on TDD

Hanselminutes with Scott Hanselman

00:00

How to Instantiate a Dependency in Memory

It's really difficult to understand what a code behind page does, and to learn what it does. If the business logic has a dependency on this data database module, then that dependency has to be made very clear,. It's very transparent. Let's say in that business logic module, the constructor instantiates a database access class, a DAO object. Now you can't really tell from the outside of that object that that's what's going on. Right? Yep. Those things make it harder and harder and harder to understand what that business logic does.

Play episode from 24:53
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app