// blog
Articles
All
Basics
Control Flow
Functions
Data Structures
Modules & Packages
Projects
Object-oriented programming
|
↑ oldest first
↓ newest first
// Projects
Calories Tracker Project — Round 1
Let's start simple. Step by step.
We have a calorie tracker to build. Before we write a single line of code, we need to think about the data. What do we actually want to track? W…
→
// Projects
Calories Tracker Project — Round 2
We left Round 1 with a question. One input or five. We have an answer now.
Five. For a simple reason: five separate inputs mean five separate opportunities to validate the data. …
→
// Projects
Calories Tracker Project — Round 3
We have a function that adds food entries. It validates the data. It timestamps automatically. It works.
What it doesn't do yet is loop. At breakfast alone you might log eggs, ch…
→
// Projects
Calories Tracker Project — Round 4
We have one report. Let's build the second — and raise the bar a little.
The detailed view shows us what we ate. The weekly summary shows us how much — and whether we…
→