/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

mikemikina.com
| | benoitpasquier.com

To be sure new code won't break old one already implemented, it's best practice to write unit tests. When it comes to app architectures, it can be a challenge to write those tests. Following an MVVM pattern, how to unit test a view and its viewModel? That's what I would like to cover here using dependency injection.
2.1 parsecs

Travel
| |
| | blog.separateconcerns.com

I use dependency injection for non-deterministic code.
1.7 parsecs

Travel
| |
| | fusectore.dev

This is the first part in a series of articles on dependency injection for the play framework using guice. As soon as Ive written the next part, it will be linked here. Please note that while the examples are written in Scala, the principles apply for Java likewise. Furthermore, please be aware that Guice is not the only framework to do dependency injection with. It is probably the most prominent one in the play ecosystem though. Guice does so called runtime dependency injection. This means dependencies ...
2.0 parsecs

Travel
| |
| | sookocheff.com

Inversion of Control (IoC), also known as Dependency Injection (DI), allows an object to define their dependencies as constructor arguments (strictly speaking, you can set these dependencies as properties, but the examples I will use today are constructor-based). This is the inverse of the object itself controlling the instantiation or location of its dependencies, hence the name Inversion of Control. Let's look at an example from Stackoverflow using a text editor with a spell checking component:
9.8 parsecs

Travel
|