Learn Classes in Python in 4 Minutes

Поделиться
HTML-код
  • Опубликовано: 18 июл 2019
  • Learn Classes in Python in 4 Minutes
    I attempt to teach you how to use classes inPython in less than 4 minutes.
    "Clean Code Friday"
    If you want to receive one short email from me every week, where I go through a few of the most useful things I have explored and discovered this week. Things like; favourite apps, articles, podcasts, books, coding tips and tricks. Then feel free to join kalletech.com/clean-code-friday/
    CONTACT: contact@kalletech.com
    Follow me on:
    TWITCH: / kallehallden
    INSTAGRAM: / kallehallden
    TWITTER: / kallehallden
    GITHUB: github.com/kallehallden
    --------------------------------------------------------------------------------------------------------
    GEAR:
    COMPUTER - amzn.to/2GX54SU
    CAMERA - amzn.to/2Nr09L
    MAIN LENS - amzn.to/2tzgJzp
    PERFECT DRONE - amzn.to/2NqkQa1
    Secondary Lens - amzn.to/2UcTA1e
    Secondary Lens - amzn.to/2Ebp5SV
    Zoom Lens - amzn.to/2U3UH3j
    MONITOR - amzn.to/2U6hF9Z
    website:
    kallehallden.tech/

Комментарии • 414

  • @christophert8419
    @christophert8419 3 года назад +674

    If anyone is wondering what "self" means, it's just an instance reference. Basically its a variable that refers to the "user" as he or she is being built. Say for example you built two users, Dan and Sally. Dan is a different instance of the Person Class than Sally which python knows because of self.

    • @K..C
      @K..C 2 года назад +13

      Thank you!!!

    • @tonysamosa1717
      @tonysamosa1717 2 года назад +43

      Hmmm that makes sense but I can’t visualize it in my mind. I need to think on it more. This is what coding is. Looking over the same concept with new eyes after more experiences until you understand

    • @juansnyders7323
      @juansnyders7323 2 года назад +16

      Makes sense but I still don't understand, coding is simply lovely!

    • @jonsentio3150
      @jonsentio3150 2 года назад +2

      @@tonysamosa1717 very true

    • @gamepool8517
      @gamepool8517 Год назад

      👏👏👏👏

  • @bytesizebiotech
    @bytesizebiotech 4 года назад +295

    You have no idea how many videos and books i've gone through to understand classes. Your video was what made it clicked. Thank you!!!

  • @lukascenek6928
    @lukascenek6928 3 года назад +12

    Literally the best video about classes. Never learned this much info in just less that 4 minutes.

  • @GrechStudios
    @GrechStudios Год назад +5

    I'm not a programmer, but was interested in a quick summary of what classes were, and this was perfect for me. Excellent explanation.

  • @simone9740
    @simone9740 2 года назад +1

    Thank you sooooooo much!
    I was looking everywhere and couldn't find a good tutorial on classes until now.
    This was brilliant: short, direct, cristal clear.
    Thank you again!

  • @monstercuber998
    @monstercuber998 5 лет назад +176

    I would definitely love for this to become a series!
    Like these short straight to the point easy videos explaining everything, maybe you could do it for other languages as well like Java?
    Either way, keep up the great work Kalle!

    • @Hallden_
      @Hallden_  4 года назад +19

      Thank you, I'm super glad to hear that!
      Yeah I was planning on doing this with Java first just because I feel like classes in Java are really great for explaining how the concept of objects/classes work in programming. So maybe I will do some Java as well :)

    • @monstercuber998
      @monstercuber998 4 года назад +2

      @@Hallden_ Thanks Kalle! I'm so many of us would benefit from it!

    • @C0NN0C
      @C0NN0C 4 года назад +1

      Great format, really appreciate it. This way you can get some brief coding input even on busy days. Thanks a lot!

    • @maybeanonymous6846
      @maybeanonymous6846 2 года назад

      fireship

  • @outrotears2788
    @outrotears2788 3 года назад +6

    i've been struggling with classes for so long but idk what it was ab this video but now it all makes sense omg

  • @uzochukwu1556
    @uzochukwu1556 9 месяцев назад +12

    This is literally the best explanation on yt. Detailed yet concise.

    • @Rafael-oq9vu
      @Rafael-oq9vu 3 месяца назад

      no its not

    • @OverHeatVD
      @OverHeatVD Месяц назад

      @@Rafael-oq9vu point us to a better one then?

  • @Deadcookie-qn2pe
    @Deadcookie-qn2pe Год назад +1

    very helpful! I have been recently having a bunch a obstacles in my programming journey and this has been a real help

  • @TheCubeaholic
    @TheCubeaholic 2 года назад

    This is THE BEST class explanation for "initializing" understanding. THANK YOU!

  • @jakecullimore1172
    @jakecullimore1172 2 года назад

    Crystal clear, great job! I wanted to find out about this for so long

  • @pratikthakur3530
    @pratikthakur3530 3 года назад

    Thanks man. I really appreciate you taking the time to explain it so simply yet effectively. Keep up.

  • @KrinkKut
    @KrinkKut Год назад

    Short, effective, and to the point. This helped me understand it in simple terms. Thank you so much!

  • @suparnaprasad8187
    @suparnaprasad8187 Год назад

    What an amazing video! Beautifully explained in such a short period of time! Thank you!

  • @thomassheldon2365
    @thomassheldon2365 Год назад +1

    Absolutely brilliant video, I was completely clueless before this! Please make more!

  • @arnold2660
    @arnold2660 Год назад

    Excellent, concise and precise presentation. Straight to the point. Thanks man 👍

  • @RVAraghav
    @RVAraghav 5 лет назад +1

    Thank you so much for starting this series. I really enjoy short videos and this is awesome to begin with.

    • @Hallden_
      @Hallden_  5 лет назад

      Thank you, I'm glad you liked it! :)

  • @blblbl2178
    @blblbl2178 3 года назад +1

    Thank you! Really enjoyed this format.

  • @ssjordan34
    @ssjordan34 Год назад

    This was a great, quick summary. I am working to master the use of classes in my code, and I have watched many videos and tutorials. This pairs well with them. Great work.

  • @parsasamareh4801
    @parsasamareh4801 3 года назад +4

    Holy shit ! You have now solved the problem of all the students of our school

  • @hanlowww6791
    @hanlowww6791 2 года назад

    i think im in love, thx for the short useful video!

  • @ayasaki.pb_787
    @ayasaki.pb_787 9 месяцев назад +1

    fast and precise, exactly what I needed

  • @ilmw1234
    @ilmw1234 Год назад

    Your explanation is finally one I understand and have been helped by. Thank you so much!

  • @damoonrobatian9371
    @damoonrobatian9371 2 года назад

    Best explanation of the class object I've ever seen or read for someone new to coding like me. Thanks.

  • @MarcoYosh
    @MarcoYosh 2 года назад +1

    Truly amazing, I was going through material on classes and thought dam this is gonna take some time to learn. Found your video and it all made sense instantly.

  • @chrischausse7232
    @chrischausse7232 5 месяцев назад

    You explained something that most make so complicated, and you made it so simple and to the point. Wow, it was so easy to understand. Thank you very much for your quick and insightful video!

  • @EngineerFormidable
    @EngineerFormidable 5 лет назад +6

    This is was super good. Please continue this. You just got a new sub !

    • @Hallden_
      @Hallden_  4 года назад +1

      Nice! Thank you! :)

  • @jei_jeig
    @jei_jeig 4 месяца назад

    Thanks! Your video made it easier for me to grasp the concept.

  • @dfgsdgfdoker9996
    @dfgsdgfdoker9996 3 года назад +107

    Everyone:
    You can't learn python OOP in 4 minutes!
    This dude:
    Hold my beer

    • @Gladiator-wy5qb
      @Gladiator-wy5qb 3 года назад

      Yeah man
      You're right.

    • @noah77
      @noah77 3 года назад

      It's true, you can't learn oop (in py) in 4 mins. He didn't mention a lot of things

    • @noah77
      @noah77 3 года назад

      @@Gladiator-wy5qb he isn't

    • @Gladiator-wy5qb
      @Gladiator-wy5qb 3 года назад

      @@noah77 Don't u understand a joke 😁

    • @noah77
      @noah77 3 года назад

      @@Gladiator-wy5qb I assumed it wasn't a joke 🤷‍♂️

  • @creative.money_eu
    @creative.money_eu 2 года назад +1

    THANKS SO MUCH!
    I come from PHP programming and it just made me crazy how hard it is to find information to switch over to python fast, FINALLY I FOUND THIS, thanks!

  • @kieranmcgranaghan3025
    @kieranmcgranaghan3025 3 года назад

    This was great such a good basic explanation. Thanks Kalle !

  • @training7574
    @training7574 7 месяцев назад

    Mycket informativt, tack. Trevlig stil på dina videor förresten.

  • @Opinionman2
    @Opinionman2 2 года назад +1

    spend 5 hrs on this topic with minimal progress. This 4 min video brought it it all together. THANKS!

  • @opismutinyspeech8586
    @opismutinyspeech8586 4 года назад +3

    Your a legend for this one man! Instant Sub!

  • @bravenick
    @bravenick 5 лет назад +3

    Man! That is really useful info. And I like the format of being short and straight to the point 👍🏼

    • @Hallden_
      @Hallden_  5 лет назад +3

      Thank you, that's exactly what I wanted, I think I will do more videos like this "4 minute tutorials" on different programming concepts

    • @bravenick
      @bravenick 5 лет назад +2

      @@Hallden_ Sound like a good strategy to go with!

  • @umaraliarshad7454
    @umaraliarshad7454 Год назад

    clear concept in short time, this shows how how good you are in programming.

  • @CrobsAdventures
    @CrobsAdventures 2 года назад +1

    Great concise definition!

  • @ludvig.widmark
    @ludvig.widmark 2 года назад

    Simple, fast and high quality. Thanks⭐

  • @ExcelTutorials1
    @ExcelTutorials1 Год назад

    Very well explained, thank you!!!

  • @arbihamolli3445
    @arbihamolli3445 4 года назад +3

    You did it in 4 minutes , i got it what classes are , thanks a lot !

  • @needsomehike
    @needsomehike 4 года назад +1

    simple logical explanation, helped me a lot. thank you very much,

  • @ProfePlaysMinecraft
    @ProfePlaysMinecraft Год назад

    Thanks man. Very helpful.

  • @hibagohar2772
    @hibagohar2772 Год назад

    Very nice, simple, fast and effective. Thanks!

  • @monjasonsteng7861
    @monjasonsteng7861 9 месяцев назад

    This was a great explanation. Thank you.

  • @waeluqiely8629
    @waeluqiely8629 Год назад

    You did very well! thank you!

  • @jailbirdx0x
    @jailbirdx0x 5 лет назад +9

    Hej Kalle! Thank you for discussing classes and objects: the fundamentals of OOP. I like this 4 minutes series of videos you have in mind. Maybe consider discussing Python's data structures like arrays, list, tuple and dictionary. Would love to have a better grasp on those topics.

    • @Hallden_
      @Hallden_  5 лет назад

      Okay that's a great idea! :)

  • @fsaforosaforo6338
    @fsaforosaforo6338 4 года назад

    Excellent review of Classes. Makes better sense now. Thanks.

  • @davida6146
    @davida6146 3 года назад +6

    This helped a lot! during my open book quiz - thank you!! Unfortunately, I'm considering a break from coding after this class is over... :(

  • @crushfruits2660
    @crushfruits2660 2 года назад

    This was exactly what I needed! Thanks

  • @dishonesttAbe
    @dishonesttAbe 4 года назад +10

    I'm new to programming and the idea of classes still kind of confuses me, but this really cleared things up for me. Thanks!

  • @andrewberry4890
    @andrewberry4890 3 года назад +1

    Great summary!

  • @brantbuckleymusic3383
    @brantbuckleymusic3383 2 года назад

    Well said: I really like your explanation here! I am taking an Intro to Python class and we are now leaning about Classes. Thanks for this!

  • @SideSteppingAverage
    @SideSteppingAverage 4 года назад

    Fantastic video! Thanks for the help.

  • @re_xngxpta7535
    @re_xngxpta7535 10 месяцев назад

    That was so concisely presented.

  • @jesuisravi
    @jesuisravi 2 года назад

    I would say you did did this pretty well. This process makes more sense to me than it did before watching this video.

  • @Ashes3123
    @Ashes3123 3 года назад

    Explained it really well. Thanks mate.

  • @Emptyslot366
    @Emptyslot366 3 года назад

    Ur classes r easy 2 understand and awesome. Thank u 4 making this 💓

  • @arhamatif2943
    @arhamatif2943 Год назад

    I watched other videos but got confused but you explained better than ever thank you and keep it up😉😊

  • @mcm0125
    @mcm0125 Год назад

    Thanks this makes much more sense now!

  • @chamithjanaka6040
    @chamithjanaka6040 5 лет назад +1

    Great stuff! Thank you, Kalle. Do more.

    • @Hallden_
      @Hallden_  5 лет назад +1

      Thank you, glad you liked it, I will do more :)

  • @ICOD73
    @ICOD73 2 года назад

    Thanks A lot. I now understand what the heck a class is doing. I used to get confused between classes and functions because they look the same for a beginner but now I see the difference.

  • @alejandrocarrizales1035
    @alejandrocarrizales1035 3 года назад

    Awesome explanation. Makes perfect sense!

  • @parthaguntur9446
    @parthaguntur9446 3 года назад

    You teach great , really GREAT!!!!!!

  • @avshreeanurag1010
    @avshreeanurag1010 2 года назад

    Thanks! Great job❤️

  • @mpfiesty
    @mpfiesty 7 месяцев назад +1

    I like the way you said to represent everyday objects in classes. I feel like that helped something click for me. 👍

  • @LipinHasan-gb1jh
    @LipinHasan-gb1jh 7 месяцев назад

    Thank you so much sir. I'll soon have my python exam about this stuff. It's short, simple and understanding. You're pretty cool at that.

  • @remadisson
    @remadisson 5 лет назад +3

    Short and informative! Keep it up!

    • @Hallden_
      @Hallden_  5 лет назад +1

      That's what I was going for, so thank you you! :)

  • @dmz140
    @dmz140 9 месяцев назад

    Excellent! Thanks!

  • @quaintmangaming3023
    @quaintmangaming3023 3 года назад

    This is perfect! Thank you!

  • @aakashjaiswal2003
    @aakashjaiswal2003 Год назад

    Very well explained, thanks!

  • @gwhatswrongwithyou9323
    @gwhatswrongwithyou9323 Год назад

    Now I understand this guy explain simpler and clearer than other RUclipsrs, it does mean he really understand truly everything.

  • @SuperJSM
    @SuperJSM Год назад +2

    Simple, yet effective.

  • @tstone9151
    @tstone9151 3 года назад

    Kudos to your brilliant teachings

  • @franklinsimpson3296
    @franklinsimpson3296 11 месяцев назад +1

    In Python, self is a conventionally used parameter name that refers to the instance of a class. It represents the current object being manipulated or accessed within a class method.

  • @_JohnDough_
    @_JohnDough_ 9 месяцев назад +8

    Perfect video! Short, yet well explained, detailed an concise. And no annoying changes in the camera angle every other second, like a lot of youtubers do today. Wish more youtubers would go with this approach when making videos about programming. Thanks for teaching me something new!

    • @idrissmabrouk
      @idrissmabrouk 9 месяцев назад

      Hey bro wanna learn python with me I'm still a beginner. I think it we be very usefull to me and to you if you're a beginner.

  • @IndiceEducation
    @IndiceEducation 3 года назад

    Amazing, helpful tutorial!

  • @hoagied3783
    @hoagied3783 3 года назад

    For some reason classes have not come easy to me but this video made me get it! Thank you!

  • @enzoloupp
    @enzoloupp 2 года назад

    Thanks! I understand it way better now :)

  • @oofsper
    @oofsper Год назад +1

    Perfectly Explained

  • @ryanthornton3556
    @ryanthornton3556 Год назад

    Perfect. Thank you

  • @akarshghale2932
    @akarshghale2932 5 лет назад +7

    Hey man, please explain creating iterators and decorators.

  • @mopingalbatross364
    @mopingalbatross364 8 месяцев назад

    love this thanks!

  • @djfago6240
    @djfago6240 Месяц назад

    well explained sir. Thank you

  • @alecvan7143
    @alecvan7143 Год назад

    Really well explained!

  • @VictorGiustiniPerez_
    @VictorGiustiniPerez_ Год назад

    Amazing explanation! Really helpful

  • @antoniobrandao1642
    @antoniobrandao1642 Год назад

    Great video man!

  • @2000mangoman
    @2000mangoman 3 года назад

    Thanks, very helpful.

  • @chaweziafrica9184
    @chaweziafrica9184 Год назад

    thanks for the advice and the lesson

  • @walkwitme
    @walkwitme 3 года назад

    Thanks man, very useful

  • @sheldoncasses849
    @sheldoncasses849 Год назад

    This was brilliantly succinct

  • @antonioagaraga111
    @antonioagaraga111 2 года назад +1

    thank you man, i try to understand so much with books and you in 4 minutes do it for me.

  • @Cityj0hn
    @Cityj0hn 3 года назад

    Best video on classes ever.

  • @BiancaAguglia
    @BiancaAguglia 5 лет назад +6

    The mini tutorials are a great idea, Kalle. I don't think you have to make them super short though. 😊 For example, in this video, it would be helpful to hear a little more about the dunder init method, and the convention of using "self" as a name for the object being created.
    I'm looking forward to seeing more videos in this series. You have a great way of explaining things. 😊

    • @Hallden_
      @Hallden_  5 лет назад +6

      Thank you!
      And yeah I see what you mean, and inevitably when making a short video I will have to cut some stuff out which like you said would be great to have and that would fit into a longer video. What I think I will do is do short videos and explain very limited and specific areas or concepts but do it for lots and lots of concepts so the 'self' convention might be a video of it's own. So that's kind of the idea that I have in mind, but I really appreciate your feedback! It's awesome to hear your thoughts on positive and negative stuff so that I have more things in mind for my next videos which will then hopefully improve the videos that I make :)

    • @BiancaAguglia
      @BiancaAguglia 5 лет назад +1

      @@Hallden_ The idea of dedicating short videos to concepts like self and dunder methods is even better than my original suggestion of including them in a longer video. 😊 And yes, I have no doubt you'll get better and better the more videos you make. Once you have an idea, you're very good of focusing and making it work. That's one of the things that make you inspiring. 😊

  • @firemixtape2369
    @firemixtape2369 Год назад

    I took a python programming class and didn’t understand classes at all. After watching this video I understand it completely, thank you.

  • @jishnudhar1507
    @jishnudhar1507 Год назад

    Thanks man, you're a legend!

  • @adriancruz3454
    @adriancruz3454 3 года назад

    this was amazing. thank you

  • @doctorsmith3116
    @doctorsmith3116 29 дней назад

    Thank you sir. It was very informative

  • @dronecuber7032
    @dronecuber7032 3 года назад

    Thank you so much! This video was so usefull. Thanks!

  • @kychemclass5850
    @kychemclass5850 Год назад

    Tq for your effort. Nice and punchy.

  • @krishmenon8876
    @krishmenon8876 Год назад

    this is so easy tysmm!!