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/)GI
Posts
6
Comments
576
Joined
2 yr. ago

  • But None has no len

     
        
    if not foo:  
      
    
      

    -> foo could be an empty list or None, it is ambiguous.

    len(foo) will lead to an exception TypeError if foo is None, I can cleanly catch that.

    It suggests I deal with a boolean when that is not the case. Explicit is better than implicit, and if not foo to check for an empty list may be pythonic, but it's still implicit af

  • Absolutely agree. I just use it for some simple stuff like "every nth row in a pandas dataframe slice a string from x to y if column z is True" or something like that. These logics take time to write, and GPT usually comes up with a right solution or one that doesn't need a lot of modification.

    But debugging or analyzing an error? No thanks

  • Tbh I just care about privacy and do not want surveillance on my system. If you don't care about that (which I can understand because life is hard and energy is limited), then Windows or Mac is maybe perfectly fine for you. All I am saying is, if Linux would be pre-installed, people wouldn't care to make a switch to Windows, they would just live with a perfectly fine OS and go on with their lives.

  • I cannot support an instance where criticism of countries like North Korea or Venezuela is sanctioned with 30 day bans, even defending the Russian invasion of Ukraine is tolerated. I love open source software and it breaks my heart, but I completely blocked .ml after multiple incidents I witnessed or was part of in the news and worldnews communities.

    Also I cannot really understand the argument of having an "old account". All it means on Lemmy is having a year and a month in your profile. It is even a good idea to switch your account from time to time to stay more anonymous.