July 3rd, 2020

So I had this problem. I need to get 17++ variations of CSV files for price/inventory updates.

Perfect place to make a parent class with most of the common functionality and child classes where each child overrides functions:

  • loadCSVFile() //uniquely fetches inventory/price file from FTP, Email Attachment, SFTP, HTTP, etc.
  • updateProducts() //parses files specific fields, nomalize the data and store it

Parent class saves everything to the db once data is normalized.


Very good.

Posted In:

I am long TSLA and TSLA options. I am not a financial advisor. Investing in anything comes with inherent risk. This is not financial advice.