G
23

Am I the only one who learned more from fixing broken code than from clean examples?

Most people tell beginners to copy perfect code samples to learn, but I messed up my first website and had to debug it. Spending an hour finding a missing bracket taught me how browsers read HTML better than any book. That tiny fix made me feel like I actually understood something for once. It's a small win, but it changed how I approach learning now.
3 comments

Log in to join the discussion

Log In
3 Comments
matthewjenkins
Fixing mistakes sticks better than perfect examples.
4
the_stella
the_stella1mo ago
Beginners need solid foundations to build on, and debugging a mess just teaches you how to fix that one mess. Clean examples show you the right way to do things from the start, so you don't pick up bad habits. Spending an hour on a missing bracket is a huge waste of time when you could be learning new concepts instead. That frustration early on might make someone quit before they even get going.
2
piperf40
piperf4022d agoMost Upvoted
Remember trying to learn guitar from my uncle's old songbook with scribbled chords everywhere. I spent weeks copying his weird finger positions before a teacher showed me the standard way to hold a pick. Had to unlearn all those bad habits that made simple songs way harder than they needed to be. Clean examples are like that good teacher, they give you the proper form from day one so you can actually play music instead of just fighting your own hands.
7