• sugar_in_your_tea@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    4 days ago

    True, but that only applies if it’s misleading. For example:

    // pythagoran theorem 
    distance = abs(p2.x - p1.x) + abs(p2.y - p1.y); 
    

    Fixing that makes sense because it’s wrong and misleading (it’s actually Manhattan distance), and a quick glace is insufficient to tell the difference.

    But fixing a typo or something that wouldn’t be confusing is just noise and should only be fixed with other changes. For example, I intentionally misspelled Pythagorean in my comment above, fixing that to be the right spelling would be a useless change, even if the distance formula used the hypotenuse. It wouldn’t be an unreasonable policy to reject PRs that only fix spelling or similar to reduce noise for the maintainers.

    • surewhynotlem@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      Yep, I understand but disagree. Maybe it comes from working with so many ESL coders, but I’ll happily accept typo corrections because it’s not always obvious what words should be if you’re not steeped in the culture.