mardi 25 mai 2021

How to do modular programming best? (python)

I have (five) categories of products and I want to sort/rank the products in each category separately. For that I have (four) different steps/rules to do the sorting of the products, but there are small differences in calculating the sorting among the categories:

  • For each step/rule I need the possibility to turn "on/off" the particular step for a specific category
  • For each step/rule there are different parameters for each category.

Have you got some ideas how to do this quite modular in python?

Aucun commentaire:

Enregistrer un commentaire