A trend I see in code that gets written by friends and coworkers is that every class needs to be injected. They all look so surprised when I tell them that they don’t have to do that with every class they need. Then they always follow up with: then why do we need a dependency injection (DI) framework?
Tag: interface
Patterns and disciplines from a proof of concept – Part 5
While I worked at my previous employer, I build a proof of concept to improve their ability to search. I will rebuild that proof of concept and I’ll highlight all the patterns and principles I used to build this code. All code related to this proof of concept can be found in a repository on my Github account.
In this fifth and last part, I’ll talk about additional benefits that this implementation can use.
Continue reading “Patterns and disciplines from a proof of concept – Part 5”
Patterns and disciplines from a proof of concept – Part 4
While I worked at my previous employer, I build a proof of concept to improve their ability to search. I will rebuild that proof of concept and I’ll highlight all the patterns and principles I used to build this code. All code related to this proof of concept can be found in a repository on my Github account.
In this fourth instalment, I want to highlight how I divided the solution in different projects.
Continue reading “Patterns and disciplines from a proof of concept – Part 4”
Patterns and disciplines from a proof of concept – Part 3
While I worked at my previous employer, I build a proof of concept to improve their ability to search. I will rebuild that proof of concept and I’ll highlight all the patterns and principles I used to build this code. All code related to this proof of concept can be found in a repository on my Github account.
In this third part, I’m going to discuss the actual search algorithm. The generic implementation of the search algorithm can be found in the DefaultImplementation project.
Continue reading “Patterns and disciplines from a proof of concept – Part 3”
Patterns and disciplines from a proof of concept – Part 1
While I worked at my previous employer, I build a proof of concept to improve their ability to search. I will rebuild that proof of concept and I’ll highlight all the patterns and principles I used to build this code. All code related to this proof of concept can be found in a repository on my Github account.
In this first part, I shall describe the problem space and how the rest of the application interacts with the search functionality.
Continue reading “Patterns and disciplines from a proof of concept – Part 1”
Hide a configuration section behind an interface
In my previous project, the team used custom configuration sections for different parts of the application. Because each class had access to all information, I added an interface for each service with just the information that service would need.
Continue reading “Hide a configuration section behind an interface”