20
Got told my variable names were bad and it changed how I code
I had someone look at my first little project last week, a simple to-do list in Python. They told me my variable names were things like "x" and "data1" and they had no clue what was going on. I spent a whole day renaming everything to stuff like "task_description" and "user_input" and suddenly the code actually made sense to me. Has anyone else had a similar moment where a simple piece of feedback clicked for them?
2 comments
Log in to join the discussion
Log In2 Comments
harper_wright25d agoMost Upvoted
Good grief, that's the single most useful lesson you'll ever learn in coding.
5
margaret_chen25d ago
Fell asleep mid-tutorial once. Woke up a master.
2