Skip to content
DevMeme
4517 of 7590
CodeQuality Post #4957 · source on Telegram

When the linter calls out your ‘blackListUrls’ variable for non-inclusive language

Description

Screenshot of a dark-theme IDE editor showing a line of Swift/Kotlin-style code: “var blackListUrls: Set<String> = [”. Immediately above, a yellow warning tooltip is expanded that reads: “Inclusive Language Violation: Declaration blackListUrls contains the term "blacklist" which is not considered inclusive. (inclusive_language)”. Additional array items like "marketingcloudapis.com" and a comment “// will be removed when API …” are visible beneath the declaration. The scene humorously captures modern static-analysis tooling enforcing inclusive naming, illustrating how code linters now flag terms such as “blacklist/whitelist” in the pursuit of better language practices and code quality

Comments

34
Anonymous ★ Top Pick Merge blocked: “‘blacklist’ isn’t inclusive.” Merge passes: LegacySingletonGodObject.swift - 4 k LOC, 17 circular deps, force-unwraps everywhere. Apparently empathy now has higher test coverage than safety
  1. Anonymous ★ Top Pick

    Merge blocked: “‘blacklist’ isn’t inclusive.” Merge passes: LegacySingletonGodObject.swift - 4 k LOC, 17 circular deps, force-unwraps everywhere. Apparently empathy now has higher test coverage than safety

  2. Anonymous

    After 20 years of writing 'master/slave' database configs and 'blacklist/whitelist' filters, the hardest refactoring isn't migrating from COBOL to microservices - it's convincing your muscle memory that 'denylist' won't cause a production outage

  3. Anonymous

    Nothing says 'we've solved all our technical debt' quite like your IDE spending CPU cycles to police variable names while your monolith is held together with duct tape and a 15-year-old COBOL integration. At least when the system goes down, we can take comfort knowing our crash logs use inclusive terminology

  4. Anonymous

    Set inclusive_language to error and a “five‑minute rename” became a cross‑service schema migration spanning DB columns, protobufs, metrics, and cache keys - the only thing that’s ever successfully blocked a Friday deploy

  5. Anonymous

    Enterprise linting: Fighting microaggressions while your monolith silently bleeds technical debt

  6. Anonymous

    Lint blocks deploy on “blackListUrls”; renaming to “denyList” breaks the public API, so we ship typealias LegacyBlackListUrls = DenyListUrls and call it inclusivity via the Adapter pattern

  7. @kandiesky 3y

    What the fuck?

    1. @kitbot256 3y

      Many companies’ internal documents now recommend using “blocklist” instead.

  8. @VolodymyrMeInyk 3y

    master/slave

    1. @SamsonovAnton 3y

      What about BDSM practitioners? Don't they deserve to be "included"? 😁

      1. @sylfn 3y

        their master/slave should be renamed too

    2. @RiedleroD 3y

      I intentionally use the master branch in git repos, because I decide if I want to change stuff like this. Companies are not to decide what language I'm supposed to use.

  9. @k_scranton 3y

    <...> According to the remark, the term 'blacklist' evolved from the term 'black book' about a century ago. The term 'black book' does not appear to have any etymology or sources that support racial associations, instead originating in the 1400s as a reference to "a list of people who had committed crimes or fallen out of favor with leaders," and popularized by King Henry VIII's literal use of a black book.

  10. @Kornet_EM 3y

    nlist

  11. @rglrd 3y

    Niggas

  12. @ashutka 3y

    notWhiteList here, I fixed it

  13. @tymchasovinegarazdy 3y

    I'm pretty sure all the laughing commenters wouldn't be laughing if there was something like katsapList / khokholList / moskalList

    1. @Svistoplyaz 3y

      I get your point, but your comparison is incorrect. Your proposal uses deliberate swearing. Why didn't you compare the original phrase with whiteList?

      1. @tymchasovinegarazdy 3y

        If you don't see the problem with (white-)blacklist names I have nothing to reply 🤷‍♂️

        1. @saniel42 3y

          You shouldn't have replied in the first place 🤠

    2. @LionElJonson 3y

      Your comparison would be okay if it was niggerList / crackerList

      1. @Johnny_bit 3y

        I dare anyone to use it in real code :P

        1. @Algoinde 3y

          i knew a guy who exclusively used the first type as debug strings and variables

    3. @RiedleroD 3y

      brb calling my blocklist russian slurs

  14. @trainzman 3y

    Last index of slice is not inclusive, let's cancel it then??

  15. @MagnusEdvardsson 3y

    How is a book with black covers racist? It's the color of the book in which banned people was listed.

  16. @theu_u 3y

    I literally know guy who named modules like HoholPidor. Because his co-worker wrote comments in Ukrainian language :)

  17. @karim_mahyari 3y

    There was a time, when social activists were social activists (and didn't police around everything.)

  18. @azizhakberdiev 3y

    imagine that github sends you a warning about violent language in code

  19. Егор 3y

    Finally, a solution to all economic and political problems in the world.

  20. Spongey 3y

    the ide can keep coping while i push code to master branch

  21. @Agent1378 3y

    Will it allow spanish version, like negroList ?

  22. @Araalith 3y

    Because it's blocklist / allowlist. But I'm wondering how to change greylist...

  23. @Araalith 3y

    Or even git with a master branch (atm: main)

Use J and K for navigation