Business Week #11 - Calculations
Calculate, not complicate, you idiot!
Once we started gathering data the next step was to introduce series calculator checking best & current series of successes for each of daily goals. Actually it took me some time to find an approach that makes sense but it looks like approach I finally took looks like working 💪 I finally decided to recalculate goal progresses once per a change and store them for quick future accesses to limit unnecessary recalculations. By storing data I mean storing in device memory and also in local memory cache for quick access during runtime.
Adding series calculator was a good moment to think about first unit tests. So I added Quick & Nimble frameworks supporting writing human readable tests. It was also good opportunity to empower project with Cocoapods dependency manager.
Other than that I added calendar widget allowing to switch days which is really helpful eg. if you forgot to update progress yesterday.
⏳ Time spent: 240 minutes (100%)
Plan for week #12
Since having a test build for a week letting me track my goals I instantly started gathering data. And, already experienced a case when I simply forgot to update daily progress one evening. This is why it's a good moment to add local notification reminding me in the evening to update progress.
It is also a good moment to add fastlane to project due to the fact that once Tuist & Cocoapods are added I need to run two commands to rebuild everything.
Also, it's time to create provisioning profiles & certificates for project.