Yesterday i got some discussion with my Uncle, about mobile application (again) and got some issue about the app i want to build.

Try dependency injection and reflection.” That’s the code my uncle said, and then “Artinya cari dan pelajari sendiri” As usual, “autodicact, self-taught” Oke, feni, you’re strong enough.

Dependency injection involves four roles:

  • the service object(s) to be used
  • the client object that is depending on the services it uses
  • the interfaces that define how the client may use the services
  • the injector, which is responsible for constructing the services and injecting them into the client
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.