🐿️
16

Hit my first real milestone in Python today - picked function over class

Been learning Python for about 2 months now and had to decide between writing a little calculator program as one big function or splitting it into a class. I went with functions because it just made more sense in my head for something that small. Took me around 45 minutes to get it working and I honestly felt like a genius when it ran without errors. Has anyone else hit that point where you realize simple is actually better than fancy?
1 comments

Log in to join the discussion

Log In
1 Comment
michaelrodriguez
Isn't it wild how we're taught to find the "right" way to do things, but half the time simple wins? It's kind of like when I tried to organize my closet with all these fancy bins and dividers, only to realize just tossing stuff on shelves worked way better. Getting that clean run on a simple function feels better than wrestling with a class structure you don't really need yet.
0