Popular Dependency Injection Programming Tips

Symfony2 Call Service from Command

pleone
·
3 responses · php, symfony, dependency injection container, dependency injection

Dependency injection container (DiC) vs. service locator (SL)

Adrian Imfeld
·
2 responses · php, zend framework, dependency injection, service locator

Function factories for random data with py.test

Josh Kuhn
·
0 responses · python, unit testing, dependency injection, py.test

Silex Custom Constraint with DI

Joeri Timmermans
·
3 responses · dependency injection, silex, orm, constraints

Lazy initialization in Objective-C

AlexDenisov
·
0 responses · magic, dependency injection, lazy initialization, objective-c

Very simple Dependency Injection in Play applications

Jose Raya
·
0 responses · scala, play, playframework, dependency injection

Laravel: From Apprentice to Artisan

Joshua Walker
·
1 response · php, laravel, object oriented programming, dependency injection

BottleJS

Stephen Young
·
0 responses · micro, dependency injection, javascript

Object-Oriented file importing and parsing

Harlow Ward
·
0 responses · ruby, rails, object oriented programming, dependency injection

My approach to TDD learning

Fabrizio Sabatini
·
0 responses · tdd, dependency injection, unit test, factory patterns

Symfony configuration prepend

pandrieux
·
0 responses · symfony, php, di, dependency injection
Displaying all 20 tips
Recent Activity

Symfony configuration prepend
pandrieux
· symfony, php, di, dependency injection
Function factories for random data with py.test
Josh Kuhn
· python, unit testing, dependency injection, py.test
BottleJS
Stephen Young
· micro, dependency injection, javascript
Laravel: From Apprentice to Artisan
Joshua Walker
· php, laravel, object oriented programming, dependency injection
Newest Dependency Injection protips
Coderwall Dev Community

Explore the all-time favorite tutorials, design patterns and engineering guides that thousands of readers keep sharing and coming back to, year after year.

These proven techniques, reusable code samples, programming tips and vibe coding habits earned their place through steady views and member likes.

Each entry here is still useful today, covering programming languages, frameworks and workflows that stay relevant long after they were first published.

Whether you're new to a tech stack or an experienced engineer refreshing your skills, start with the most useful tips our dev community members recommend and build on solid, well-tested coding knowledge.