• 0 Posts
  • 15 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.








  • Do you have a better socioeconomic ideology to propose?

    Anarchy can’t work on a large scale.

    Communism was tried and tested, and it resulted in a dictatorship (North Korea), a “democratic” country ruled by a man whose opposition mysteriously keeps falling out of windows (Russia), or a capitalist society with eroded human rights that still calls itself communist (China).

    The best option, in my opinion, is to keep what works but tax the fuck out of the rich and corporations and use their money to provide services to the less fortunate. But, thanks to decades of propaganda, half the country refuses to support that idea because socialism = communism = bad.



  • Let’s consider for a moment that water contains hydrogen, which is a key ingredient in thermonuclear warheads. Clearly, by shooting a little girl in an act of terrorism, they were preventing an act of terrorism.

    No? Not buying that? Uhmmm… OK, well. Did you ever stop to think that perhaps the little girl was not a civilian, but an operative bringing back supplies to her Hamas handlers? The IDF didn’t know what a child was capable of, so of course they needed to use lethal force.

    Still no? Well, fuck you, you’re antisemitic.

    —Israel supporters

    Obvious /s, I hope.