phattanuki
✅ Design pattern for a method feels incorrect
I have made a small CLI application that does a few things related to my job. The CLI downloads the latest software packages from a NuGet feed and organizes them into the applications target directory in a neat way.
The recent command that I've implemented was a clean-up one, where it would delete the different test versions of our tools, files an folders alike.
After spending some time a design bubbled-up in the main private method of the command.
Did I make a mistake here? Is this a design pattern that I should follow or should I refactor the code to something else? It feels like that this is "not clean", as one method is basically a pipeline of different methods, with exit conditions.
I welcome any advice on the topic.
11 replies
✅ Inherited a class but the compiler does not accept it?
I've created two classes, Head and Knot. Head inherits Knot with another caveat of having an additional method on it, yet the compiler gives the error of "There is no argument given that corresponds to the required parameter '_coordinate' of 'Knot.Knot(Point)'".
Am I misunderstanding something here?
20 replies