Promega interview question

◾What is Inversion of Control? How does that relate to dependency injection? ◾How do the MVP, MVC, and MVVM patterns relate? When are they appropriate? etc.-

Interview Answer

Anonymous

30 May 2019

Inversion of control pattern involves giving control over to a separate module to create objects. Dependency injection uses inversion of control to allow code to call interfaces without caring about the actual implementation class. The Model-View-ViewModel (MVVM), Model-View-Presenter (MVP), and Model-View-Controller (MVC) software architectures are all about separating the concerns of the model and view, with a separate method in place for communication. MVVM is commonly used for WPF applications, MVP for Winforms, and MVC for web applications.