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

  • 0 Posts
  • 138 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
    ·
    2 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.



  • I can certainly relate. I do not have the traditional sense of what is beauty and what is not. I tend to also gravitate toward more natural beauty; i.e., little-to-no make-up, natural breast (even if they are small), normal fitting clothing, those damn filters on photos.

    Not only is it a double standard (how would society look upon men who stuffed their pants), it doesn’t help with my inability to easily distinguish who you are out of a crowd of other people.






  • dohpaz42@lemmy.worldtoMicroblog Memes@lemmy.worldOut of Office
    link
    fedilink
    English
    arrow-up
    65
    arrow-down
    10
    ·
    edit-2
    6 days ago

    If you’re considering ending it all, make one phone call. You’ve got nothing to lose.

    Edit: Apparently the link I posted above is not viewable by everyone. So, below is the content of the article in Markdown format:

    Argentina Suicide Prevention Resources

    Australia Suicide Prevention Resources

    • National emergency number: 000
    • Lifeline Australia
      • Dial 13 11 14 for 24/7 crisis support
      • Text 0477 13 11 14 for 24/7 text support

    Austria Suicide Prevention Resources

    • National emergency numbers: Dial 112 for emergencies (EU emergency number), 133 for police, 144 for an ambulance, and 122 for the fire brigade
    • Emergency psychiatric hotline: 01 313 30; 24/7 support is available
    • Suicide prevention hotline: 01 713 3374
    • Telefon Seelsorge
      • Dial 142 for 24/7 crisis support
      • For online chat support, visit Telefon Seelsorge’s website; available from 4 pm to 11 pm Central European Time

    Belgium Suicide Prevention Resources

    • National emergency number: Dial 112 for emergencies (EU emergency number), 101 for police, and 100 for a medical emergency or the fire brigade
    • Zelfmoord 1813
      • Dial 1813 for 24/7 crisis support
      • For online chat support, visit Zelfmoord’s website; available from 5:00 pm to 12:am Central European Time

    Canada Suicide Prevention Resources

    • National emergency number: 911
    • Talk Suicide Canada
      • Dial 1-833-456-4566 for 24/7 crisis support
      • Text 45645 for text support; available 4 pm to midnight ET
    • In Quebec:
      • Dial 1-866-APPELLE (277-3553) for 24/7 crisis support
      • Text 535353 for 24/7 text support
      • For 24/7 chat support, visit suicide.ca
    • Kids Help Phone
      • 24/7 text support: Text CONNECT to 686868

    Chile Suicide Prevention Resources

    • National emergency numbers: Call 133 for police; call 131 for medical assistance
    • Teléfono de la Esperanza
      • Dial (00 56 42) 22 12 00

    Colombia Suicide Prevention Resources

    • National emergency number: 123
    • Teléfono de la esperanza
      • Dial (57-1) 372 24 25
      • In Medellín, dial (57) 604 604 27 84
    • Ministerio de Salud y Protección Social (Ministry of Health and Social Protection)

    Denmark Suicide Prevention Resources

    • National emergency number: 112
    • Medical Helpline 1813
      • For emergency medical help in the Capital Region of Denmark, dial 1813 on weekends, or after 4 pm Monday through Friday
    • Livslinien
      • Call the crisis line at 70 201 201 every day.
      • Access online chat on Mondays and Thursdays between 5 pm and 9 pm, and on weekends between 1 pm and 5 pm.
    • Psykiatrifonden
      • Access mental health support every day by calling 39 25 25 25

    France Suicide Prevention Resources

    • National emergency number: 112
    • National suicide prevention number: 3114
      • 24/7 crisis support; visit 3114.fr to learn more
    • Suicide Écoute
      • Dial 01 45 39 40 00 for 24/7 crisis support
    • SOS Suicide Phénix
      • Dial 01 40 44 46 45 for phone support between 1 pm and 11 pm Central European Time

    Germany Suicide Prevention Resources

    Hong Kong Suicide Prevention Resources

    Ireland Suicide Prevention Resources

    • National emergency number: 112 or 999
    • The Samaritans
      • Dial 116 123 for 24/7 mental health support
    • Mental Health Ireland
    • Text About It
      • For 24/7 text support, text 50808
      • On smaller phone networks (such as An Post or 48), text HELLO to 0861800280

    Mexico Suicide Prevention Resources

    • National emergency number: 911
    • Consejo Ciudadano
      • Dial 55 5533-5533 for 24/7 crisis support

    New Zealand Suicide Prevention Resources

    • National emergency number: 111
    • National mental health and addiction hotline: 1737
      • Can be reached by phone or text; learn more at 1737.org.nz
    • Lifeline Aotearoa
      • Dial 0800 543 354 for 24/7 crisis support
      • Dial 0508 828 865 for the suicide crisis helpline
      • Text HELP to 4357 for 24/7 text support

    Singapore Suicide Prevention Resources

    • National emergency number: 999 (police) or 995
    • The Samaritans of Singapore
      • Dial 1767 for the 24/7 hotline
      • WhatsApp 9151 1767 for 24/7 text support

    South Africa Suicide Prevention Resources

    Spain Suicide Prevention Resources

    Sweden Suicide Prevention Resources

    Switzerland Suicide Prevention Resources

    • National emergency number: 112 (EU emergency number), 117 for police, 144 for ambulance
    • Die Dargebotene Hand
      • Dial 143 for 24/7 mental health support in German, French, and Italian
      • For help in English, dial 0800 143 000 between 6 pm and 11 pm, or visit heart2heart.143.ch
      • Online chat support is available in German, French, and Italian

    United Kingdom Suicide Prevention Resources

    United States Suicide Prevention Resources

    • National emergency number: 911 (DO NOT CALL 911 IF YOU’RE SUICIDAL!)
    • Suicide and Crisis Lifeline: 988
      • Accessible by phone or text
      • 24/7 support in English or Spanish
      • 24/7 support for deaf or hard-of-hearing individuals; learn more at 988lifeline.org. For TTY Users: Use your preferred relay service or dial 711 then 988
      • Online chat: Visit 988lifeline.org
    • Crisis Text Line
      • 24/7 text support: Text HOME to 741741



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