• huf [he/him]
      ·
      1 day ago

      ew...

      pub fn predict_crime(suspect: Person) -> bool {
         return suspect.race() == Race::Black
      }
      
        • huf [he/him]
          ·
          17 hours ago

          i dont even know what language this is :D i just thought it'd be a nice bit to silently pass over the racism aspect and nitpick the code

      • TheDoctor [they/them]
        ·
        1 day ago

        Good change but also why is race a getter method while Race::Black is a constant enum? Is race an impure function dependent on global state? Is it derived from some other internal immutable state?

    • Barx [none/use name]
      ·
      1 day ago

      Nerds with a rudimentary understanding of undergrad stats do this all the time with extra steps by just building a simplistic model based on (racist) "crime data". Sometimes literally just a basic Bayesian model.

      And they get hired by Palantir to do versions of that for $300k/year.