Comment on ChatGPT advises women to ask for lower salaries, study finds

<- View Parent
BassTurd@lemmy.world ⁨3⁩ ⁨days⁩ 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, else if 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.

source
Sort:hotnewtop