| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
3 Articles match "Anti Pattern","Sample"
| Related DevelopMentor Courses | MORE | | Use Common Instance Factory to Abstract Away the Dependency Injection Container When searching for a way to abstract away the DI container, the first solution I examined was the Common Service Locator , built by Microsoft’s Patterns and Practices group back in 2008 with the source code posted on CodePlex. In his article, Inversion of Control Containers and the Dependency Injection Pattern , Martin Fowler describes some of the weaknesses of the service locator anti-pattern. However, a cleaner alternative is the abstract factory pattern , which can be expressed as a generic interface with a method that only return instances of a single type. DevelopMentor Courses - Wednesday, May 23, 2012 Guerrilla.NET (US) Training MVVM : Learn advanced WPF / Silverlight design patterns and techniques including MVVM (Model-View-ViewModel). Learn about IaaS, PaaS, and design patterns for scalable cloud-based applications. DI/IoC : Use powerful OO design patterns and techniques to build loosely-coupled, testable, and maintainable applications including Dependency Injection (DI), Inversion of Control (IoC), and unit testing. You learn a myriad of patterns and best practices, and you get hands-on experience developing applications using Visual Studio 2010. dynamic typing from C# 4.0, and jQuery. DevelopMentor Courses - Tuesday, March 1, 2011 Decouple WCF Services from their DI Container with Common Instance Factory Unlike the Common Service Locator (CSL), the Common Instance Factory (CIF) discourages the service location anti-pattern by using the abstract factory design pattern. If you are careful to register your types early in the startup of your application and avoid referencing the DI container from within your types (which is where the service location ant-pattern rears its ugly head), then selecting a DI container and sticking with it might be perfectly appropriate. null ) { disposable.Dispose(); } } } } }. To get CIF, download the NuGet CIF packages. Enjoy. DevelopMentor Courses - Saturday, May 26, 2012 |
3 Articles match "Anti Pattern","Sample"
| The Latest from DevelopMentor | MORE | | Decouple WCF Services from their DI Container with Common Instance Factory Unlike the Common Service Locator (CSL), the Common Instance Factory (CIF) discourages the service location anti-pattern by using the abstract factory design pattern. If you are careful to register your types early in the startup of your application and avoid referencing the DI container from within your types (which is where the service location ant-pattern rears its ugly head), then selecting a DI container and sticking with it might be perfectly appropriate. null ) { disposable.Dispose(); } } } } }. To get CIF, download the NuGet CIF packages. Enjoy. DevelopMentor Courses - Saturday, May 26, 2012 Use Common Instance Factory to Abstract Away the Dependency Injection Container When searching for a way to abstract away the DI container, the first solution I examined was the Common Service Locator , built by Microsoft’s Patterns and Practices group back in 2008 with the source code posted on CodePlex. In his article, Inversion of Control Containers and the Dependency Injection Pattern , Martin Fowler describes some of the weaknesses of the service locator anti-pattern. However, a cleaner alternative is the abstract factory pattern , which can be expressed as a generic interface with a method that only return instances of a single type. DevelopMentor Courses - Wednesday, May 23, 2012 Tackling the Problem of Modal Dialogs in MVVM Popping up a dialog, such as a MessageBox or a ChildWindow, from the view-model is an anti-pattern that violates the separation of concerns that exists between the view and the view-model. For the full source code to this example, just download the latest version of my Simple MVVM Toolkit and open up the solution in the SimpleMvvm-Main folder in the Samples directory. One of the first issues you’ll run into when wading into the waters of MVVM is how to display model dialogs to the user while executing code in the view-model. Another benefit is testability. null). Tony and Zuzana's World - Friday, January 28, 2011 | -
| The Best from DevelopMentor | MORE | - Use Common Instance Factory to Abstract Away the Dependency Injection Container
When searching for a way to abstract away the DI container, the first solution I examined was the Common Service Locator , built by Microsoft’s Patterns and Practices group back in 2008 with the source code posted on CodePlex. In his article, Inversion of Control Containers and the Dependency Injection Pattern , Martin Fowler describes some of the weaknesses of the service locator anti-pattern. However, a cleaner alternative is the abstract factory pattern , which can be expressed as a generic interface with a method that only return instances of a single type. DevelopMentor Courses - Wednesday, May 23, 2012 - Tackling the Problem of Modal Dialogs in MVVM
Popping up a dialog, such as a MessageBox or a ChildWindow, from the view-model is an anti-pattern that violates the separation of concerns that exists between the view and the view-model. For the full source code to this example, just download the latest version of my Simple MVVM Toolkit and open up the solution in the SimpleMvvm-Main folder in the Samples directory. One of the first issues you’ll run into when wading into the waters of MVVM is how to display model dialogs to the user while executing code in the view-model. Another benefit is testability. null). Tony and Zuzana's World - Friday, January 28, 2011 - Decouple WCF Services from their DI Container with Common Instance Factory
Unlike the Common Service Locator (CSL), the Common Instance Factory (CIF) discourages the service location anti-pattern by using the abstract factory design pattern. If you are careful to register your types early in the startup of your application and avoid referencing the DI container from within your types (which is where the service location ant-pattern rears its ugly head), then selecting a DI container and sticking with it might be perfectly appropriate. null ) { disposable.Dispose(); } } } } }. To get CIF, download the NuGet CIF packages. Enjoy. DevelopMentor Courses - Saturday, May 26, 2012 %>
| | |