You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Level 7 says:
Save the tasks in the hard disk automatically whenever the task list changes.
Can I check if if we need to write to the hard disk whenever there is a change to the task list? I was thinking writing to the hard disk after the user inputs "bye" would be more efficient.
The text was updated successfully, but these errors were encountered:
We haven't covered this topic yet but the best practice to apply here is be wary of of premature optimization.
Yes, saving only at the bye requires fewer writes, but does it matter to the user? The chances are the efficiency gains are immaterial.
What if the user closed the app without typing bye or the computer shut down unexpectedly for some reason? Wouldn't it be nice to know that the updates have been saved even in such cases?
Level 7 says:
Save the tasks in the hard disk automatically whenever the task list changes.
Can I check if if we need to write to the hard disk whenever there is a change to the task list? I was thinking writing to the hard disk after the user inputs "bye" would be more efficient.
The text was updated successfully, but these errors were encountered: