• Programming Jokes February - Obligatory Witty Remark
    1,291 replies, posted
[QUOTE=Number-41;45130974]Does anyone know where I could find buttloads of football match data in text format? Preferably national teams. I already found the Github one but it probably isn't enough... I also don't know how to scrape websites...[/QUOTE] Oh boy with this build-up I wonder where are you taking this joke!
[QUOTE=AnonTakesOver;45130129]That was the point.[/QUOTE] Wasn't sure if that was just a cover up at first... Then I found this [IMG]https://dl.dropboxusercontent.com/u/7703917/File%20Share/Screenshot%202014-06-18%2004.37.33.png[/IMG]
The rust language reference.
I'm still waiting for a decent Rust book, but I guess that won't happen till version 1.
You know what's a joke? My mid-year IT exam. First six questions were some easy shit "Describe output" or "Produce a trace table" and I got them done in ten minutes of the ninety available. [I]Gee, it can't be that easy, right?[/I] And then the final, ambiguous question "Fix the following code:" [sp]it's 26 nested loops going from for(int a=1;a>1;a++) to for(int z=0;z>26;z++) with System.out.println(a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+z); at the end[/sp]:suicide: A dude also threw up [editline]19th June 2014[/editline] I couldn't find the problem in the code
[QUOTE=ScottyWired;45152299]A dude also threw up[/QUOTE] Well i'd throw up too if i saw that piece of code at the end.
[QUOTE=cartman300;45152358]Well i'd throw up too if i saw that piece of code at the end.[/QUOTE] imagine something [I]like [/I]this but with pen and paper [IMG]https://dl.dropboxusercontent.com/u/111996868/2014-2/programming/nestedloops.JPG[/IMG]
Okay i thew up. [editline]19th June 2014[/editline] :suicide:
Do they have a dictionary in your exams? Here you can raise your hand and they will give you one to borrow. That would be good for smacking them over the head with.
Wouldn't that code not run at all, since for each letter you are declaring it to 0, then doing the for loop while it is greater then the letters place in the alphabet, example being a for( int a = 0; a > 1; a++ ) So, theoretically, if the original for loop, the one with the letter a, is correct, then the whole code is correct since it won't ever actually run.
[QUOTE=AnonTakesOver;45152951] So, theoretically, if the original for loop, the one with the letter a, is correct, then the whole code is correct since it won't ever actually run.[/QUOTE] where the fuck were you during test?
I don't see anything wrong with the code, besides the y for loop which is using u < 25 when I assume it means y < 25, probably just a typo, but that doesn't mean it's broken, and the other thing wrong is that the code will never be ran, but then again, theoretically there is nothing [I]wrong[/I] with it. When do you get test results back?
[QUOTE=ScottyWired;45152299]You know what's a joke? My mid-year IT exam. First six questions were some easy shit "Describe output" or "Produce a trace table" and I got them done in ten minutes of the ninety available. [I]Gee, it can't be that easy, right?[/I] And then the final, ambiguous question "Fix the following code:" [sp]it's 26 nested loops going from for(int a=1;a>1;a++) to for(int z=0;z>26;z++) with System.out.println(a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+z); at the end[/sp]:suicide: A dude also threw up [editline]19th June 2014[/editline] I couldn't find the problem in the code[/QUOTE] Is the problem the space here: "o+p +q+r"?
[QUOTE=blakeguy25;45153448]Is the problem the space here: "o+p +q+r"?[/QUOTE] the code could of been [CODE] System.out.println(a + b + c + d + e + f + g + h + i + j + k + l + m + n + o +p + q + r + s + t + u + v + w + x + y + z); [/CODE] and would work. many languages ignore whitespace. I have yet to see one that doesn't, but I have only seen a few languages, and what Python does with it's whitespaces, I can imagine another language doing something weird with whitespaces.
[QUOTE=blakeguy25;45153448]Is the problem the space here: "o+p +q+r"?[/QUOTE] during the following word I did not press the space key even once: qaiouwhriaouwjhfoaiwjfoiaquhgfwoiahfgoiawjfoiawmfoaiwjdlkamjfoiwaqjfpwajnfpoamwfoiawjhfl;kamfdpawijfwpaomdapokmdapwjgfpoiwajtlakwmfpoiwahfpamfpoiw32ajfpoaimwfpiahwfpoawmfdpoawjfpoiwajfdlkamwfoiwajfrdpwamfpoiawjtwapoimdfwapoijfrwaopigjfwaoinfoawihdaowimnfawpokpaowjgfpaowijhtwpoihjr
[QUOTE=AnonTakesOver;45153492]the code could of been [CODE] System.out.println(a + b + c + d + e + f + g + h + i + j + k + l + m + n + o +p + q + r + s + t + u + v + w + x + y + z); [/CODE and would work. many languages ignore whitespace. I have yet to see one that doesn't, but I have only seen a few languages, and what Python does with it's whitespaces, I can imagine another language doing something weird with whitespaces.[/QUOTE] python doesn't ignore all of whitespace, since it uses the indentation for the code structure.
[QUOTE=DrDevil;45154221]python doesn't ignore all of whitespace, since it uses the indentation for the code structure.[/QUOTE] Yes, I don't think you understood what I meant. I have yet to see a language that does not like you using allot of whitespace in parameters, and I was saying, with what Python does with it's whitespace (Uses it to see the indent which is used for starting and ending functions, loops etc ) I could imagine, another language that would be strict on whitespace while in parameters.
I know the code would still work, I just don't want to think about anything else being wrong >.<
Maybe he had to make the for loops actually run, so maybe he had to change all the > to < :v:
--late--
[QUOTE=AnonTakesOver;45155063]Maybe he had to make the for loops actually run, so maybe he had to change all the > to < :v:[/QUOTE] The assignment is still extremely ambiguous. What if the point of the code is not to run the loops (in other words, not do anything)? What if the point of the code is do something completely different from what it does? You cannot know.
OC [thumb]http://i.imgur.com/JXgrDmQ.png[/thumb] [sp] Still only working in Construct 2 though :( [/sp]
I don't get it
[QUOTE=sambooo;45206932]I don't get it[/QUOTE] It probably is a machine code instruction to stop.
Posted this in WAYWO, maybe it deserves a post here aswell? [IMG]http://i.imgur.com/S5UL7w8.png[/IMG] [editline]26th June 2014[/editline] (this is an actual thing that was spat out when I tried to cout an integer array)
[QUOTE=Amiga OS;45505586][url]http://www.daniweb.com/software-development/cpp/threads/440954/cant-fix-error-in-my-program[/url][/QUOTE] Reminds me of [url=http://hg.icculus.org/icculus/lugaru/file/97b303e79826/Source/GameTick.cpp]Lugaru's GameTick.cpp[/url] - 10000 lines of beautiful code. I quite like this part, starting on line 7198. You'll need to scroll past the 24 levels of indentation: [cpp] if((player[i].skeleton.oldfree==1&&findLengthfast(&player[i].velocity)>1)||(player[k].skeleton.oldfree==1&&findLengthfast(&player[k].velocity)>1)||(player[i].skeleton.oldfree==0&&player[k].skeleton.oldfree==0)){ rotatetarget=player[k].velocity-player[i].velocity; if(((player[i].targetanimation!=getupfrombackanim&&player[i].targetanimation!=getupfromfrontanim)||player[i].skeleton.free)&&((player[k].targetanimation!=getupfrombackanim&&player[k].targetanimation!=getupfromfrontanim)||player[k].skeleton.free)) if(((((findLengthfast(&rotatetarget)>150&&(i!=0&&k!=0))||(findLengthfast(&rotatetarget)>50&&player[0].rabbitkickragdoll/*currentanimation==rabbitkickanim*/&&(i==0||k==0)))&&normaldotproduct(rotatetarget,player[k].coords-player[i].coords)>0)&&((i==0||k==0)||((player[i].skeleton.oldfree==1&&k!=0&&animation[player[k].currentanimation].attack==neutral)||(player[k].skeleton.oldfree==1&&i!=0&&animation[player[i].currentanimation].attack==neutral)||(player[i].isFlip()&&!player[i].skeleton.oldfree&&(i==0||k==0))||(player[k].isFlip()&&!player[k].skeleton.oldfree&&(i==0||k==0))||(i==0||k==0))))||((player[i].targetanimation==jumpupanim||player[i].targetanimation==jumpdownanim||player[i].isFlip())&&(player[k].targetanimation==jumpupanim||player[k].targetanimation==jumpdownanim||player[k].isFlip())&&(i==0||k==0)&&(!player[i].skeleton.oldfree&&!player[k].skeleton.oldfree))){ [/cpp]
-snip-
[quote] The canPlayType() method can return one of the following values: "probably" - the browser most likely supports this audio/video type "maybe" - the browser might support this audio/video type "" - (empty string) the browser does not support this audio/video type [/quote] [editline]27th July 2014[/editline] And some browsers will return "no" instead of empty string
[QUOTE=Goz3rr;45517213][editline]27th July 2014[/editline] And some browsers will return "no" instead of empty string[/QUOTE] Are you fucking serious :v: What type of return is 'probably' or 'maybe' "Yeah, uhh, I think it supports this audio type? Not really sure, probably does, yolo just play it and see if shit happens" What documentation is that from?
[QUOTE=AnonTakesOver;45521645]Are you fucking serious :v: What type of return is 'probably' or 'maybe' "Yeah, uhh, I think it supports this audio type? Not really sure, probably does, yolo just play it and see if shit happens" What documentation is that from?[/QUOTE] HTML5 Audio/Video [url]https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement#Methods[/url] [url]http://msdn.microsoft.com/en-us/library/ie/ff975191(v=vs.85).aspx[/url]
Sorry, you need to Log In to post a reply to this thread.