Teaching my 40 year old student with no experience programming | For Loops

24 Jul 2024 · 22 min
22:13

Phil Choi teaches a novice programmer the mechanics and use-cases of for loops and while loops. The transcript shows step-by-step explanation of loop initialization, condition checks, incrementation, array traversal, mutating an accumulator (total count) with "+=", and pushing computed values into another array. It also covers differences between for, while, and do-while loops, warns about infinite loops, and mentions a homework exercise to iterate an array with a while loop and compute statistics such as median.

Chapters

More from Phil

youtube.com

How to Get Hired as a Software Engineer in 2025 (The ONE project rule)

1y ago
youtube.com

How to Stand Out In Tech in 2025 with Domain Knowledge (Stop Just Coding)

1y ago
youtube.com

day in the life of a software engineer | 5 hour productivity | building my dev agency 🔥

1y ago
youtube.com

I was a failure in tech until THIS happened

1y ago
youtube.com

day in the life of a software engineer | 3 hour productivity | coding my 6-figure community startup

1y ago
youtube.com

IT SUCKS but this made me $300k/year in tech EASY

1y ago
youtube.com

day in the life of a software engineer | 5 hour productivity | coding our sns startup app LFG

1y ago
youtube.com

Your First AI Agent in 20 minutes (Real World Use Cases)

1y ago
youtube.com

Is it possible to break into tech in less than 135 days?

1y ago
youtube.com

day in the life of a software engineer | 5 hour productivity | creating apps that makes big money

1y ago
youtube.com

How I Would Learn JavaScript If I Could Start Over

1y ago
See all content