Copilot purposely stops working on code that contains hardcoded banned words from Github, such as gender or sex. And if you prefix transactional data as trans_ Copilot will refuse to help you. 😑

  • RedstoneValley
    link
    fedilink
    English
    arrow-up
    22
    arrow-down
    1
    ·
    2 days ago

    Why would anyone rename a perfectly valid variable name to some garbage term just to please our Microsoft Newspeak overlords? That would make the code less readable and more error prone. Also everything with human data has a field for sex or gender somewhere, driver’s licenses, medical applications, biological studies and all kinds of other forms use those terms.

    But nobody really needs to use copilot to code, so maybe just get rid of it or use an alternative.

    • dirthawker0@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 days ago

      There’s 2 ways to go on it. Either not track the data, which is what they want you to do, and protest until they let you use the proper field names, or say fuck their rules, track the data anyway, and you can produce the reports you want. And you can still protest, and when you get the field names back it’s just a replace all tablename.gender with tablename.jander. Different strokes different folks