• BassTurd@lemmy.world
    link
    fedilink
    English
    arrow-up
    45
    arrow-down
    1
    ·
    edit-2
    24 hours ago

    Apart from the bias, that’s just bad code. Since else if executes in order and only continues if the previous block is false, the double compare on ages is unnecessary. If age <= 18 is false, then the next line can just be, elif age <= 30. No need to check if it’s also higher than 18.

    This is first semester of coding and any junior dev worth a damn would write this better.

    But also, it’s racist, which is more important, but I can’t pass up an opportunity to highlight how shitty AI is.

    • CosmicTurtle0@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      10
      ·
      23 hours ago

      Honestly it’s a bit refreshing to see racism and ageism codified. Before there was no logic to it but now, it completely makes sense.

    • VeryFrugal@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      8
      ·
      24 hours ago

      Yeah, more and more I notice that at the end of the day, what they spit out without(and often times, even with) any clear instructions is barely a prototype at best.