Pythons Data Hiding Convention

Sdílet
Vložit
  • čas přidán 28. 08. 2024
  • Looks at how Python is able to 'mimic' the data hiding mechanism of other programming languages.

Komentáře • 42

  • @n3los
    @n3los Před 6 lety +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 Před 6 lety +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.

  • @wilbertraymundrayos4175
    @wilbertraymundrayos4175 Před 5 lety +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 CZcamsr ever from 0 to 100 real quick.
    You explain things slowly, clearly, and detailed. You deserve millions of subscribers.

    • @johnphilipjones
      @johnphilipjones  Před 5 lety +1

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

  • @jvsnyc
    @jvsnyc Před 3 lety

    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  Před 3 lety

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

  • @mastermindtechniques1669
    @mastermindtechniques1669 Před 3 lety +2

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

  • @ahmedr.
    @ahmedr. Před 3 lety +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  Před 3 lety +1

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

  • @wildmanofhk
    @wildmanofhk Před 2 lety +1

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

  • @Codality
    @Codality Před 2 lety +1

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

  • @nriezedichisom1676
    @nriezedichisom1676 Před 2 lety +1

    Excellent as always.

  • @ridhatlati1310
    @ridhatlati1310 Před 2 lety +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  Před 2 lety +2

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

  • @TankutTalu
    @TankutTalu Před rokem

    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  Před rokem +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  Před rokem +1

      The website is:
      www.pythonbytesize.com

  • @jokemiri
    @jokemiri Před rokem

    This is an excellent series. Thank you.

    • @johnphilipjones
      @johnphilipjones  Před rokem

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

  • @MohammedAwney84
    @MohammedAwney84 Před 5 lety +2

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

    • @johnphilipjones
      @johnphilipjones  Před 5 lety +1

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

  • @helenpepper472
    @helenpepper472 Před 3 lety +1

    Thank you very much!!

  • @sreekarvattipalli9925
    @sreekarvattipalli9925 Před 5 lety +3

    YOU ARE THE BEST

  • @davidmurphy563
    @davidmurphy563 Před 4 lety +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  Před 4 lety +2

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

    • @davidmurphy563
      @davidmurphy563 Před 4 lety +2

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

  • @uncoded0
    @uncoded0 Před 3 lety +1

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

  • @alokjoshi4861
    @alokjoshi4861 Před 4 lety +1

    Great video!

  • @Nyumbane
    @Nyumbane Před 5 lety

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

    • @johnphilipjones
      @johnphilipjones  Před 5 lety +1

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

  • @sanjeevdhakal6124
    @sanjeevdhakal6124 Před 2 lety

    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  Před 2 lety

      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

  • @srali7609
    @srali7609 Před 4 lety +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  Před 4 lety +2

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

  • @MaxGoddur
    @MaxGoddur Před 7 lety

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

    • @johnphilipjones
      @johnphilipjones  Před 7 lety +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 Před 7 lety

      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  Před 7 lety +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 Před 4 lety

    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  Před 4 lety +2

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