• 0 Posts
  • 48 Comments
Joined 8 months ago
cake
Cake day: January 12th, 2024

help-circle






  • Inheritance established “is a” relationship between classes.

    class Turtle;  
    class TigerTurtle is a Turtle (but better);  
    class BossTurtle is a Turtle (but better);  
    

    Underlying classes hold an inner object to the super class, everything from Turtle will be in TigerTurtle and BossTurtle.

    In some languages that is configurable with public, private, protected keywords.

    Relatedly, there’s also composition, which establishes a “has a” relationship:

    class TurtleTail;
    class Turtle:
      var tail: TurtleTail; (has a tail);
    

    Since Turtle is NOT a tail, but a whole animal, turtle should not inherit TurtleTail. But it HAS a tail, thus we add turtle tail as a property.












  • ma1w4re@lemm.eetoLinux@lemmy.mlHow to quit VIM?
    link
    fedilink
    arrow-up
    2
    ·
    24 days ago

    To your “never got the appeal”.

    Ngl for me using vim is the only option. If something needs to be done using a mouse, it’s just not going to be done. I can’t aim properly due to problems with my arms, and it itches something in my brain everytime I try, it makes me literally furious and enraged.

    I tried using zed, but quickly found out that I can only control the text field with motions, nothing else.

    If I try using mouse, speed of anything I do gets multiplied by 0.1.

    Thanks to vim, I’m able to work with loads of text at all.

    Simple as that.



  • Generally, it is not advisable or legal to take a duck home from a park. Many parks have rules and regulations designed to protect wildlife, and removing animals from their natural habitat can harm both the animal and the ecosystem. If you find a duck that appears to be injured or in distress, it's best to contact a local wildlife rehabilitation center or animal control for assistance.
    

    😖😖😭😭😭😭