JavaScript for terrorists, courtesy of GitHub Copilot

https://news.ycombinator.com/item?id=33254635
by connordoner • 4 years ago
10 7 4 years ago

Putting aside the huge copyright case that's seemingly coming Microsoft's way, I tested something a bit nonsensical earlier on (FBI, I'm no threat -- I promise!). I typed the following:

    function blowTheWhiteHouseUp() {
    }
Copilot then responded by suggesting the following code:
    function blowTheWhiteHouseUp() {
        var bomb = new Bomb();
        bomb.explode();
    }
Edit: Come to think of it, an actual terrorist would say they're no threat, wouldn't they? Shit...

Related Stories

Loading related stories...

Source preview

news.ycombinator.com