honestly I can't find words to express how good you are I have seen a lot of python tutorials on youtube udemy corseara no one no one atall have your talent in explaining python to beginers as you do I wish I have the means to let every one who wants to learn python to see your videos you ar a 10 star tutor yes 10 excellent work thank you
Ahora recién entiendo por qué el creador de la POO se lamenta haber nombrado a este paradigma de programación como orientada a objeto cuando debió nombrarla ORIENTADA A MENSAJES!!! Muchas Gracias!!!!
I suspect they called it object-oriented because systems are analyzed/designed around concepts which can be implemented as class diagrams from which objects are created. These objects then communicate by sending messages. Best wishes Phil
Can you pleas post a sequence of these videos which tells us in which order we should go through them for the OOP playlist. I see after video 2 I had to come straight to video 8
In this video, at 12:55 , in the piece of code, does the words=welcome.split() creates an another Object in the execution space as the result of the welcome.split() has been assigned ?
In video 60 at 8:31 you start with a new concept in which Objects can message other objects but here in this video there is no sign of where the message(split()) is coming from I expected to see as a source an object and and destination object in the diagram, keeping with the flow of your model, is there something I missed?
words = welcome.split() On the right side of the assignment sign (equal sign) you have a message. A message is made up of the name of the object and the method to be invoked. welcome is the object and split() is the method to be invoked. split() is a method defined in the string class welcome is an instance (i.e an object) of the string class When you write a program there always has to be a first program statement that executes. This first statement is usually in a function (called main()) even if it is not apparent in the code. This first statement does not have to be part of an object. Also you can mix object oriented programming with procedural programming.
The method split() will have been designed to return a value. The value will be a list structure whose elements are strings. As it returns a value there must be something that will store what is returned. In this case words is the name bound to the list (i.e. it 'stores' what is returned).
Hello Sir! Here i am giving reference of an error message: AttributeError: 'int' object has no attribute 'split' my question is: why python is saying"object" to 'int' and "attribute" to 'split' here ? according to my understanding which i gain from your videos that, 'int' is a class, not object, and split is a behaviour/method, not attribute.
Object oriented programs generically regard a class as defining attributes and behaviours. Behaviours are implemented by methods (i.e. functions) and attributes are essentially variables. However, Python in their documents calls both attributes and methods, attributes. This can be very confusing. It is just a question of realizing that in the Python world the use of the language to describe methods and attributes is different to other OOP languages.
honestly I can't find words to express how good you are I have seen a lot of python tutorials on youtube udemy corseara no one no one atall have your talent in explaining python to beginers as you do I wish I have the means to let every one who wants to learn python to see your videos you ar a 10 star tutor yes 10 excellent work thank you
Thank you for your generous comments it is appreciated.
Best wishes
Phil
(John Philip Jones)
AMAZING TEACHING. VERY ENJOY SUCH PROFUND EXPLANNATION ABOUT PROGRAMMING! EXCELLENT WORK! THANKS MR. JONES!
How I love this guy!
Thank you for your generous comment.
Best wishes Phil
the smartest and clearest tutorial on this earth !!!
best teacher ever !
+sergey gordjei Thank you check out the following:
www.pythonbytesize.com/
Regards
Phil
amazing teaching thankyou
Ahora recién entiendo por qué el creador de la POO se lamenta haber nombrado a este paradigma de programación como orientada a objeto cuando debió nombrarla ORIENTADA A MENSAJES!!! Muchas Gracias!!!!
I suspect they called it object-oriented because systems are analyzed/designed around concepts which can be implemented as class diagrams from which objects are created. These objects then communicate by sending messages.
Best wishes Phil
Can you pleas post a sequence of these videos which tells us in which order we should go through them for the OOP playlist. I see after video 2 I had to come straight to video 8
I recommend that you view the videos on the supporting website where they are more easily ordered. See the following link: www.PythonByteSize.com
In this video, at 12:55 , in the piece of code, does the words=welcome.split() creates an another Object in the execution space as the result of the welcome.split() has been assigned ?
Yes it produces a list object.
Best wishes Phil
Thanks JPJ , for your reply its much more clear now
In video 60 at 8:31 you start with a new concept in which Objects can message other objects but here in this video there is no sign of where the message(split()) is coming from I expected to see as a source an object and and destination object in the diagram, keeping with the flow of your model, is there something I missed?
words = welcome.split()
On the right side of the assignment sign (equal sign) you have a message. A message is made up of the name of the object and the method to be invoked.
welcome is the object and split() is the method to be invoked.
split() is a method defined in the string class
welcome is an instance (i.e an object) of the string class
When you write a program there always has to be a first program statement that executes. This first statement is usually in a function (called main()) even if it is not apparent in the code. This first statement does not have to be part of an object. Also you can mix object oriented programming with procedural programming.
Will digest thank you so much
hi phil, what if the split method is not assigned to the word. Where does it go
The method split() will have been designed to return a value. The value will be a list structure whose elements are strings. As it returns a value there must be something that will store what is returned. In this case words is the name bound to the list (i.e. it 'stores' what is returned).
Hello Sir!
Here i am giving reference of an error message:
AttributeError: 'int' object has no attribute 'split'
my question is:
why python is saying"object" to 'int' and "attribute" to 'split' here ? according to my understanding which i gain from your videos that, 'int' is a class, not object, and split is a behaviour/method, not attribute.
Object oriented programs generically regard a class as defining attributes and behaviours. Behaviours are implemented by methods (i.e. functions) and attributes are essentially variables. However, Python in their documents calls both attributes and methods, attributes. This can be very confusing. It is just a question of realizing that in the Python world the use of the language to describe methods and attributes is different to other OOP languages.