

that’s scary how dementia works :'(


that’s scary how dementia works :'(


Sorry 'bout that
That’s the same order of magnitude, so still correct!
4% is 1/25. 75 is 3*25. so the answer is 3!


I guess there are two kinds of magic. There is the magic of Fourrier which is lossy with funny math. But it is understandable that one can get higher compression ratios when it’s lossy. But I find it even more magic that we can still find better ways to encode images losslessly. I would have thought we had already long found the optimal way


Compression algorithms are magic. Especially lossless compression.


Actually, archive is better to read imo. But using a swiss media is maybe cooler too


My feel from switzerland is that the reaction is extremely muted. I don’t think this will be what pushes us to drop the F35. It is quite outrageous how reverent our government is in front of the US…


No paywall here: https://www.swissinfo.ch/eng/swiss-politicians-push-to-cancel-f-35-fighter-jet-deal-after-us-tariffs/89796985
edit: Oh wow! It’s my cake day! I didn’t know we had them here :3


Don’t tell me it is law already!


That proves they’re human!


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.


Please tarrif those american trucks! please please please!
Do not check where the carpet goes