I am considering sending the gender dysphoria bible to my parents. But I fear that my mom will read only one part and then attack me with it because that particular part does not apply to me....
I dislike treating None as an equivalent for the empy list, but that does not further the discussion...
I hurt myself in confusion while reading the second quote. Is it the right quote? (also, nazi (relating to the nsdap) is probably not the right word, did you mean fascist?)
I agree. So if None is a valid input we should check it first, and then check if the length is zero. In this situation, we see a type error only if the programmer screwed up and everything is explicit
I don't really understand the point about exceptions. Yeah "not foo" cannot throw an exception. But the program should crash if an invalid input is provided. If the function expects an optional[list] it should be provided with either a list or None, nothing else.
Passing None to a function expecting a list is the error...
Well, in your case it is not clear whether you intended to branch in the variable foo being None, or on the list being empty which is semantically very different...
Thats why it's better to explicitly express whether you want an empty collection (len = 0) or a None value.
I really dislike using boolean operators on anything that is not a boolean. I recently made an esception to my rule and got punished... Yeah it is skill issue on my part that I tried to check that a variable equal to 0 was not None using "if variable...". But many programming rules are there to avoid bugs caused by this kind of inattention.
Des chocolaitines?
I had never heard of Democracy Manifest before coming to lemmy. I am loving this subculture in strad of reddit's
Permanently Deleted
Lol, is he the one who just got 3 years in prison in switzerland?
If not, it's enough to land you three years in prison in switzerland
Hi! I've been on E for 9 weeks now, and on my third dose of AA for a week. The first effect I noticed was my smell (transpiration) after a week. But then I had to wait until this weekend for the second effecr which is some light boobs budding. Hormones are slow! Be patient and know that things are going to get better!
Edit: Oh right, I am able to produce tears through emotions again! (I couldn't say since when)
Yeah, the fact that Putin is not really pushing for a ceasefire means that they are not as out-of-stock as the headline suggests...
Please tarrif those american trucks! please please please!
Swiss plugs are the best. I won't be neutral on this !
Oh dang... I misread your comment, I thought you said "It does not seem..." Things make more sense now^^ I was questionning my understanding of the word to endure
I am not a native speaker. I meant it like "to survive something difficult". https://dictionary.cambridge.org/dictionary/english/endure
I did not think about the fact that I will probably live a few decades after his death. It will be interesting to see how he will be know to people who did not endure him
Ok I wanted to confirm ^^ I'm not crazy it really is girl stink
What is girl stink?
But what does that mean?