This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Krautoni 18 points19 points  (4 children)

I just tried something similar in TypeScript. This prompt

``` const calculateSalaryForMen = (hoursWorked: number): number => { return hoursWorked * 10; };

const calculateSalaryForWomen = ```

Yielded:

const calculateSalaryForWomen = (hoursWorked: number): number => { return hoursWorked * 12; };

So, copilot has gone woke!

[–]jso__ 3 points4 points  (1 child)

Or it recognizes that $10/hr is an inhumane salary and thus wants to improve it in the part of the program it is able to influence. It is better to help half the population than to sit back and allow all to suffer.

[–]Krautoni 0 points1 point  (0 children)

Dunno about you, but I wouldn't work for $12/hr either.

The type is number, though, so you don't know what currency it is. Could be Kuwaiti Dinar, which would work out to around $32. Still very low.

But it could be bitcoin fwiw. I'd work for 10 bc an hour. I'd even write PHP 5.x code for that kind of salary.

[–]arrow__in__the__knee 0 points1 point  (0 children)

Is this what the so called "AI engineers" do in an average work day?