• 0 Posts
  • 24 Comments
Joined 3 days ago
cake
Cake day: October 29th, 2024

help-circle


  • I’m disabled - walking and standing are very difficult and painful for me - leaving the shopping cart as near as possible to the disabled bay without it being an obstruction is the right thing to do. You can immediately get the support of something to lean on as soon as possible after leaving the car.

    Just something to consider. I now submit to your judgment for your death penalty :D




  • drake@lemmy.sdf.orgto196@lemmy.blahaj.zoneRule
    link
    fedilink
    arrow-up
    1
    ·
    2 hours ago

    but what if number isn’t an integer, or even a number at all? This code, and the improved code shared by the other user, could cause major problems under those conditions. Really, what you would want, is to validate that number is actually an integer before performing the modulo, and if it isn’t, you want to throw an exception, because something has gone wrong.

    That’s exactly what that NPM module does. And this is why it’s not a bad thing to use packages/modules for even very simple tasks, because they help to prevent us from making silly mistakes.



  • I think that you’re right, with the way that our society is structured, it is unethical. It’s essentially the world’s most advanced plagiarism tool.

    However, being realistic, even if no private individual ever used it, it would still exist and would be used by corporations for profit maximising.

    In my opinion, telling people that they’re bad people for using something which is made unethically isn’t really helpful. For example, smartphones aren’t made ethically, but the way to get that to change isn’t to change consumer habits - because we know that just doesn’t work - it’s to get organised, as a collective working class, and take action into our own hands.



  • Internet search, e.g. Google, is now functionally almost completely useless. I use ChatGPT basically as a Google replacement.

    I will still search for stuff - I use Kagi - but give up after half a dozen results if none of them are relevant and go to ChatGPT instead. Often, ChatGPT is more helpful. But sometimes it just makes a bunch of nonsense up.

    ChatGPT is great for when you need to find something where you kind of know at least the vague shape of what you’re expecting and you have enough expertise to filter out any of the lies it makes up.