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

  • 12 Posts
  • 803 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle





  • dohpaz42@lemmy.world
    cake
    toProgrammer Humor@lemmy.mlWorst is UTC vs GMT
    link
    fedilink
    English
    arrow-up
    3
    ·
    23 hours ago

    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
    ·
    24 hours 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
    1 day 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
    ·
    4 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. 😊