Actually camelCase starts with a lower case letter. Class names are in PascalCase,
@Indently
18 күн бұрын
Upper Camel Case and PascalCase are synonyms. I didn't say "UpperCamelCase" but the idea is clear :)
@Obie.
18 күн бұрын
@@Indentlyhey Federico! Your point is valid, but i don't think it was clear which is why he was trying to help. There is a clear distinction between camelCase and UpperCamelCase, and although he may not have been aware of this, I believe was just trying to help others not get confused.
@stevehageman6785
13 күн бұрын
For decades Pascal case was: "PascalCase" and Camel Case was: "camelCase", but I noticed in the last few years the Python community has started saying that this is Camel Case: "PythonCamelCase". Since there is no ISO or ANSI standard on how things "Must" be named. It is what it is now, the Pythonistas have taken over. ;-)
@JelloTalks
7 сағат бұрын
@@Indently Um no? Why would you even say "camel case" if not to mean "the first letter is capitalized"? Either use "Upper Case" or "Pascal Case", I've literally never heard "UpperCamelCase"
@dr4k0nis
18 күн бұрын
This topic should include a follow-up at least on class inheritance.
@Indently
18 күн бұрын
Could definitely make video on that :)
@quitchiboo
18 күн бұрын
Why not jump right ahead and do a video on why composition is preferable to inheritance?
@samuelec
15 күн бұрын
@quitchiboo I guess because he already said all he knows about it "Python OOP in 20 minutes"
@vinesnts
18 күн бұрын
You could do a part 2 where you explain inheritance and other OOP concepts applied in Python.
@ferggill9461
18 күн бұрын
Could you perhaps cover classes and GUI's, like PyQt6 or TK? How might one structure a class with widget connections and event handling? Thanks for the educational videos. Great work
@lowerclasswarfare
17 күн бұрын
I've been playing with Tkinter recently and there's some very specific ways of handling the structure of a tkinter app, but once you get the hang of it, it gets easier. Just start looking up a couple tutorials to start with and then I'd try creating custom buttons, and using event binding to achieve better flexibility assigning other functions or actions instead of using "commands" which you'll learn about if you look those tutorials up.
@lowerclasswarfare
17 күн бұрын
For instance I replicated a push button that changes on click and on release and also plays a sound. I got the idea from a popular online soundboard website. If you use PIL you can work with PNG images easier, but turns out tkinter does not handle alpha values easily, so you need to do some hex to rgba conversions to match image background to root window background.
@lowerclasswarfare
17 күн бұрын
Idk if that helps you but tkinter is kinda fun once you just get started
@dingdongkornik9521
4 күн бұрын
learned the difference between repr and str dunder. thanks.
@MrNess2911
18 күн бұрын
Helpful tutorial! Crystal clear. Please continue!
@yoyoiziah
18 күн бұрын
Your videos are amazing. Very well structured and clear, thank you!
@gustavos3424
12 күн бұрын
do a video about when NOT to use classes, people love to create unnecessary classes
@jinyiliu2102
4 күн бұрын
can’t agree more
@NedTrevor
18 күн бұрын
6th one, I have been following your tutorial, I love how you make it easy to learn classes for real
@Skubidi-qy8hb
16 күн бұрын
Great video !!! i was learning basics then got confused about OOP but this video cleared my confusion out.
@canewizard4141
16 күн бұрын
Primeira vez que eu vi uma explicação do que é "self" que eu entendi. Já vi vários vídeos sobre class e parece que os instrutores sempre tem preguiça de explicar e só dizem "a, tem que colocar isso aí, se preocupa não". Obrigado! 😁😁
@PHTM04
Күн бұрын
Basic and easy!
@huseynxayyati2355
16 күн бұрын
Great videos with clear expectations thank, please explain classmethods and decorators .
@dhilip77
18 күн бұрын
I would like to understand Inversion of control or Dependency injection from python
@twilightop
18 күн бұрын
This is very helpful, we need more like this!
@jeffreyndukwe3869
18 күн бұрын
Nice tutorial
@carry_boats
15 күн бұрын
very educational, thx!
@wahwahwally1
18 күн бұрын
nice one!
@amirabas8817
18 күн бұрын
Thanks ❤❤❤ So helpful 🎉🎉
@eeshtarr
18 күн бұрын
You sometimes do not clearly differentiate between the class and the instance. You say 'class' a few times when you meant 'instance'
@EUJokerBR
16 күн бұрын
I think this is a good point, since you can create class variables that are the same in every instance of the class. For anyone learning it's pretty simple to make the mistake of using a class variable think it works the same as an instance one
@dimmudimmu8512
17 күн бұрын
Coming from c, what do i need to unlearn to understand python
@KumR
18 күн бұрын
Beautiful... BTW when thou said Initializer ... thou meant constructor ? And how do we know what return type to give functions ? like when to use None and when to use "Str".
@DrDeuteron
17 күн бұрын
Init and str are strongly typed, you can’t return anything else. The actual constructor is dunder new. Dunder Init is indeed an initializer.
@Anat20081
18 күн бұрын
Is the infromtaion (like brand, power_rating) private like in C#? Do you also need to have get and set methods for the information to use it outside the class?
@quitchiboo
18 күн бұрын
Python doesnt really have a concept of private/public attributes. You can use hints, but they are not enforced. Getters and setters are not necessary, but afaik they are not mandatory in any language, it's just recommended in OOP for various reasons.
@DrDeuteron
17 күн бұрын
Python should never have get and set methods, ever, for attributes. Rather, use the property() decorator.
@VrishabhBansod
12 күн бұрын
What about all OPP pillars like Inheritance, Polymorphism etc.
@yungc0c0_
17 күн бұрын
Can you do one of these for NumPy?
@kanishkashami
18 күн бұрын
Do decorators next
@erkakb
6 күн бұрын
? how come the instantiation works here? here it seems attributes are somehow set by : (colon) operator but not the = (equal sign) operator In Python, when you instantiate an object, you use the = operator to assign the object to a variable, and the arguments inside the parentheses should be in the form of key=value, not key: value. How does the compiler accept this notation??
@secrontory1346
18 күн бұрын
7th
@deequi77
18 күн бұрын
3rd one
@kadircalloglu2848
18 күн бұрын
If I were you, I would use enums in the power rating section.
@johnmoff9324
16 күн бұрын
What editor is this?
@AriteZastrow
16 күн бұрын
I guess it's PyCharm 🤓
@harshjain2171
18 күн бұрын
First one
@shiva_1947
18 күн бұрын
😍😍😍😍
@user-fw3vs7tm1v
18 күн бұрын
5th
@sorenschultz1144
16 күн бұрын
Let's be honest, python object oriented programming is POOP
@huseynxayyati2355
16 күн бұрын
Great videos with clear expectations thank, please explain classmethods and decorators .
Пікірлер: 53