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.
def serve_bolognese(pasta, sauce): dish = mix(pasta, sauce) return dish