The main plan was to develop a COVID-19 tracker in Django that shows local data in the Philippines - until the Department of Health hid and disabled page where the stats can be scraped.
I've been using Django for a little less than a year already if I'm not mistaken and I'd like to share the top resources I use when I'm running on a roadblock or if I'm trying to implement something that I haven't implemented yet.
During my first day on my internship a couple of months back, I was tasked to work on the scaffold of the company on which I was overwhelmed with the tags on it and never really bothered to research them.
ke it a habit to run git status before doing anything on a repository. I just learned this today and wanted to write it down to make it stick on my mind - or get familiar with it.
Show your top 10 most used commans including their % usage
I recently stumbled upon the words of Jacob Kaplan-Moss, one of Django's original creators, "Code without tests is broken as designed." this hit me in a way that I know to my self that I suck at designing, which motivated me to learn how to test.
For each test case, print the height of the Utopian Tree after n cycles. Each height must be printed on a new line.
Model-View-Controller (MVC) Explained – With Legos : https://realpython.com/the-model-view-controller-mvc-paradigm-summarized-with-legos/
This very brief introduction to classes and functions only scratches the surface of their full capabilities.
Python, like most programming languages, has an if statement that provides branching in your code.
Tuples are often used for homogenous data that the programmer doesn't want changed by accident. It's a good idea to use a tuple instead of a list if you have a list of items that should not be changed.
Django Cheat Sheet to start a project.
Compiled languages are unmanaged languages. They typically have their source code written in a language humans can fully understand.
These commands are the commands I've used most in the past and is still using it to date.
We are using 3 libraries from Python in mining data and printing the mined data on a csv file.
You should define functions for calculating the tax and for formatting the price with a “$” and rounding to two decimal places.
As a general rule of thumb, if you need to store a collection of properties with varying types, use an object. Otherwise, use an array.
Originally published at http://www.dev.to.