• 19 Posts
  • 2.05K Comments
Joined 5 years ago
cake
Cake day: May 31st, 2020

help-circle
  • Honestly, I have no idea, if the cashiers are allowed to take extra change here, at least in the supermarkets.

    I still want to try that at the town market, where I’ve always been too stupid to think of that so far, so I once got told that I could’ve kept that 1ct coin and one time, the guy actually gave me extra change, because he did not want to deal with those small coins. 🥴


  • No, no, you’re mathing correct. I did receive 12ct back. But 12cts is a 2ct coin + a 10ct coin. If I would have given 51.00€, it would have been a 2ct coin + a 5ct coin back. I didn’t mention the 2ct coin, because it’s always involved.

    And I didn’t have 3cts myself, otherwise I would have made it 51.03€, yeah.


  • To be honest, I’m always a bit amazed that this doesn’t happen more often. Yesterday, I had to pay 50.93€ and handed the cashier 51.05€, because I’d rather have a 10ct coin and the cashier typically needs smaller coins more often.

    In this case, it was obvious that I didn’t hand them the 5ct by accident, but that’s the sort of mind games I’ll play and so far, the cashiers were always a step ahead of me…


  • I do expect it to be a matter of time. Typically, you pull some image rendering library into your program, which pulls in a whole bunch of libraries that support the different image formats.
    As such, it’s the job of that intermediary library to support as many formats as possible. If you keep that intermediary library up-to-date, you may get support for new image formats without really doing anything.

    But well, it may take more time for this to happen, for various reasons. One reason is obviously that we already have other image formats that may not be amazing, but they work everywhere, so most people continue to use those.
    Another aspect that may slow adoption down, is that .webp was spear-headed by Google alone. Normally, you get other industry leaders into the boat, to make sure you cover everyone’s use-cases and have somewhat of a commitment for them to integrate it. I assume that Photoshop supports .webp by now, but it probably took relatively long for that to happen, for example.





  • Ephera@lemmy.mltomemes@lemmy.world#stopclimatechange2030
    link
    fedilink
    English
    arrow-up
    12
    ·
    2 days ago

    My favorite is that there’s still institutions talking about the +1.5°C goal. We’re already seeing average temperatures beyond that and we haven’t even started slowing down how much it heats up. For that, we’d need to bring CO2 emissions close to 0, not increase them year after year.






  • To be fair, the random guy in Nebraska is often part of the Rust core team. Like, it’s distributed as a separate library, allowing the library to make changes independently from the stdlib and to be replaced, if a better library emerges, but that doesn’t mean it’s necessarily of worse quality.

    Having said that, yes, for some things you can’t find a library by someone from the Rust team and especially for newbies, it’s difficult to know which libraries are good and which not.


  • Ah, I’m not talking about Ruby, I’m talking about language design in general.

    I’m currently mostly doing Rust, so I can only really name that as an example (even though there’s very likely other languages that allow this, too), but yeah, here’s for example the 64-bit signed integer in Rust: https://doc.rust-lang.org/stable/std/primitive.i64.html

    That is a primitive type, not an object, so it is exactly 64-bits in size and stored on the stack, not the heap. But as you can see in the documentation, Rust allows for associated functions anyways, like for example:

    let my_number: i64 = -3;
    my_number.abs()  //returns the absolute value, so 3
    

    That’s because that last call is just syntactic sugar for calling the same function statically on the type:

    i64::abs(my_number)
    



  • There’s somewhat of a historical context, where there were forums at first, where people generally used pseudonyms. Then the broad wave of webpages originally dubbed “social media” happened, which wanted users to use their real names. In that context, Lemmy doesn’t feel like social media.

    But the strong distinction for platforms to either be pseudonymous or prefer real identies somewhat seized to exist, because it’s not anymore novel to use your real identity on the internet. For example, TikTok has a mixture of folks showing their face, as well as completely anonymous uploaders.

    Instead, the definition is becoming more about: Do you interact with other humans? Which is a definite yes for Lemmy.




  • I don’t want to dismiss your point overall, but I see that example so often and it irks me so much.

    Unit tests are your specification. So, 1) ideally you should write the specification before you implement the functionality. But also, 2) this is the one part where you really should be putting in your critical thinking to work out what the code needs to be doing.

    An AI chatbot or autocomplete can aid you in putting down some of the boilerplate to have the specification automatically checked against the implementation. Or you could try to formulate the specification in plaintext and have an AI translate it into code. But an AI without knowledge of the context nor critical thinking cannot write the specification for you.