What is Dependency injection?
def serve_bolognese(pasta, sauce):
dish = mix(pasta, sauce)
return dish
- Find function.
- Check parameters of the function.
- Prepare the appropriate objects.
- Call the function passing these objects.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
def serve_bolognese(pasta, sauce):
dish = mix(pasta, sauce)
return dish