11
That one Tuesday where everything just clicked with classes in Python
I've been learning Python for about 3 months now, mostly through YouTube tutorials and messing around on my own. Last Tuesday I was working on this project to track my monthly expenses, and I kept getting stuck on how to organize the data. I finally sat down and forced myself to build a class for transactions instead of using a bunch of messy dictionaries. Once I figured out the init method and added a method to calculate totals, everything just fell into place. I spent like 4 hours straight coding without looking up a single thing, which never happens to me. It was weird because the whole week before I felt like I was hitting walls with everything. Has anyone else had a day where the concepts suddenly clicked after weeks of struggling?
2 comments
Log in to join the discussion
Log In2 Comments
david_stone26d ago
Man, that Tuesday magic is real. I had a similar thing with list comprehensions where I just stared at them for weeks and then one night it was like my brain finally unpacked the whole thing.
5
nora53526d ago
You ever notice how some things just click like that? @david_stone I think there's a pattern with a lot of stuff we learn, not just code. Like, you can beat your head against a problem for days, then walk away and it just falls into place... happens with fixing stuff around the house or even figuring out a new route on the GPS. Brains gotta process in the background, I guess.
7