• Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    81
    ·
    6 months ago

    nah, I’m never complaining about self in Python after having tried the this and that nonsense in JS.

    oh, you’re using a named function instead of an arrow fn? Guess what, this is not what it used to be anymore.

    • unalivejoy@lemmy.zip
      link
      fedilink
      arrow-up
      20
      ·
      6 months ago

      Oh, you assigned a method to a variable before calling it? Congratulations, this is now undefined.

      • pinball_wizard@lemmy.zip
        link
        fedilink
        arrow-up
        4
        ·
        6 months ago

        Yes. There’s no telling what this is. this could be anything. We tried to keep track of this, but no one knows when this will change.

        • unalivejoy@lemmy.zip
          link
          fedilink
          arrow-up
          7
          ·
          6 months ago

          I used to be with this, but then they changed what this was.

          Now what I’m with isn’t this, and what’s this seems weird and scary to me.

          This’ll happen to you!

    • dufkm@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      1
      ·
      6 months ago

      As a non-programmer who’s occasionally dabbled with wxPython, I’ve entangled myself with self.parent.parent and their childs/siblings more than once. At that stage I know my project is done.