commodore icon indicating copy to clipboard operation
commodore copied to clipboard

Refactor classes `Component` and `Package` to have a shared base class

Open simu opened this issue 3 years ago • 0 comments

Context

The current implementation uses standalone classes for managing components and packages, but the two implementations share a bunch of code, see e.g. #602 or #607. We really should refactor the two classes to have a shared base class which implements the generic functions which are identical for both dependency types.

Look at ComponentTemplater, PackageTemplater and their base class Templater for inspiration.

Alternatives

Keep code base as it currently is, accepting that we duplicate some identical code between classes Component and Package.

simu avatar Aug 25 '22 08:08 simu