drfarh / product-catalog-v1

0 stars 0 forks source link

Creating product catalog v3 #1

Open drfarh opened 8 months ago

drfarh commented 8 months ago

I set the following TODOs list to improve the product catalog app by introducing classes/objects for developing project-3:

  1. I will define Product Class:

    • [ ] Create a class named Product.
    • [ ] Add properties for name, price, and currency.
    • [ ] Implement methods to show the name of the product and its price.
  2. I will define Catalog Class:

    • [ ] Create a class named Catalog.
    • [ ] Add a property for productStore to store products.
    • [ ] Implement a method to add a product to the catalog.
  3. I will define Person Class:

    • [ ] Create a class named Person.
    • [ ] Add properties for firstName, lastName, and email.
    • [ ] Implement methods to get a person's full name and email.
  4. I will define Customers Class:

    • [ ] Create a class named Customers.
    • [ ] Add a property for customersStore to store customer objects.
    • [ ] Implement a method to add a person as a customer to the customer store.
    • [ ] Implement a method to show all customers.
  5. I will integrate Classes into the Product Catalog App:

    • [ ] Modify existing code to use instances of the Product, Catalog, Person, and Customers classes.
    • [ ] Update the app logic to utilize the methods and properties of the newly created classes.
    • [ ] Test the app thoroughly to ensure the new classes are functioning correctly.
  6. I will Refactor Existing Code:

    • [ ] Identify sections of code that can be replaced with calls to methods of the new classes.
    • [ ] Refactor the existing code to make use of the newly defined classes and methods.
    • [ ] Ensure that the refactored code maintains the functionality of the original app.
  7. Documentation and Comments:

    • [ ] Add documentation and comments to the classes and methods to improve code readability and maintainability.
    • [ ] Document the purpose of each class, its properties, and methods.
    • [ ] Include comments where necessary to explain complex logic or algorithms.
  8. Testing and Debugging:

    • [ ] Test the updated app thoroughly to identify and fix any bugs or errors.
    • [ ] Use debugging tools to track down and resolve any issues that arise during testing.
    • [ ] Conduct comprehensive testing to ensure that all features of the app are working correctly with the new class-based structure.
  9. Feedback and Iteration:

    • [ ] Gather feedback from users on the updated app.
    • [ ] Use feedback to identify areas for further improvement or refinement.
    • [ ] Iterate on the app as necessary to address any additional requirements or suggestions.
deletosh commented 8 months ago

@drfarh each of the class should be in its own file

deletosh commented 8 months ago

And, I will recommend, but each number into a issue of its own

drfarh commented 8 months ago

@drfarh each of the class should be in its own file

Alright. I will create each of the classes in separate files.

drfarh commented 8 months ago

And, I will recommend, but each number into a issue of its own

Sure, I will do that.

deletosh commented 8 months ago

@drfarh Also, this project should be called product-catalog