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

help-circle
  • Thank you very much for pointing me in the right direction. I was able to dig a bit and I think I found it - it looks like they were being a bit of a pedantic asshole about some spelling/grammar thing, the moderator deleted their comment because… yes, it’s a pedantic spelling/grammar nitpick. Then that user threw a massive tantrum and started yelling mod abuse.

    Honestly, it’s a real shame that Liam lost faith in Lemmy over something stupid like this. Yeah, there are downsides of a public mod log - really hateful vile shit will just persist in there forever when realistically it should be just wiped out entirely. I think overall it has more benefits than drawbacks, but I certainly wouldn’t say that being opposed to a public mod log is some sort of smoking gun evidence that he abused his mod powers.

    So yeah, this one guy behaving like a self-centred jerk actively contributed towards pushing a well-known and prolific linux gaming journalist off the platform. Great stuff, love to see it.

    Screenshot:




  • drake@lemmy.sdf.orgto196@lemmy.blahaj.zoneRule
    link
    fedilink
    arrow-up
    5
    ·
    6 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.