My final project for CS50 Web - A TasksDaily Postmortem
gonvalhector - Monday, January 04, 2021
The original idea
I wanted to submit the project before the second half of 2020 and I had the goals of putting the app online so that people could finally use it, and of adding many features which would have made the app much more accessible, customizable and simple.
I got as far as setting up a GitHub repository with the Django project before I realized just how much time it would take me to remake the original project with no prior experience porting apps from Flask to Django. So, since I still had time before the deadline I had set for myself, I decided to teach myself how to do that with an easier project, one of the previous project sets I submitted, R8Books.
After successfully putting that one online, I got caught up trying to balance other endeavors, which made me miss the original deadline. Now, knowing just how skillful I became at missing deadlines, I had to settle for a new, simpler idea for the final project.
The simpler idea
Trying to balance all these things within my schedule, led me to create a daily objectives list of sorts in one of my bullet journals in order to improve my productivity and accountability. At the time, I wasn’t using that particular journal for bullet journaling, so I didn’t exactly follow the proper syntax when writing my daily objectives. I really only needed a simple checklist with my daily tasks and to check them if I successfully completed them.
As I missed some days here and there, I realized just how much of a difference it made using the list. I was considerably more productive and much more likely to meet my goals the days I’d go over it.
So that was it, the new idea was to turn paper into app.
As I began putting together the idea for TasksDaily, I realized I needed to make something simple, easy to use and easy to understand that would be flexible enough so that people with similar, or equal, needs to mine would find useful. That’s how I decided that the daily objectives would be user defined tasks instead, and that the user would be able to choose when to perform these tasks inside their weekly schedule and where to group them (tasks are sorted by user defined categories). This allows some users to make a set of tasks that more closely resemble a schedule while other users can sort their tasks within whatever criteria they desire.
What went right
I think I did a good job of making sure I supported many viewport sizes for the mobile compatibility required in the project’s specifications. Bootstrap came in handy, but I ended up overwriting it for some elements, like cards. Granted, it’s not perfect and some viewport sizes may not enjoy as much functionality as others.
Teaching myself how to implement the calendar and datetime modules with Django to provide important functionality to some views was a big highlight.
And lastly, though limited, I think I made good use of the Google Charts’s Column Charts within the Progress view.
I also made sure that users that disable scripts on their browser could fully enjoy the functionality of the app, despite their less interactive user experience.
What went wrong
The biggest challenges I faced during development were external. I tried to handle multiple other things at once and develop other projects simultaneously, which resulted in very, very slow development. Sometimes unexpected things would pop up which would reduce progression to a halt. Two that I clearly remember are:
- The HDD dedicated to my files started failing and I had to back all its data and replace it.
These two stopped progress for about a week, each, which is not that bad. The biggest hurdle was getting back on track right after.
Another thing that made progression slower than it should have been was the fact that the design of the web app was not set in stone from the beginning. I didn’t plan ahead all the views or all the models I would use as clearly as I needed to. This meant that whenever I got an idea for a more convenient way of doing things or for a new view that would improve the user experience or functionality of the app, I would end up wasting considerable time developing the new feature instead of testing the previous feature properly. Which lead to one of the biggest mistakes I made.
I failed to implement the principles of Continuous Integration and Continuous Delivery and I didn’t make testing automatic with each new feature implemented. Even if I take into consideration that I was making all the development locally, I could have taken advantage of Django’s testing features, which I did not, as I was testing everything manually. Allocating a bit of time to develop automatic testing functions that integrate with Django would have saved me a lot of time in the end.
As the end of the year was approaching I ultimately decided to scrap some features and simplify others in order to prioritize functionality over compatibility and convenience. Some of these were:
- More default date ranges to check user progress
- Custom date ranges to check user progress
- Let users change their password and delete their accounts
- Change TasksDaily’s themes
I think for any new application or project I develop, going forward, I’ll take CI/CD practices to heart and I’ll make sure to have a concise idea of the design. I’ll try to make my code less repetitive and convoluted, since there always is a better way. And since taking advantage of the features included with the framework by reading the documentation was extremely helpful, I’d like to get more acquainted with Django (or other frameworks) in order to better implement things.
The future of TasksDaily
As of right now, with the course over, having received a passing grade and a nice new certificate, the next step is to iron out the issues that may hurt compatibility across browsers in order to make TasksDaily available to people.
Then I’d like to implement the other missing features and any other suggested through feedback, so long as they do not considerably change the purpose and functionality of the app. Also, I’d like to make a version in Spanish.
With what I’ve learned with this app I’d ultimately like to make (someday) a user defined rewards system, as suggested by a friend, and that may integrate with either TasksDaily or a new, more fleshed out web app.
This is it for TasksDaily. Thanks for reading.