15
Had a weird conversation with my nephew about Python last weekend
He's 14 and just started coding on some game platform. He asked me why I use such messy functions. I told him that's just how you do it when you're learning. But then he showed me how to break a problem into smaller steps using comments first before typing any code. It was like watching a chef prep ingredients before cooking. Has anyone else had a beginner show them a simpler way to do something?
3 comments
Log in to join the discussion
Log In3 Comments
mileslane2d ago
The coding sensei thing is cute but auto-format tools are just helpers, not proof they are better.
4
maxl932d ago
Wait, is your nephew secretly a coding sensei or something? That's wild. A buddy of mine told me his 12 year old showed him how to use some tool that auto-formats his code and now he's scared the kid's better than him.
2
jana7691d ago
My 10 year old niece rewrote her dad's Python scripts to use list comprehensions instead of loops and cut his lines of code in half. @maxl93 is scared, yeah, but maybe the kid actually gets it. Kids these days learn from YouTube and mess around without the fear of breaking stuff, so they pick up better habits faster than us old dogs. It's not just about knowing tools, it's about seeing patterns naturally.
2