Kevin-C-Fang / novel-alerts

Novel alerts is a GUI that uses the information the user enters to alert the user when updates are detected.
GNU General Public License v3.0
0 stars 0 forks source link

Save and Load features for Email and URL #4

Closed Kevin-C-Fang closed 3 years ago

Kevin-C-Fang commented 3 years ago

Should complete implementation that allows for load and saving of email and URL data within the application.

It should have the following:

Kevin-C-Fang commented 3 years ago

Issues that came up:

  1. Whether to save data to files when entered or when the application is closed.
  2. Could not figure out how close event() is triggered, so cannot repurpose that function within the controller class 2.1. Alternate method: I could pass in the method functions for saving email/URL data, but doesn't fit MCV design.

Solution: Decided to just save data when it is entered. Although it does increase time complexity, I don't think the data entered would be large enough to have a serious impact. If it does, then I can always revert back to the alternate method since that would save data when the X/close button is pressed.

Kevin-C-Fang commented 3 years ago

Completed all features but issues came up such as CSV structure. The column headings weren't outputting the way I thought it would on the CSV file. Decided instead to just initialize the file by calling the write URL function in the model Initializer. It does increase time complexity if there is previous data, but it solves the problem of the CSV file not have the column headings.