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

  • 2 Posts
  • 186 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.world
    cake
    toProgrammer Humor@lemmy.mlWorst is UTC vs GMT
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    1 day 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.






  • dohpaz42@lemmy.world
    cake
    toScience Memes@mander.xyzWhales
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 days ago

    We’re all forgetting one important factor: quality over quantity. First of all, the whale doesn’t just sit in one place to broadcast their 80km calls. We can’t really say that about a marine biologist; who more than likely is out to sea and away from anyone else using Tinder.

    I’d bet those whales are getting more action than that marine biologist, despite having a “shorter” distance on their mating calls.

    Suck on that, you stupid marine biologist and your decade of education and training.



  • dohpaz42@lemmy.world
    cake
    toScience Memes@mander.xyzMythbusters
    link
    fedilink
    English
    arrow-up
    14
    ·
    5 days ago

    This is the right attitude more people should have. But all too often, when people are proven wrong, they genuinely believe that it must be the other person/group, because they cannot accept the emotional consequences of being wrong.

    I know that I’ve had a hard time learning this because growing up I was never held to account for my actions on an emotional level. It was the 80s and 90s, and adults at that time would either shrug it off, or go straight to the nuclear punishment of corporal punishment. Never once would they sit down and talk to you about why what you did was wrong and how to do it better next time. I, anecdotally, believe that a lot of genx suffer this same way. They simply haven’t learned that there is a better way.




  • dohpaz42@lemmy.world
    cake
    toScience Memes@mander.xyzRevenge
    link
    fedilink
    English
    arrow-up
    5
    ·
    5 days ago

    While my comment uses somewhat of an antiquated (and potentially toxic) expectation of “manly” behavior, I was attempting to paint a humorous picture of what I would look like in that situation. FWIW, I was not making a condemnation of anyone for this type of behavior. If anything, I was poking fun at myself. 😊




  • 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.