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

  • 1 Post
  • 224 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.


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






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


  • dohpaz42@lemmy.worldtomemes@lemmy.worldIt's going. I'm alive.
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    7 days ago

    I climb hand over hand closing my eyes

    Too scared to look down I climb hand over hand

    Putting distance between I and I and the ground

    I get to the top I stand on the edge

    I look to the sky and say all my prayers

    What could be better than a swan dive into the asphalt?

    I don’t know

    Nothing can be better than a swan dive into the asphalt







  • I’ve been there too. I have three therapists: one that prescribes my antidepressants, one that prescribes my adhd meds, and the one I talk to about all my problems.

    For both my meds (cymbalta for depression, and straterra for adhd) I am being overprescribed the recommended doses because my body/metabolism sucks like that.

    Good luck to you! Once you get it dialed in, it’s nice. Not perfect, but better than raw-dogging it.