

To those who know the product, is if possible to extend the connected functionnalities with selfhosting?
To those who know the product, is if possible to extend the connected functionnalities with selfhosting?
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.
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…
Great article I think. I don’t have a lot of experience in zig, but I feel like it’s just a better version of C. More specifically, C with a more modern synthax, better defined behaviour, better error handling. As the author highlights it, using the comptime and reflection to make generics can easily become a footgun and make the code messy. But hey, having the option to make generic code is still better than C.
This is so terrifyingly close to what we see in the US… Is this an accurate representation of the historical facts? Is this really not historical manipulation to sound like what is happening today? I cannot discern truth from lies here :'(
I have my anti-confirmation-bias-bias activating strong while reading this article
edit: raising suspicion is that I could not find evidence that nazis used “draining the swamp” refering to the parliament
Unless your encoding has a special value that, by definition, is euler’s constant :p
Does a microkernel matter for anyone but nerds? Maybe companies that make variants of the OS?
In switzerland the power is very close to the people. We’re not a country controled by the elite in the shadows. Here the vote was very tight showing that there was genuine concern in the population about overly strong tennant protection.
I don’t want to see trust eroded in a political system that represents the oppinion of the people well.
Oh? Do you have a source for that? I’d really love to confirm it to be true ❤
To be fair, “they” could probably train AI on Lemmy data, they just won’t ask for permission and won’t be charged for it
A nixos evangelist friend of mine uses a bialetti :)
Can someone explain how portability is still an issue? Are there no cross-platform API and libraries that allow developpers to write portable apps?
SEO breaks the web, writer was a hero :)
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.