Object Oriented Programming with Python - From Beginner to Advanced

  Рет қаралды 14,398

Coding Crash Courses

Coding Crash Courses

Күн бұрын

Пікірлер: 45
@codingcrashcourses8533
@codingcrashcourses8533 7 ай бұрын
Related videos Pydantic: kzbin.info/www/bejne/bZKlg56Vf7Vgp7s Software Engineering with Python: kzbin.info/www/bejne/bJiZkKGDbNt2jsU
@saurabhjain507
@saurabhjain507 7 ай бұрын
Finally completed watching the video. Good OOP tutorial. The new thing for me was slots. We dont see they are widely implemented and probably that's why not many tutorials cover them. Again, thank you for creating this comprehensive tutorial.
@codingcrashcourses8533
@codingcrashcourses8533 7 ай бұрын
Thank you very much:)
@pi8anotita
@pi8anotita 5 ай бұрын
Very interestign video one question so far: 38:00 you talk about how to add archers to company. When you add them by the + operator the company's size argument does not seem to work. Although you specify a comapny just with 5 archers, even if you add 6 the company adjusts and you never get notified that the maximum number of archers has been reached. Even when the iter and next are added if you have more than 5, they will all appear int he print. Any ideas how to correct it?
@codingcrashcourses8533
@codingcrashcourses8533 5 ай бұрын
Thank you! I made a logical mistake: def __add__(self, other): if not isinstance(other, Archer): raise TypeError("Only adding Archers allowed") if len(self.archers) >= self.size: raise ValueError("Company already full") # Raise error if full self.add_archer(other) return self I also have to add the check here...
@economist_roderick6377
@economist_roderick6377 4 ай бұрын
I hope the __hash__ method could be explained clearly with its application. What they are for? Thanks.
@codingcrashcourses8533
@codingcrashcourses8533 4 ай бұрын
Everytime you need unique values or want to compare values, you calculate a hash. Lets say you want to store your custom classes in a set and make sure you don´t have duplicated ones. {person1, person2, person3}
@pratiknarendraraut6889
@pratiknarendraraut6889 7 ай бұрын
Great content , you are a wonderful teacher
@codingcrashcourses8533
@codingcrashcourses8533 7 ай бұрын
Thank you so much
@DanteMishima
@DanteMishima 7 ай бұрын
Please zoom your editor please
@codingcrashcourses8533
@codingcrashcourses8533 7 ай бұрын
Do you watch this on your Phone or PC?
@LawrenceAaronLuther
@LawrenceAaronLuther 5 ай бұрын
I think the zoom was perfect, but I watched from a PC
@user-lg4le8xr4s
@user-lg4le8xr4s 4 ай бұрын
It's already full screen, it can't really get any bigger. What are you watching it on? If he cropped out just the code panel, then you wouldn't be able to see the console output etc.
@mr.transformer1299
@mr.transformer1299 2 ай бұрын
@@user-lg4le8xr4sThere’s a way to set the fonts to bigger sizes
@yt7042
@yt7042 7 ай бұрын
Will the video still be available on your German channel? I need to brush up on my Python skills. :-)
@codingcrashcourses8533
@codingcrashcourses8533 7 ай бұрын
There is a 2,5 hours video on OOP already on my german channel. Only Design patterns are missing in that one, but I cover many of those in seperate videos
@LawrenceAaronLuther
@LawrenceAaronLuther 5 ай бұрын
I enjoyed this course very much. As a beginner I felt like this was the perfect balance between thoroughness and breadth. Of course, some of the concepts I won't be able to execute on my own nor perfectly follow their logic/sequence with complete understanding, but now I have a strong OOP framework in my head that I can slowly build upon with practice. Great teaching style too- if you release any more videos on topics I'm trying to learn I will definitely watch them. Many thanks
@codingcrashcourses8533
@codingcrashcourses8533 5 ай бұрын
Great! Yes it will take time to figure out when to use what. It´s all not easy, but if you finish a course like this you seem to have the grit to to it ;-)
@ooagabonjoaga2680
@ooagabonjoaga2680 14 күн бұрын
great video. haven't done python in a few years so needed a refresher
@codingcrashcourses8533
@codingcrashcourses8533 14 күн бұрын
@@ooagabonjoaga2680 thank you for your Kind comment:)
@ernie345
@ernie345 7 ай бұрын
Concepts are well explained. Thank you. You've a new subscriber
@codingcrashcourses8533
@codingcrashcourses8533 7 ай бұрын
Thank you :)
@AbhishekSingh-pj1oo
@AbhishekSingh-pj1oo Ай бұрын
THE best OOP Python course, periodddddd.
@codingcrashcourses8533
@codingcrashcourses8533 Ай бұрын
Thank you so much :-)
@maximus-the-merciful
@maximus-the-merciful 2 ай бұрын
Good course as a refresher if you haven't used python's OOP for a while. For beginners it could be a lot.
@epicaliya
@epicaliya Ай бұрын
Are you German?
@codingcrashcourses8533
@codingcrashcourses8533 Ай бұрын
Yes. Hard to hide my accent
@ham8088
@ham8088 3 ай бұрын
in 24:11 why self.arrows == self.arrows?? for the rest you did self.(variablename) == other.(variablename)
@codingcrashcourses8533
@codingcrashcourses8533 3 ай бұрын
ups, i made an error there. Thanks for pointing it out. other.arrows is correct of course.
@ham8088
@ham8088 3 ай бұрын
@@codingcrashcourses8533 also just wanted to say thank you so much for this course! really helpful and i understood alot of the concepts you covered! I subscribed and liked!
@ChadieRahimian
@ChadieRahimian 3 ай бұрын
thanks a lot for the great video! I especially like the Design Patterns part. Just a feedback: I wish you first explained what you want to achieve with each example and then implemented the code and briefly went over why each element is necessary. For example why the super class Observer is needed. Coming from a C programming background, every problem I encounter during coding, seems like it will be solvable by functions. I never understood the real need of making classes. It would be nice to make another video going a bit deeper in design patterns part, explaining the chain of thought of "why" you choose classes for specific problems. Thanks a lot!
@codingcrashcourses8533
@codingcrashcourses8533 3 ай бұрын
Thank you for your feedback. Maybe I can create a Design Patterns video in the future, where I cover this and also show "functional" alternatives with Python :)
@ChadieRahimian
@ChadieRahimian 2 ай бұрын
@@codingcrashcourses8533 A more in-depth video on design patterns and best practices will definitely be appreciated! :) With some more concrete examples of when you choose each design pattern or if it's a personal choice etc.
@ashishjohnsonburself
@ashishjohnsonburself 4 ай бұрын
im still pondering what would be the usecase of __hash__ /
@codingcrashcourses8533
@codingcrashcourses8533 4 ай бұрын
there are many usecases... everytime you need unique values. Lets say you want to store your custom classes in a set and make sure you don´t have duplicated ones. {person1, person2, person3}
@fluffykitties9020
@fluffykitties9020 4 ай бұрын
Well done but you fail to get into the motivation and intuition behind using OOP in the first place. This video is great if you already knew the "point" of using OOP and want to do it in Python, but there is little knowledge shared about thinking in terms of OOP, breaking your program down in a way that works with OOP, and in general the reasoning behind the process. Perhaps a topic for a new video? It would be a nice complement to this OOP "inplimentation" video. Anyway, many to to this wonderful German (or Austrian?) teacher!
@codingcrashcourses8533
@codingcrashcourses8533 4 ай бұрын
Hm, in the intro I tried to explain the motivation behind it. What did you expect that to look like?
@fluffykitties9020
@fluffykitties9020 4 ай бұрын
@@codingcrashcourses8533 Your intro only showed the outline of what was to be discussed in the video. Rather, I was thinking a high-level overview of the concepts and theory behind OOP in general, to give some context before jumping right into doing OOP in Python. Basically something that answers: "what's the point of OOP?" Thanks.
@codingcrashcourses8533
@codingcrashcourses8533 4 ай бұрын
@@fluffykitties9020 Ok, so you probably expected something like "4 pillars of OOP". Understood.
@dineshkumarsudhakar732
@dineshkumarsudhakar732 7 ай бұрын
Please upload odoo software tutorial Please
@codingcrashcourses8533
@codingcrashcourses8533 7 ай бұрын
kzbin.info/www/bejne/bJiZkKGDbNt2jsU
@dineshkumarsudhakar732
@dineshkumarsudhakar732 7 ай бұрын
@@codingcrashcourses8533 it is python..I tell ODOO ERP SOFTWARE
@kvelez
@kvelez 4 ай бұрын
from abc import ABC, abstractmethod class AbstractCharacter(ABC): @abstractmethod def walk(self): pass @abstractmethod def run(self): pass @abstractmethod def jump(self): pass class Mario(AbstractCharacter): def __init__(self, name, skills) -> None: super().__init__() self.__name = name self.__skills = skills @property def name(self): return self.__name @name.setter def name(self, name): self.__name = name @property def skills(self): return self.__skills @skills.setter def skills(self, skills): self.__skills = skills def walk(self): print("Mario is walking") def run(self): print("Mario is running") def jump(self): print("Mario is jumping") mario = Mario() mario.walk() mario.run() mario.jump()
@codingcrashcourses8533
@codingcrashcourses8533 4 ай бұрын
Should probably fail because of missing arguments in the constructor?! :)
@kvelez
@kvelez 4 ай бұрын
@@codingcrashcourses8533 Interesting, thanks friend. If you have the right option, please show me so that I can correct the code.
5 Tips For Object-Oriented Programming Done Well - In Python
16:08
Object-Oriented Programming is Bad
44:35
Brian Will
Рет қаралды 2,3 МЛН
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 21 МЛН
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 140 М.
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,7 МЛН
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 352 М.
Is Computer Science still worth it?
20:08
NeetCodeIO
Рет қаралды 342 М.
40 Years Of Software Engineering Experience In 19 Minutes
19:10
Continuous Delivery
Рет қаралды 81 М.
Python Object Oriented Programming Full Course 🐍
2:05:50
Bro Code
Рет қаралды 42 М.
Object Oriented Programming (OOP) in Python
46:37
Traversy Media
Рет қаралды 281 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 82 М.
The Flaws of Inheritance
10:01
CodeAesthetic
Рет қаралды 946 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 21 МЛН