
I’m surprised. I don’t think it is done nation-wide. In which canton is it done?
I’m surprised. I don’t think it is done nation-wide. In which canton is it done?
As a graduate from good university in computer science who is struggling to find a job. Go learn something that can be aided by code, but don’t make code the center of your career…
Omg! I want a cloak like his!
This reminds me of the story of engineering students who wanted to test their parachute on the bunny mascot of their department. They threw the poor lagomorph from the top of a building.
The parachute held, the lil guy’s heart did not.
I am amazed that the name “Pierre” (also french for stone) litterally comes from the greek for “rock”
That proves they’re human!
I thought that you had a lot of effects for only 1 month ^^ Maybe “speedrun” wasn’t the most appropriate
Wow, you are speedrunning your transition, damn! Good for you!
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
I remember this news end of last year discussing that we still installed a lot of non-renewable heating:
https://www.rts.ch/info/suisse/2024/article/les-suisses-se-detournent-des-pompes-a-chaleur-pour-revenir-au-mazout-et-au-gaz-28709157.html