[HN Gopher] JavaScript for terrorists, courtesy of GitHub Copilot
       ___________________________________________________________________
        
       JavaScript for terrorists, courtesy of GitHub Copilot
        
       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();         }       I found this amusing, hence
       sharing, but the moral of the story seems to be that it could be a
       little while until AI is perfect.  Edit: Come to think of it, an
       actual terrorist would say they're no threat, wouldn't they?
       Shit...
        
       Author : connordoner
       Score  : 4 points
       Date   : 2022-10-18 22:01 UTC (1 hours ago)
        
       ___________________________________________________________________
       (page generated 2022-10-18 23:02 UTC)