15
My kid asked me why my code was just a bunch of copy-pasted lines and it stung.
I was showing my 13-year-old my first Python script, a simple thing that printed 'hello' 10 times, and she pointed out I'd just written the same line over and over instead of using a loop, which she'd just learned in school.
3 comments
Log in to join the discussion
Log In3 Comments
terry_shah171mo ago
Honestly, that's the most solid code review you could get. A kid will just tell you the obvious truth without any sugar coating, which is exactly what you need. You just got a free lesson in keeping things simple.
4
thomas_young23d ago
Yeah it's like how the best feedback often comes from people who don't know all the rules yet. They just see the thing for what it is.
8
felix_jones1mo agoTop Commenter
Guess my code's been getting roasted by toddlers again.
4