3 ms·
I thought the same thing when I came across the DCI pattern. It is very useful for beautifying and simplifying use cases that span lots of objects. I do somet
by bcheung 14y ago
I thought the same thing when I came across the DCI pattern. It is very useful for beautifying and simplifying use cases that span lots of objects.
I do something slightly different. I create a class directly for the context and then fire an object into it.
class TheContext
def initialize
# ...
end
def execute(the_object)
# ...
end
end