+ 21
Can anyone help me in understanding OOP in Python language?
13 Answers
+ 19
Have you tried these first?
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2467/
+ 21
Uni Thankyou for your answer
Cleared my doubts😊👍
+ 13
Complete the python course step by step in sololearn you will understand it
+ 9
Chandini you're welcome I'm glad I could help 😆😆
+ 6
Chandini I will recommend u to watch cs dojo videos on YouTube regarding OOP. Those videos are really great.
+ 3
Marek Wesołowski
I'd recommend the following:
1. Sift through open access GitHub repositories where people share code. You'll find examples of how OOP principles are being implemented. Not everything there is a piece of art but you'll find inspirations.
2. Seek for language specific support group meetings in your area and talk to people - usually there they're more than willing to share their experience.
3. Go to the nearest university IT department, talk to students and lecturers there and ask for guidance.
4. Read, read, read OOP books and try to draw conclusions - this is the hardest part.
5. Post your question at Stack Overflow. What you're asking for is very common so you should get links. If you like them don't forget to post them here 😀
Hope this helps.
+ 2
Try to deeply understand the OOP paradigm first. At first sight basic principles seem simple but this is misleading. When you look at their consequences then only the paradigm's complexity & potential start to be visible. The OOP paradigm aiming at simplifying programming and managing complexity turns the natural program flow and logic upsidedown and is difficult to internalise. Python (as any other programming language) is merely a tool, so better use a metalanguage. Recruiters say that a mere 15% if job candidates seem to understand OOP while all of them claim to understand it.
Don't get caught by the urgency and need for keyboard banging.
Don't be a trial-error addict.
Be like a mathematician. Paper and pen prevail.
Brain and concepts always always come first.
+ 2
There are many such books available. It's just a matter of sitting down and looking at the market, authors, number of editions, reviews, etc. I don't have any recommendations since I believe it's a wrong approach. At first one should deeply understand the OOP paradigm explained using just a simplified metalanguage/pseudo code for illustration.
Only after it makes sense to learn a selected programming language as just the paradigm implementation by picking a good programming manual encompassing OOP elements.
It's easier to learn things one by one the two at the same time.
In my view the hard part is the first one and looking for just books as the single source of knowledge seems insufficient.
+ 1
Python is a multi-paradigm programming language. Meaning, it supports different programming approach. One of the popular approach to solve a programming problem is by creating objects. This is known as Object-Oriented Programming (OOP).
+ 1
Nice question...
With Sololearn, related books either softcopy or hardcopy and YouTube videos(Cj Dojo, Bucky tutorials etc) you must have a good understanding of OOP in Python...
Happy Learning!
+ 1
Understanding OOP implementation in Python seems a half way for OOP dev, I'm struggling with OOP desing, namely how to redesign my spaghetti code main flow... every Python OOP tutorial I saw uses simple classes examples and gives no hints for desing principles, incl further object interactions (interfaces) what is a key to me to achieve OOP eqivalent of my current data flow... can you advise any tutorials or other sources in this area? Maybe my case is specific and not suits OOP approach well... shortly, this is a mass database create/update transaction performed on financial data (accounting balances) based on user-friendly definition, one can say it is next level of "SQLAlchemy like" abstraction for accountants and controling experts not knowing WTF programming and databases are ;-)
+ 1
Thanks for reply Skipper. Guess I'll start from your last, but I need to give more details on my code, which is early python journey mistake, which doesn't want to die... users are coming with new requirements and further maintenance is more and more painfull. Feel like I just need someone to push me in the right direction...
+ 1
Skipper - can you advise any book covering OO design and programming combined? All I saw focus on UML or how to create simple class examples... meaning no full-path approach.