How to unit test a function that is refactored to strategy pattern?
If I have a function in my code that goes like:
Returning an IQueryable from an IRepository
Using the Repository pattern, is it proper to return an IQueryable of a data set (table), for generic usage?
Philosophy behind the memento pattern
I have been reading up on memento pattern from various sources of the internet. Differing information from different sources has left me in confusion regarding why this pattern is actually needed.
Methodologies for Managing Users and Access?
This is something I’m having a hard time getting my head around. I think I might be making it more complicated than it is.
A sample Memento pattern: Is it correct?
Following this query on memento pattern, I have tried to put my understanding to test.
Is there a name for this use of the State design pattern?
I’m looking to see if there is a particular name for this style of programming a certain kind of behavior into a program.
How to use DI and DI containers
I am building a small PHP mvc framework (yes, yet another one), mostly for learning purposes, and I am trying to do it the right way, so I’d like to use a DI container, but I am not asking which one to use but rather how to use one.
How to use DI and DI containers
I am building a small PHP mvc framework (yes, yet another one), mostly for learning purposes, and I am trying to do it the right way, so I’d like to use a DI container, but I am not asking which one to use but rather how to use one.
iOS – Unit tests for KVO/delegate codes
I am going to design a MVC pattern. It could be either designed as a delegate pattern, or a Key-Value-Observing(KVO), to notify the controller about changing models. The project requires certain quality control procedures to conform to those verification documents.
Interfaces on an abstract class
My coworker and I have different opinions on the relationship between base classes and interfaces. I’m of the belief that a class should not implement an interface unless that class can be used when an implementation of the interface is required. In other words, I like to see code like this: