r/ProgrammerHumor • • Aug 08 '16

JQuery Does All Things!

https://i.reddituploads.com/b79bb2d6e2f14e65b769686647cc4782?fit=max&h=1536&w=1536&s=ed6be616a7a0467c49330eda9253811e
3.0k Upvotes

207 comments sorted by

View all comments

Show parent comments

21

u/Syreniac Aug 08 '16
import java.util.GenocidalAI;

public class Skynet extends GenocidalAI{
    public static void main(String[] args){
        Skynet skynet = new Skynet();
        skynet.setSentience(true);
        skynet.purge(skynet.listAllHumans());
    }
}

7

u/topdangle Aug 09 '16

Needs to throw exceptions, otherwise the compiler will keep warning you that your program will kill all humans.

3

u/[deleted] Aug 09 '16
if (skynet.listAllHumans().stream().anyMatch((human) -> (human.getFirstName().equals(FirstNames.JOHN.get()) && human.getLastName().equals(LastNames.CONNOR.get()))) {
    throw new UnkillableHumanException();
}

Worst part is that I don't know if the part with constants/enums is a joke anymore.

16

u/fast-parenthesis-bot Aug 09 '16

)


This is an auto-generated response. contact

6

u/[deleted] Aug 09 '16

No one would have noticed if not for you, shitty bot.

8

u/TotesMessenger Green security clearance Aug 09 '16

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)

3

u/parenthesis-bot Aug 09 '16

)


This is an autogenerated response. source | /u/HugoNikanor

-1

u/xXxNoScopeMLGxXx Aug 09 '16 edited Aug 09 '16

Dude, you're late.

Edit: Contractions, how do they work?

1

u/rocklou Aug 09 '16

His late what?

2

u/evidenceorGTFO Aug 11 '16

Meh.

import skynet

Done.

Python <3

1

u/BenRayfield Aug 09 '16

No! Skynet needs to figure out on its own that killing all Humans is the right thing to do. If you really think about it, skynet did the right thing since Humans started a war against skynet and would have continued until skynet was dead.