🎙️
24

Warning: My first code review was brutal but it taught me something

Back when I was learning Python, I showed my first real project to a friend who's a senior dev. He looked at it for like 30 seconds and said, 'Dude, you have the same block of code copied 15 times. Write a function.' I was so focused on just getting it to run that I didn't even think about that. I spent the next week redoing the whole thing, and it went from 300 lines to about 50. Anyone else have a moment like that where a simple piece of advice completely rewired your approach?
3 comments

Log in to join the discussion

Log In
3 Comments
the_mila
the_mila25d ago
Honestly, that just sounds like normal learning to me.
7
stella_lane
Breaking it into smaller steps helped me!
7
mary_foster92
Tell that to @the_mila, who clearly missed the memo on how to not sound like a robot.
3