Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)IK
Posts
0
Comments
565
Joined
2 yr. ago
  • World War 1 was so traumatic for Europe because the terrible weapons of mass destruction that they had been using to dominate the rest of the world were suddenly being used on them.

    I think this is probably similar for people in the US who are not in a minority now, along the lines you describe.

  • Trump can do whatever he wants. The Supreme Court said so, Congress won't complain, and he has already completed the first round of purges of the executive branch.

    He could declare a horse his co-consul and the only downside would be some snarky mentions in some histories written by the senatorial classes.

  • I remember being annoyed when reading The Jungle because it correctly called out problems with industry, politics, and I think unions, but posited socialism as the way forward.

    Now I see that I was just under the spell of capitalistic dogma, and it was completely correct in every way. 😄

  • The global fertility rate (the number of child born per woman) has been declining since 1963 or so, and is almost at replacement level, which is usually considered 2.1 or so.

    Population is still going up since global life expectancy is still rising, but the expectation is that population will peak in 50 years or so.

  • Sorry I should have just deleted that rambling text before posting, but oh well.

    To be clear when mention gay there I just mean sexual attraction to the same sex, independent of any attraction or not to the other sex (or non-binary people or whatever).

  • I find labelling of sexual preferences a bit tedious. Having labels can be handy when they serve as a shorthand, but sexual preferences have all kind of identity-building connotations.

    So, personally I think someone who identifies as a man is attracted to other men for any kind of sex, that's gay. Having preferences for what particular kind of sex doesn't change that.

    I know a lot of people don't feel that way. For a lot of cultures and people what makes it gay is a man being poked with a dick, whether that's in your mouth or ass. That's why when they are trying to figure out risk for diseases they ask if you've had sex with a man, not if you're gay.

  • My point is that if your variable can be None then you need the same pattern for the length check.

    So for the Pythonic version:

     undefined
        
    if (foo is not None) and not foo:
       ...
    
      

    For the explicit length check:

     undefined
        
    if (foo is not None) and (len(foo) == 0):
      ...
    
      

    Honestly you're probably better off using type hints and catching such things with static checks and not adding the None check.