DependencyInjection

Showing 1-2 of 2 results
EngineeringIcon ChevronWeb front-end

Working with TypeScript, Dependency Injection, and Discord Bots

by Michał Krakiewicz

Types and testable code are two of the most effective ways of avoiding bugs. In this tutorial, discover TypeScript best practices while you create a Discord bot from scratch.

10 minute readContinue Reading
EngineeringIcon ChevronTechnology

True Dependency Injection with Symfony Components

by Vasilii Lapin

The Dependency Injection Container in Symfony2 allows components to be injected with their dependencies, and is often used as a Service Locator, which when combined with the DI-container pattern is considered to be an anti-pattern by many. In this article, Toptal engineer Vasilii Lapin shows us how you can build a simple Symfony2 application using the DI-container, but without implementing the Service Locator pattern.

11 minute readContinue Reading

Join the Toptal® community.