I would like some advice on how I should, or if I should break up this class. Right now the class is about 4000 lines of code but it seems hard for me to break up the class. The only downfall I see right now is that it can be a little difficult to read.
Anyway, application takes product information from one database and imports it, after doing some conversion, into another database.
I have some classes to interact with the different databases but most of the logic is handled in one class.
Basically the class does this, checks to see if the product already exists, builds sku, get's the product description, attaches a special to the product and adds the product to a category.
So, to me this seems that since it all deals with a product, it all should be in the same class.
I guess I have a few questions. Does this seem like it would all belong in the same class and What are some of the best tips to know what belongs in what class? Does 4000 lines seem to long? Should I use partial classes if it sounds like all this information does belong in one class?
Anyway, application takes product information from one database and imports it, after doing some conversion, into another database.
I have some classes to interact with the different databases but most of the logic is handled in one class.
Basically the class does this, checks to see if the product already exists, builds sku, get's the product description, attaches a special to the product and adds the product to a category.
So, to me this seems that since it all deals with a product, it all should be in the same class.
I guess I have a few questions. Does this seem like it would all belong in the same class and What are some of the best tips to know what belongs in what class? Does 4000 lines seem to long? Should I use partial classes if it sounds like all this information does belong in one class?
Comment