• 0 Posts
  • 13 Comments
Joined 5 days ago
cake
Cake day: September 21st, 2024

help-circle
  • I would do

    class MyClass:
        def __init__(self, value):
            self._whatever = value
    
        @property
        def whatever(self):
            return self._whatever
    

    Personally, I would type hint all of that but I’m just showing how you can do it without types. Your linter should be smart enough to say “hey dumbass did you mean this other thing”? Also since we didn’t create a setter you can’t arbitrarily overwrite the value of whatever so thats neat.

    And I’ll just say before I post that I’m on mobile and I’m sorry if the formatting is fucked. I’m not going to fix it.






  • That isnt how it works. The speed of light is the speed of causality; it doesn’t have anything to do with light. Its just the fastest speed at which things can happen. Light, being massless, happens to travel at that speed.

    In your scenario, the light beam would just be stretched along its length and the 2D interface on the surface of the moon would just “lag behind” from your POV. But it would lag at the speed of light.


  • Backlog3231@reddthat.comtomemes@lemmy.worldScumbag Universe
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    1 day ago

    ELI5: If I’m moving away from you at 50 KPH and you’re moving away from me in the opposite direction at 50 KPH then after 1 hour we will be 100 kilometers away from each other even though the speed limit is 75 and neither of us broke it.

    That’s an extreme reduction but gets the general idea across.