• 5 Posts
  • 73 Comments
Joined 2 years ago
cake
Cake day: July 16th, 2023

help-circle
  • Those 3,028 people, or 0.000036% of the global population, hold more than 99% of all wealth.

    The actual number is closer to 9% than 99%. This is probably some kind of mutation from “the combined wealth of billionaires is larger than the GDP of 99% of countries” where notably yearly income and wealth are not directly comparable.

    Better (and true) things to say are “The global top 1% have more wealth than the bottom 95% combined” or “The richest 0.01% in the US have tripled their wealth in the last 30 years, while 90% of people have been treading water”







  • sus@programming.devtoProgrammer Humor@programming.devTeams
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    3 months ago

    “You want to use teams a bit? We have a session here” “I’d be happy to, actually. Not really, but it wouldn’t be bad” “Not really? If you say so, I have a teams session ready right here” “No. No. I’m not stupid” “People use it every day.” “Tell the truth” “It’s a good user experience.” “So are you ready to use it? For 5 minutes?” “No, I’m not an idiot.”











  • The oxford that says this?

    Acronym

    1. A group of initial letters used as an abbreviation for a name or expression, each letter or part being pronounced separately; an initialism

    or the merriam webster that says this?

    Some people feel strongly that acronym should only be used for terms like NATO, which is pronounced as a single word, and that initialism should be used if the individual letters are all pronounced distinctly, as with FBI. Our research shows that acronym is commonly used to refer to both types of abbreviations.






  • We can avoid expensive branches (gasp) by using some bitwise arithmetic to achieve the so-called “absolute value”, an advanced hacker technique I learnt at Blizzard. Also unlike c, c# is not enlightened enough to understand that my code is perfect so it complains about “not all code paths returning a value”.

    private bool IsEven(int number)
    {
        number *= 1 - 2*(int)(((uint)number & 2147483648) >> 31);
        if (number > 1) return IsEven(number - 2);
        if (number == 0) return true;
        if (number == 1) return false;
        throw new Exception();
    }