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

40

u/DomSchu Aug 08 '16

StackOverflow is a great resource but it sure seems like a majority of the questions are coming from first year students sometimes.

24

u/[deleted] Aug 08 '16

/r/learnprogramming is like that, except it's more like "I just started learning Java yesterday, how do I build Skynet?". It's understandable (we were all there once) but it's pretty funny to read sometimes.

10

u/Dunyvaig Aug 08 '16

how do I build Skynet?

Yeah about that. Where do I start?

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.

→ More replies (0)

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?

→ More replies (0)

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.