Python 2.7 Tutorial Pt 7

preview_player
Показать описание
I will explain the basics of Object Oriented Programming with Python. I cover the following : What is an object, class, private attribute, method and Encapsulation
Рекомендации по теме
Комментарии
Автор

@Colstonewall You are correct. The reason why it isn't technically a constructor is because it doesn't set aside memory like a normal constructor. It is always called though when a new object is created

derekbanas
Автор

@Colstonewall Feel free to ask any questions. C++ can only be taught through numerous examples. I'll cover it eventually. Python is a great first language. I'm here to help as much as I can

derekbanas
Автор

It takes a lot of practice. You have to teach yourself to stop verbalizing everything in your head as you read. It is kind of like how you scan read by using your finger, but you learn to cut out unnecessary words as well. It is a great way to take in all of the major topics very quickly. I'll often speed read a book and then go back and read anything that confused me after.

derekbanas
Автор

The constructor is used to initialize every object. It provides default values. You don't need to use the destructor because it is just a request to eliminate an object from memory.

derekbanas
Автор

The easiest way to do this is to force yourself to stop subvocalizing what you are reading. Subvocalizing is when a person speaks the words they are reading either out loud or in their head.

Now that you have eliminated subvocalizing:

Read by moving your finger at a consistent speed over the words
Slowly increase the speed
Increase your ability to skip over descriptive words, conjunctions, etc.
Focus on the core concepts
Start moving your finger over entire paragraphs instead of sentences

derekbanas
Автор

Just wanted to jump in and say that I've been picking up and dropping learning python for 6 months now. I was extremely frustrated with the quality of the documentation and discrepancies between texts. Yours is by far, the best spoken, most detail tutorial I've seen online.

Walletau
Автор

@Colstonewall Technically it isn't a constructor, but it is the first function called when an object is created.

derekbanas
Автор

Thank you very much :) I taught myself to speed read from a couple books. One of the best is called Remember Everything You Read. It takes practice though and more than a week of practice for sure

derekbanas
Автор

your videos are so good....you speak so confindently, you don't jumble up words or go um, and you odn't make mistakes, everything runs smoothly. Thank you so much for your tutorials

Tryosaurus
Автор

The more I watch... the more I know.. how much I do not know.
Thanks for videos. They are extremely fun.

kylesera
Автор

Thank you. I know the tutorials aren't perfect, but they are aimed to fill a niche more than anything else. I use to struggle learning when I was little. It wasn't until I learned how to speed read that learning became easy for me. Most of my videos are based around speed learning. I don't know if that is a common concept? I just know most tutorials always annoyed me because they were terribly slow and filled with oks and ahhhs :)

derekbanas
Автор

I think I really got serious about it around 19, so yes you can do it. It just takes time to develop this skill. It is sort of like the body language stuff I'm kind of popular for. If you practice it, it eventually just works without thinking about it. It becomes a muscle memory type of thing. Give it a go. There are a bunch of good cheap books out there

derekbanas
Автор

@Colstonewall It just set default values for name and owner

derekbanas
Автор

I'm glad you enjoyed them. You're very welcome :)

derekbanas
Автор

Thank you :) I've been trying to figure out what would be the best way to name everything. I have meant to make descriptive thumbnails for all of the videos, but I haven't gotten around to it. I need to make that a priority

derekbanas
Автор

@trailingdot It's just considered good form to call return to notify the program that everything executed properly

derekbanas
Автор

@TheJ0Ost No __init__ is called when a new class object is created. If you have an __init__ arguments will be sent to it. Without an __init__ the class can only be called without arguments

derekbanas
Автор

and also thank you so much for providing these videos. I have been fishing around for awhile trying to find good online coding mentors and here you are! :)

Jb
Автор

GREAT TUTORIAL. Thanks for the time you invested. This is better than the 7 week course i just completed.

joshkirby
Автор

Sorry, but I'm not allowed to provide my videos for direct download from YouTube. The reason is complicated. I'd do it if I could, but I just can't. Sorry about that.

derekbanas