T
8

Just realized most beginners copy code without knowing why it works

I've been helping in a Discord server for new coders and I keep seeing people paste entire blocks of code from Stack Overflow without changing a single line. Last week someone copied a SQL query with a typo in a table name and couldn't figure out why it failed for 2 hours. How do you guys actually learn what each line does when you take code from somewhere?
2 comments

Log in to join the discussion

Log In
2 Comments
grant901
grant90127d ago
Did you try turning the table name into a different typo and see if it worked then? That's how real programmers debug.
8
the_eva
the_eva26d ago
Three weeks ago I did exactly that with a table called "client_data" @grant901, changed it to "clients" and everything worked.
3