Steve Klabnik

Steve Klabnik | Observer pattern | Implementation | Use cases | Dependency injection | Naming | Pros cons | Two way bindings

Steve Klabnik

Steve Klabnik | Observer pattern | Implementation | Use cases | Dependency injection | Naming | Pros cons |

Other Episodes

Steve Klabnik

Questions
- What is the observer pattern and how is it implemented?
- Is the observer pattern a way to avoid dependency injection?
- What are the big plusses for the observer pattern?
- Is it generally best implemented as a mixin using a module in Ruby?
- When is it a good idea to make use of the observer pattern?
- Can you name a few projects / technologies that make obvious use of the observer pattern?
- Can you explain two way bindings for beginners?
- Any notable downsides of using the observer pattern?
- Is it important to use a common naming scheme implementing a design pattern?
- When should one consider writing your own implementation of this pattern? ( Instead of using the module Observable in Ruby )

Links
Software design pattern on Wikipedia
Observer pattern
Module Observable  ( With code example -> Ruby )
Dependency injection
Mystery guest
Two way binding
Excellent book: Design Patterns in Ruby
Steve Klabnik on Twitter
Steve Klabnik on GitHub
Steve Klabnik’s blog