Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Auto-wired Dependency Injection in
JS

{ Varun Grover
@vaeroon
Hi!



I am a UI developer with interest in code
architecture, design
Coming Soon…
Upcoming SlideShare
Loading in …5
×

Auto wired dependency injection in js

441 views

Published on

Attending this session would allow the audience to:-
1) understand dependency injection as an IoC technique
2) appreciate its merits and its essentiality in building scalable web applications
3) spot and identify dependency injection in the wild
4) understand how we could achieve autowiring in JS (a la Spring in Java)



Authoring a webapp for scalability is not easy. There are a lot of parameters to keep in mind as the design takes shape. Some of these are quite fundamental in nature and yet often overlooked:-
(1) Separation of concerns
(2) Single responsibility principle
(3) testability

In this session, we shall look at employing Dependency Injection as a technique to help improve our code (especially w.r.t. testability).

We then briefly look at some of the existing techniques that achieve D.I. (to some extent).

Next, we look at how an auto-wiring DI implementation can help improve the code (taking the example of a simple application).

Finally, we showcase how this is currently implemented using WinterJS.

Published in: Technology
  • Login to see the comments

  • Be the first to like this

Auto wired dependency injection in js

  1. 1. Auto-wired Dependency Injection in JS { Varun Grover @vaeroon
  2. 2. Hi!  I am a UI developer with interest in code architecture, design
  3. 3. Coming Soon…

×