If you have a child who hates math, you already know what "math anxiety" looks like. It’s the frustration at the kitchen table, the blank stares at a worksheet, and the belief that math is just a cryptic, foreign language they are forced to memorize.
I know exactly how they feel. Because when I was in school, I didn't enjoy math either.
It wasn't until I discovered applied mathematics that everything clicked. When I realized that math could actually be used to solve real problems I cared about, it suddenly transformed from a rigid chore into a powerful tool.
As a Senior Software Engineer and coding mentor, this is exactly how I approach teaching. I use coding as a "Trojan Horse." Students think they are just building video games and apps, but secretly, I am teaching them complex mathematics. Here is how it works.
The Accidental Math Class: Cartesian Coordinates
The very first instance where children encounter unfamiliar math in my sessions is usually in Scratch.
When a student wants to make their custom character move across the screen, they naturally ask, "How do I set up the controls?" To do this, they have to use a 2-dimensional Cartesian plane (X, Y).
We don't sit down and draw a graph on a piece of paper. Instead, they quickly learn that changing the X-value makes their character run left and right, and changing the Y-value makes them jump up and down. Eventually, they are calculating specific (X, Y) coordinates to teleport their characters across the map. They master graphing not because it’s on a test, but because they desperately want their game to work.
Bypassing Math Anxiety with "Applied" Solutions
In traditional schooling, math concepts are taught first, and maybe a practical application is shown later. In programming, we reverse engineer the learning process.
We never start a session by saying, "Today we are learning algebra." Instead, we encounter a problem: "How do we make this boss character lose 10% of its health every time it gets hit?" Suddenly, the student needs a solution. To build life-tracking systems, simulate gravity, or calculate jumping physics, they are forced to use math. Because the math is applied to a problem they are deeply invested in, the anxiety disappears. It becomes an exciting puzzle rather than a cryptic worksheet.
The Neurodiversity Advantage: The Instant Feedback Loop
For neurodivergent students or specialized learners, traditional math can be incredibly punishing. You do a worksheet, turn it in, and get it back days later covered in red ink.
Coding provides the exact opposite experience: an instant feedback loop.
When a student applies mathematics to their code, they see the effect immediately on the screen. If the math is wrong, the character flies off the screen or moves backward. There is no shame or red ink—it's just a bug to fix. This environment of rapid iteration is perfect for keeping ADHD and specialized learners highly engaged. They can tweak a number, hit play, and instantly see the result, refining the math in real-time until it works perfectly.
The Real-World Engineer Perspective
Here is a secret about software engineering: We use math as a means to an end.
We don't use complex formulas just because we absolutely love doing math; we use them because they are the most practical, logical way to solve the problem in front of us. Math is simply another system in our toolbox that we can leverage.
When your child learns to code, they stop viewing math as an enemy to be feared. They start viewing it the way an engineer does: as a powerful tool to build exactly what they want.