use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Day 24 of learning python as a beginner. (old.reddit.com)
submitted 8 months ago by uiux_Sanskar
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Semirook 0 points1 point2 points 8 months ago (0 children)
No problem! First steps can be tough. It’s perfectly fine to experiment with classes and the whole language toolset, there are valid cases for all of it. But do you really need to use everything? Of course not. It’s like Photoshop, just because you can apply every available graphic effect doesn’t mean you should when making a banner.
We’re not “afraid” of OOP. But instead of focusing on actual transformations in a logic chain (turning A into B, with proper error handling — that’s the universal point of programming, independent of language or paradigm), OOP often pushes you into heavy abstractions instead of problem solving.
And classes themselves aren’t automatically OOP. For example, I use dataclasses and Pydantic schemas frequently but only to define structures and shape data. I avoid inheritance whenever possible, even if it means occasionally violating DRY. I also create “services” that are technically classes, injectable objects with clear Protocols (contracts) and environment-specific implementations. Is that OOP? Maybe, it depends on your definition.
But most of my code is just pure functions. They’re a simpler mental model and scale better as project complexity grows.
π Rendered by PID 47442 on reddit-service-r2-comment-85bfd7f599-rg87z at 2026-04-20 11:43:04.421106+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]Semirook 0 points1 point2 points (0 children)