• 0 Posts
  • 81 Comments
Joined 11 months ago
cake
Cake day: July 31st, 2023

help-circle

  • To offer a differing opinion, why is null helpful at all?

    If you have data that may be empty, it’s better to explicitly represent that possibility with an Optional<T> generic type. This makes the API more clear, and if implicit null isn’t allowed by the language, prevents someone from passing null where a value is expected.

    Or if it’s uninitialized, the data can be stored as Partial<T>, where all the fields are Optional<U>. If the type system was nominal, it would ensure that the uninitialized or partially-initialized type can’t be accidentally used where T is expected since Partial<T> != T. When the object is finally ready, have a function to convert it from Partial<T> into T.


  • It seems pretty obvious to me at this point that the DNC would rather lose than have an actual progressive win.

    It’s not in their interests to let a progressive win. Just like their counterpart, the DNC takes a shit ton of bribery donations from corporations lobbyists. Bringing in a progressive who would reform the system or push back against pro-corporate policies is biting the hands that feed them.



  • pivot_root@lemmy.worldtoLemmy Shitpost@lemmy.worldStay Mad, Tankies
    link
    fedilink
    arrow-up
    10
    arrow-down
    5
    ·
    edit-2
    8 days ago

    The system is set up in a way that the only viable options are between two evils, unfortunately. Under a FPTP system where the only good options are minority parties that won’t win a single seat in their districts, you’re left with the choice of voting for the lesser evil, or voting for your morals but increasing the risk of the greater evil winning.

    It’s a no-win situation.






  • In order to improve your product experience, your BrainSpider™ Neural Sight Restoration Implant product will be transitioning to a subscription model. As such, we have updated our terms of service.

    By accepting our updated terms of service, you agree to accept all future and retroactive changes to the BrainSpider™ Terms of Service and forfeit your right to sue Neuralcorp. If you do not agree to these terms, immediately cease using your BrainSpider™ product. For customers who wish to inquire about implant removal, we remind you that the consultation waiver acknowledges and accepts that the surgical operations performed by Neuralcorp licensed medical contractors are permanent and irreversible. We thank you for your understanding.






  • pivot_root@lemmy.worldtoMemes@lemmy.mlKnow the difference.
    link
    fedilink
    arrow-up
    3
    arrow-down
    7
    ·
    2 months ago

    From a theoretical point, they don’t count as communist. They entirely dropped the all-important aspect of giving power to the working class.

    Both the USSR and China, in their self-described “communist” periods, were ruled with absolute power and directed by a head of state. The USSR collapsed, and modern China is about as communist as North Korea is democratic.






  • pivot_root@lemmy.worldtoLemmy Shitpost@lemmy.worldbath time
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    3 months ago

    The funny part is that it wouldn’t even work.

    If the plug was on a GFCI outlet, it would trip once neutral and hot are shorted.

    If it wasn’t on a GFCI outlet, it would be an inefficient water heater. Current is inversely proportional to resistance, and the inch of tap water between both conductors has a significantly lower resistance than the human sitting at the other side of the tub. At American voltages of 110V, the worst thing that will probably happen is the wires heat up from the current passing through them. Now, if it only had the live wire exposed and you had a metal tub, that might be a different story…