

It’s actually interesting! It means that there is a way out: If europe accepts to help keep the US out of Beijings business. I don’t actually know how that could be done. And the EU doesn’t have that kind of coesion.
It’s actually interesting! It means that there is a way out: If europe accepts to help keep the US out of Beijings business. I don’t actually know how that could be done. And the EU doesn’t have that kind of coesion.
I remember this news end of last year discussing that we still installed a lot of non-renewable heating:
Pour accélérer ce rythme, la solution pourrait être politique. Le peuple suisse a accepté l’an dernier de soutenir financièrement la rénovation des bâtiments, grâce à l’isolation et à l’installation de pompes à chaleur. La Confédération va investir deux milliards de francs sur dix ans dès l’année prochaine.
Il s’agit là de mesures incitatives, mais certains cantons misent, eux, sur des interdictions. A Genève par exemple, à quelques rares exceptions, les propriétaires ne peuvent pas installer des chauffages fonctionnant aux énergies fossiles.
En Valais, par contre, les chaudières à combustible fossile sont toujours autorisées lors des rénovations. Toutefois, à partir du 1er janvier, le Canton posera certaines conditions, notamment sur l’isolation des bâtiments.
Si les réalités régionales varient, le défi est national. Plus de 50% des habitations suisses sont encore chauffées au mazout ou au gaz. Et devront donc, à terme, être rénovées.
I’m surprised. I don’t think it is done nation-wide. In which canton is it done?
Does he just have people following him with a chair and a red carpet?
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!
even with modern technology it is hard for me to imagine how it’s done… How did the romans do bridges like that?
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”
Blackbriar, Unleash the archers, Ad Infinitum, Spiritbox, Amaranthe
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.
I had never heard of Democracy Manifest before coming to lemmy. I am loving this subculture in strad of reddit’s
That’s fun because I was wanting to make my own civ-like game. I’ve been thinking about that a lot the last 3 days.
Right now I am just at the “dream big” phase and I love it. I will probably abandon the idea after really working on it because I am a potato. Maybe I could work on that project tho.