Web Developer by day, and aspiring Swift developer at night.

  • 4 Posts
  • 212 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle



  • I’m probably going to get a lot of hate for this, and I do recognize there have been problems with it all over the place (my code too), but I like null. I don’t like how it fucks everything up. But from a data standpoint, how else are you going to treat uninitialized data, or data with no value? Some people might initialize an empty string, but to me that’s a valid value in some cases. Same for using -1 or zero for numbers. There are cases where those values are valid. It’s like using 1 for true, and zero for false.

    Whomever came up with the null coalescing operator (??) and optional chaining (?->) are making strides with handling null more elegantly.

    I’m more curious why JavaScript has both null and undefined, and of course NaN. Now THAT is fucked up. Make it make sense.


  • dohpaz42@lemmy.worldtoProgrammer Humor@lemmy.mlWorst is UTC vs GMT
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    3 days ago

    You obviously don’t suffer from a sensitive circadian rhythm. To that I’d say, lucky you. But there are plenty of people who do suffer. And by the time they finally get used to the time change, it’s time to change again. It’s vicious and disruptive; to more than just scheduling. It has a direct (negative) impact on physical and mental health.




  • If you’re willing, I feel there is a bias in your argument that I’d like to explore more with you.

    You make the excellent point that plants are living organisms as well, but you also make the assumption that “it is much more humane to kill life forms without a brain.” You then go on to suggest that their sole purpose for existence is nothing more than reproduction.

    I’d like to challenge both of those assertions. But before I continue, I want to make certain of my position as anecdotal, as I am not an expert in these matters.

    It turns out that plants can see, smell, feel, and have a memory. And according to the scientist in the article, plants and humans also share DNA.

    We’ve all heard the advice that we should talk to our plants, as they react more positively (grow) to the sound of our voices. We also know that plants play a vital role in our existence.

    The most obvious is converting carbon dioxide into oxygen. They also provide shelter and protection for animals. They also help produce about 10% of the moisture in our atmosphere.

    As for brains, no they do not have the same type of brain or nervous system that we as humans are accustomed to having. But that is not to say that plants are incapable of making decisions.

    Take the Venus Flytrap as an example: it can detect when a bug has landed inside of its mouth, and after having another external stimuli triggered will it decide to trap that bug inside before it devours it for nutrients.

    I could go on, such that plants do communicate with other (e.g., grass when cut, fungus creating underground networks to each other).



  • They have simulated conditions in the parts of the accommodation most exposed to the sun and have tested the effectiveness of the cooling system with an objective to keep the indoor temperature between 23 and 26 degrees Celsius (73 and 79 degrees Fahrenheit).

    Then it continues with:

    The geothermal energy system will ensure that the temperature in the athlete apartments in the Seine-Saint-Denis suburb does not rise above 26 degrees Celsius (79 degrees Fahrenheit) at night…

    They also go on to say that the apartments will be around 11°F cooler than outside temps, which are expected to be over 100°F.

    Let’s just stop for a second and let that sink in. First of all, who keeps their houses up to 79°F at night? Is that a thing in Paris/Europe? Do they have ceiling fans or standing fans to keep the air moving?

    That aside, these are athletes who spend their daytime hours sweating their asses off, performing feats us mere mortals couldn’t dream of achieving. And, yet they are expected to “adapt” to have to suffer at night too? Fuck that noise.

    I’m all for reducing our carbon footprint, and finding more natural ways to keep cool in the hot summer months. But we also have to be practical and reasonable. I don’t blame those countries for giving France the middle finger and bringing their own ACs.


  • I get where you’re coming from, but given the cost of equipment these days, it’s important to consider whether or not the zero-config big box brand stuff will be around long enough to be worth the cost. While it’s a PITA to spend your efforts setting this all up, doing it yourself using open protocols can be worth it in the long run. And 9 out of 10 times, when you do it yourself, you can just leave it alone and forget about it.

    Edit: there is a good write-up between zigbee and matter, and for ease of use it looks like matter would be better for your use cases.








  • I am all for finding better ways to tackle sexual assault of any kind. But this is simply too far. As others I. This thread have pointed out: it’s cruel and unusual punishment, and doesn’t address the root of what drives sexual predators.

    I’d like to add a new element to the conversation: wrongful convictions. Everyone already knows that going to jail as a child molester is probably going to end up very badly for them. So I could see people choosing castration as the lesser of two evils.

    The National Registry of Exonerations found that Texas, despite having some of the toughest laws on crime, led the nation with 363 exonerations in the last 30 years. Other top states based on total numbers of exonerations were Illinois, New York, and California. In Louisiana, which had 63 exonerations in that period, New Orleans is said to be the wrongful conviction capital of the U.S.

    (Emphasis mine)

    https://www.nealdavislaw.com/criminal-defense-guides/exonerations-by-state-2019/