This is a really interesting case, and I think there may be other options (apologies if I suggest things that are impossible or infeasible, as I don't know your domain!):
a) Write an adapter for MODE5 that translates it so that it looks like the others?
b) Decouple the mappings (?) so that they become reusable strategies, and have a configuration table that connects modes with strategies?
I would definitely write tests for each strategy though :-)
I asked the product owner whether this was a bug or a feature. They told me that no customer has ever used or even requested MODE5. Since there is no business value in writing any code relating to MODE5, I have deleted all my MODE5 code. Which gave me great pleasure.
Hi Adam,
This is a really interesting case, and I think there may be other options (apologies if I suggest things that are impossible or infeasible, as I don't know your domain!):
a) Write an adapter for MODE5 that translates it so that it looks like the others?
b) Decouple the mappings (?) so that they become reusable strategies, and have a configuration table that connects modes with strategies?
I would definitely write tests for each strategy though :-)
I asked the product owner whether this was a bug or a feature. They told me that no customer has ever used or even requested MODE5. Since there is no business value in writing any code relating to MODE5, I have deleted all my MODE5 code. Which gave me great pleasure.
That's a big win Adam!