Throughout this book, we have applied DI to an existing service. While this is by far the most common situation we will find ourselves in, sometimes we will have the honor of starting a new project from scratch.
So, what could we do differently?
Throughout this book, we have applied DI to an existing service. While this is by far the most common situation we will find ourselves in, sometimes we will have the honor of starting a new project from scratch.
So, what could we do differently?
The first thing we should always do is stop and think about the problem we are trying to solve. Go back to the UX discovery survey (Chapter 3, Coding for User Experience). Ask yourselves the following:
Imagine that you were starting the ACME registration service, how would you answer...