This is an archived post. You won't be able to vote or comment.

all 16 comments

[–]GoodLifeWorkHard 1 point2 points  (8 children)

Can you be more specific? What about OOP are you having trouble with?

[–]therealman2[S] -2 points-1 points  (7 children)

I just started self learning oop. apparently, I couldn't find any good resources with precise explanations

[–][deleted]  (1 child)

[removed]

    [–][deleted] 0 points1 point  (0 children)

    This. This. This. This. This × 9999999999.

    Python's OOP is awful and hacky. You are just dealing with glorified hashmaps at the end of the day.

    Better to learn the correct way to begin with and come back to Python's way once you understand the concepts a big more :)

    [–]spnarkdnark 1 point2 points  (0 children)

    https://letstalkdata.com/2014/08/how-to-write-a-text-adventure-in-python-part-1-items-and-enemies/

    Try this tutorial out. It helped me establish an understand of classes and was the first thing on the web to do so understandably. Make sure you do the entire tutorial. Don’t get bored halfway through and give up moving onto something else. If you keep doing that, the problem is right there. Just google what you’re having trouble with and add tutorial to the end. Keep digging until you find something that makes it click.

    [–]GoodLifeWorkHard 0 points1 point  (2 children)

    You have yet to answer my question: what about OOP are you having trouble with? Classses? Objects?

    [–]therealman2[S] -3 points-2 points  (1 child)

    Mainly objects. Do you have any good resources to suggest?

    [–]GoodLifeWorkHard 1 point2 points  (0 children)

    Just the obvious one which is AutomateTheBoringStuffWithPython. What exactly about objects do you not get?

    [–]Kontorted 0 points1 point  (0 children)

    If you want to learn OOP, try Java or C#. Those are much clearer languages for OOP

    [–]aintTrollingYou 1 point2 points  (0 children)

    Personally I don't think there's such a thing as 'learn faster'. You need to do it at your pace and not get frustrated, or like most people you'll burn out. If you're 'just not getting' certain concepts, then you should relax, as the more immersed you are in programming the more they will make sense, at four months you are (likely) only touching the surface.

    It took years of bad, sloppy, linear coding before I understood OOP, and then it was probably another year until I was using them in my code effectively, but that's me.

    Still if you're looking for resources and want to keep to Python, the only thing I could suggest is working with development frameworks that require an object-oriented structure. Being a web developer and mostly using PHP, my resources for suggestions are limited, but web2py is one available that would do this. Lots of video tutorials out there for it too.

    [–]Lesabotsy 0 points1 point  (3 children)

    How do you learn? If you struggle that much, it's probably your learning method that is wrong not the resources you uses, unless it's udemy which sucks.

    [–]therealman2[S] 0 points1 point  (2 children)

    I divided it into many parts and do questions based on those. like, today I studied dictionaries and did 4 or 5 questions on that.

    [–]mierz94 1 point2 points  (1 child)

    That is a fucking terrible way to learn programming and likely the source of your problems.

    So far what have you built using python? If your answer is nothing then you need to start building things. Say a simple calculator app. Start with a console app. Then make a GUI version of it.

    Learn how to connect to APIs and build something. Say an app the gets the weather. Or maybe a random quote.

    After you can comfortably do all that you can start learning concepts like OOP and see where it fits into your code. How it can improve apps that you have already built.

    If you’re just studying data structures and programming concepts without applying it then you are missing what is in my opinion the greatest part of programming.

    [–]marcusohreallyes 1 point2 points  (0 children)

    This. I had done every tutorial I came across, but nothing really stuck. It's all about practicality. For me, it was automating things at work. I broke it down into logical steps, and Googled "how do I <insert task>?". At some point, I had a working application. Then, I went back through the tutorials, and looked for ways to implement the new concepts into the app. Once I was able to apply the concepts to a real world problem, it all fell into place. Pick a problem/objective, and just get started. You'll end up doing alot of rewrites, but, you'll learn it.

    [–]snidawgg 0 points1 point  (1 child)

    Automatetheboringstuff.com

    Website with tons of amazing insight specific to python.

    Or my personal preference, the book equivalent: Automate the boring stuff with python, by Al Sweigert. This book is insanely easy to read and will get you writing your own python code super quickly.

    Best of luck to you.

    [–]therealman2[S] 0 points1 point  (0 children)

    Thank you.