Bridge Design Pattern

In this post,You will find an example related bridge design pattern from stuctural pattern. Decouple an abstraction from it’s implementation so that the two can vary independently. This sentence is a definition for bridge design pattern by GoF and intent of pattern.Pattern prefer composition instead of inheritance Click the links for more information (sourcemaking.com , …

Continue reading ‘Bridge Design Pattern’ »

Daily technical words from my twitter

Software engineer does not make mistakes, is aware of his mistake Theory equal principle , application equal pattern (these equations is important) Concept of Interface in object oriented programming define the functionalities of objects,not with names of objects. Each code exactly need to refactoring Data Access Layer doesn’t use only for database access.In your applications …

Continue reading ‘Daily technical words from my twitter’ »

Universal Repository

we does use frequently repository design pattern in the asp.net mvc.We use them into Controllers and codes classes like IRepository,BaseRepository.This classes is generic classes.Each Repository class(concrete repository) inherited BaseRepository and uses with related Controller.In there Actually directly using Controller class is not true.we should definition BaseController. Let’s take a look a below class-diagram If benefits of …

Continue reading ‘Universal Repository’ »