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.
2 comments
Log in to join the discussion
Log In2 Comments
terry_shah1714d 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
felix_jones14d agoMost Upvoted
Guess my code's been getting roasted by toddlers again.
4