Pythons Data Hiding Convention

Поделиться
HTML-код
  • Опубликовано: 2 фев 2025

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

  • @n3los
    @n3los 7 лет назад +12

    This is the best Python training I have ever seen. I watched all videos, I wrote code myself by following your examples and now I feel much better handling objects regarding Network Programing, like Napalm, paramiko, netmiko, telnetlib, even other SDK tooks for API calls, but it was just because I clearly understood the basis you explained. your videos really changed me.
    Thanks for all the effort

  • @matexxo4004
    @matexxo4004 7 лет назад +9

    Wow I have finally understood the meaning of getters and setters. Thank you John, your step by step approach is great, it feels good to understand WHY things are this way. I saw nobody else who gave as clear explanations as you did.

  • @alirezar.1627
    @alirezar.1627 5 месяцев назад +1

    Thank you John for your amazing effort to create a new lens of seeing how python truly works. Well done.

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

      Thank you for the positive comment. It is appreciated.
      Best wishes Phil

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

    I'm looking for a python tutorial about this topic because I'm having a hard time understanding it. I click your video... And when I saw a screenshot of a code, I said in my mind "here we go with some sh*tty tutorial."
    BUT AFTER A FEW MINUTES, you became one of my favorite RUclipsr ever from 0 to 100 real quick.
    You explain things slowly, clearly, and detailed. You deserve millions of subscribers.

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

      Thank you for your positive comments. Glad the videos are helping. Check out the following website: www.PythonByteSize.com
      Best wishes
      Phil Jones

  • @fadilyassin4597
    @fadilyassin4597 3 месяца назад +1

    again and again you proof your ability as an excellent tutor. I encourge any one who want to learn python to come to this chanel first alot of conundrums in other videos will be a bit clearer

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

    A really good explanation for the beginners, thanks to the effort.

  • @ahmedr.
    @ahmedr. 3 года назад +1

    wonderful playlist that I managed to finish it in 3 days . I hope you create another video to show an example of how different objects interact with each other.

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

      I will be returning to object oriented videos soon.
      Best wishes
      Phil

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

    These are excellent, accessible to many confused by other presenters, and still relevant today. They only go about halfway, tho, as people are indeed expected to understand inheritance and polymophism in OOPS in Python. When those videos come, we will no doubt see more people saying "I never understood this properly before these excellent videos!" Cheers.

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

      Thank you for the feedback it is appreciated.
      Best wishes
      Phil

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

    Thank you for your in-depth explanation of this video. It is very informative. Please continue uploading great contents of Python.

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

    Thx A lot again
    Please continue the series , this is a very good lessons

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

    thank you very much, this was a great playlist. and it would be even better if you can extend the list with more advanced oop topics such as discriptors,static methods , class methods and super. thank you in advance

    • @johnphilipjones
      @johnphilipjones  3 года назад +2

      I will be adding videos on the topics you mentioned
      Best wishes Phil

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

    Excellent as always.

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

    This is an excellent series. Thank you.

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

      Thank you for your positive comments it is appreciated.
      Best wishes Phil
      (John Philip Jones)

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

    I have been studying OOP already 4 months and i can say that this is the best tutorial i have ever met. It shows basics of OOP very clearly and explanatorily. It would be very good if you had similar tutorial for intermediate and/or advanced level OOP even for a fee. If you don't have such, could you please offer someone's course who has the same approach and methods with yours ? Thanks in advance

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

      Thank you for your positive comments. I will be covering more advanced topics in OOP in the new year.
      My website at the link below may have some suitable videos for you.
      Hope they help best wishes Phil

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

      The website is:
      www.pythonbytesize.com

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

    Thanks for all of these videos! They are really helpful!

  • @MohammedAwney84
    @MohammedAwney84 6 лет назад +2

    This is an excellent series. Hope to continuation I'm waiting .

    • @johnphilipjones
      @johnphilipjones  6 лет назад +1

      Yes I will be uploading as often as possible. Best wishes Phil

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

    Thank you very much!!

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

    Great video!

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

    YOU ARE THE BEST

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

    Thanks for these video. I was looking for other oops concept such as inheritence, multiple inheritence, abstract class, polymorphism. Where do i find these concept?

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

      I will be covering these topics in the new year. In the meantime you may find the following link useful:
      www.programiz.com/python-programming/polymorphism
      Best wishes Philip

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

    Oh no. I finally find someone who makes oop clear and the series ends before you address passing data between class instances.
    I would also have liked to see what's under the hood with kivy, ktinker and other modules so I can know what I'm dealing with.
    Was an excellent series though, I'm only disappointed because the penny was finally dropping.

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

      Hello David, I will be returning to OOP towards the end of the year. Best wishes Phil

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

      @@johnphilipjones I'm delighted to hear that. And thank you for patient efforts here, it helped massively.

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

    so technically there really isn't any built in getter and setter functions in python as the get_balance method was a made up name, i'm i right? I fyou like to you could of called the get_balance to getting_the_balance(self)...... and it would of done the same thing. all in all its just a naming convention?

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

      You can achieve something similar using Python decorators. Best wishes Phil

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

    Educational videos, thank you!
    I wondering whether you are going to cover magic methods one day.

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

      Yes I have put them in the pipeline.
      Best wishes
      Phil Jones

  • @MaxGoddur
    @MaxGoddur 7 лет назад

    Not sure I see the idea behind the hidden data the logic escapes me.

    • @johnphilipjones
      @johnphilipjones  7 лет назад +6

      Large software systems are developed by many software engineers. Being human they make mistakes and they can access and change data values inappropriately. If data needs to be protected from accidental alteration you can arrange for it to be difficult to access so careless alteration is avoided. One technique is to hide the data field of an object so ‘out of the ordinary mechanisms’ are required to access it. As a member of a development team seeing a hidden data field should stop you in your tracks from accessing it or at least force you into considering the consequences of altering it. Your team will have most probably ‘outlawed’ access. If a software engineer ignores this and the system crashes because of their coding they would not be too popular with the team leader. If the system was a safety critical real time system the consequences could be much worse.

    • @MaxGoddur
      @MaxGoddur 7 лет назад

      Ah, but it appears to be more of an honor system as any programmer can view the code and figure out how to access the "private" data. I could see if this was a binary file but the code is there for all to see. Guess you made the point that said to me "yes I see" which was :
      """
      As a member of a development team seeing a hidden data field should stop you in your tracks from accessing it or at least force you into considering the consequences of altering it.
      """

    • @johnphilipjones
      @johnphilipjones  7 лет назад +3

      Python has numerous ways of accessing hidden data. But should only really be used to aid debugging and also tying to understand code. Other languages hide data that cannot be accessed and this is very good for safety critical systems.

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

    also i prefer to keep everything public then private lol if its my own code and i wasn't following a companies way of doing things hahahha

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

      I recommend avoiding global/public variables. Data hiding results in code that is easier to debug. Best wishes Phil