2
PSA: My kid's broken toy last week made me see loops in a new way
My son's remote control car stopped turning left, and I had to check each wire connection one by one. I was doing the same thing over and over, and it hit me that this is exactly what a 'for' loop does in code. I was manually running the loop instead of letting the computer do it. Has anyone else had a simple moment like that where a coding concept just clicked from real life?
2 comments
Log in to join the discussion
Log In2 Comments
jakem983d ago
But isn't a for loop more like checking all the wires at once?
6