IOC & Dependency Inversion in JS with wire.js

  • November 16, 2011 · 7:00 PM
  • This location is shown only to members

Inversion of Control (IOC), Dependency Inversion, Dependency Injection, IOC Containers ... Um, wut?

This is a Javascript meetup, for pete's sake! Aren't those big, heavy, enterprisey things that involve lots of XML, megabytes of support infrastructure, and class names with at least 5 camel humps? I don't want that crap in my slick, sexy, single-page browser-side UI, and keep it out of my handles-a-million-concurrent-connections node-based server side, too!

Guess what? If you've been writing Javascript in a browser, or in Node, you're already applying Inversion of Control. Huh? But I haven't written a single line of XML, you say. It's true, and I'll prove it.

Guess what else? We're building big, complex apps that run in the browser. We're building big, high-performance back-ends that run on Node. The days of global functions, hardcoded dependencies and manual dependency management are gone. We need better architectural patterns, and we need them now.

In this meetup, we'll look at what the concepts of IOC and Dependency Inversion are really about, and why they are important architectural patterns for building, testing, and maintaining the kinds of apps we want to be building with Javascript. We'll ditch the XML and mile-long class names, and see how we can apply these concepts in a more Javascripty way.

We'll also take a tour or wire.js, a Javascript IOC Container that provides Dependency Inversion and more in 2.5K (K, not, M!). We'll look at real examples of how it can help modularize the kind of large applications that we want to be building.

Join or login to comment.

  • Franklin C.

    A very clear introduction to doing dependency injection in JavaScript using wire.js!

    November 17, 2011

  • Brian C.

    Hey everyone, thanks again for coming tonight! Here are the slides from the talk: http://briancavalier.com/presen...­

    November 16, 2011

  • Brian C.

    We've rescheduled this meetup for next Wed, 11/16, usual time and place. I really appreciate everyone's flexibility! See you then.

    November 8, 2011

  • Brian C.

    Thanks, Franklin

    November 7, 2011

  • Franklin C.

    Thanks for letting us know, and I hope everything goes OK for your family. I'm looking forward to coming when your presentation is rescheduled.

    November 7, 2011

  • Brian C.

    Hey everyone, I'm really sorry to have to do this so close to the meetup date, but I've had something family-related come up that I have to take care of on Wed night. I'll talk to Steve about rescheduling for another date, hopefully sooner rather than later.

    November 7, 2011

  • Franklin C.

    Brian, believe me, I totally want to come. Gonna make a firm decision this weekend.

    October 27, 2011

  • Brian C.

    Hey Franklin! You definitely want to come to this one ;) Kidding aside, IOC and DI are concepts that are just starting to get attention in the JS community, so I think it'll make for some great group discussion of where JS best practices should be headed.

    October 27, 2011

  • Franklin C.

    Hmm, too many things going on... there's also an Agile meetup this day. I'll have to decide which one to go to.

    October 25, 2011

11 went

Create your own Meetup Group

Get started Learn more
Allison

Meetup has allowed me to meet people I wouldn't have met naturally - they're totally different than me.

Allison, started Women's Adventure Travel

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy