My Lemmy Oracle
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
irelephant [he/him]@lemmy.dbzer0.com to Fediverse@lemmy.worldEnglish · 2 days ago

Fun fact: you can't upload this image on piefed.social

lemmy.dbzer0.com

message-square
139
fedilink
166

Fun fact: you can't upload this image on piefed.social

lemmy.dbzer0.com

irelephant [he/him]@lemmy.dbzer0.com to Fediverse@lemmy.worldEnglish · 2 days ago
message-square
139
fedilink

https://codeberg.org/rimu/pyfedi/src/commit/6405e51dab23f43eaea18d0ee4d9e7a773a3fd31/app/community/forms.py#L335

deliberately misleading error message.

  • magiccupcake@lemmy.world
    link
    fedilink
    English
    arrow-up
    19
    ·
    2 days ago

    If 0/0 < 0 would error?

    If 0 < 0 evaluates false

    That makes it even worse???

    • BB84@mander.xyz
      link
      fedilink
      English
      arrow-up
      4
      ·
      20 hours ago

      Usually 0/0=NaN and NaN compared with a number would be false.

      Maybe the (up-down)/(up+down) is just what AmazingWizard summarized from the code. But from what we have seen of the quality of that codebase I won’t be surprised if it’s literally this expression, division by zero and all. Lol

      • ∞🏳️‍⚧️Edie [it/it/its/its/itself, she/her/her/hers/herself, fae/faer/faer/faers/faerself, love/love/loves/loves/loveself, des/pair, null/void, none/use name]@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        2 hours ago

        The (upvotes cast - downvotes cast) / (upvotes + downvotes) is what the code itself says

        Here’s recalculate_attitude, line 1268 checks that they have at least made 10 votes.

Fediverse@lemmy.world

fediverse@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

A community to talk about the Fediverse and all it’s related services using ActivityPub (Mastodon, Lemmy, Mbin, etc).

If you wanted to get help with moderating your own community then head over to [email protected]!

Rules

  • Posts must be on topic.
  • Be respectful of others.
  • Cite the sources used for graphs and other statistics.
  • Follow the general Lemmy.world rules.

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 992 users / day
  • 1.65K users / week
  • 5.06K users / month
  • 10.5K users / 6 months
  • 1 local subscriber
  • 39.4K subscribers
  • 2.85K Posts
  • 87.9K Comments
  • Modlog
  • mods:
  • Ruud@lemmy.world
  • Xilly@lemmy.world
  • MrCenny@lemmy.world
  • TragicNotCute@lemmy.world
  • AutoMod - Beta@lemmy.world
  • woelkchen@lemmy.world
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org