

You can often buy the “digital signage” of TVs. Same pannel, but it’s just a screen. I think it’s targetting businesses but you can buy them too!


You can often buy the “digital signage” of TVs. Same pannel, but it’s just a screen. I think it’s targetting businesses but you can buy them too!


that’s scary how dementia works :'(


Sorry 'bout that


Hmmm, even if we allow for empirical scientific evidence, is there a non weird way he knows about the sperm count in the semen of adolescents? I hope he’s making shit up because the alternative is a lot grosser
I don’t think any music in the comments of this posts are genuinely terrible in every aspect. This is also the case for my hated song. It follows many of the rules of a successful pop music, which is why it is.
I definitely hate it because I heard it too often. But I also believe that it is genuinely annoying. You can listen to it, even if you don’t understand french. Tell me what you think!
Adieu de Jérémy Frérot.
j’ai dû l’écouter souvent parce qu’elle passait trop souvent à la radio là où je travaillais. Et maintenant j’ai développé une haine pour elle. Il chante bizarre, la mélodie est catchy mais mauvaise…


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.


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.


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.


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.
Unless your encoding has a special value that, by definition, is euler’s constant :p
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
Honnestly those razor-blades are a scam and I spend a lot less money since I switched to safety razors. A bit more technical to use but totally worth it I think
You can often buy the “digital signage” of TVs. Same pannel, but it’s just a screen. I think it’s targetting businesses but you can buy them too!