Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411275 Posts in 69323 Topics- by 58380 Members - Latest Member: bob1029

March 28, 2024, 07:02:05 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Programming jokes
Pages: 1 [2]
Print
Author Topic: Programming jokes  (Read 9243 times)
Noogai03
Level 6
*


WHOOPWHOOPWHOOPWHOOP


View Profile WWW
« Reply #20 on: December 05, 2013, 12:06:13 PM »

There are 16 kinds of people in this world
Those who understand hex
F the rest
Logged

So long and thanks for all the pi
gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #21 on: December 07, 2013, 05:24:01 AM »

F = 15 do not compute the joke Huh?
Logged

Noogai03
Level 6
*


WHOOPWHOOPWHOOPWHOOP


View Profile WWW
« Reply #22 on: December 07, 2013, 07:14:20 AM »

F = 15 do not compute the joke Huh?
Logged

So long and thanks for all the pi
Prads
Level 1
*



View Profile
« Reply #23 on: December 07, 2013, 07:42:29 AM »

This made me LOL.

Why programmers like UNIX:
who && gawk && uname && talk && date && wine && touch && unzip && strip && touch && finger && mount && fsck && more && yes; yes; more; yes; umount && make clean && sleep
Logged

InfiniteStateMachine
Level 10
*****



View Profile
« Reply #24 on: December 07, 2013, 11:33:31 AM »

One student in my class said this to another yesterday

"you would make a great politician because whenever someone wants to see what you're doing, no comments"



edit: the dwight gif was perfect
Logged

Boreal
Level 6
*


Reinventing the wheel


View Profile
« Reply #25 on: December 07, 2013, 02:38:42 PM »

Code:
#include <stdio.h>

void hello()
{
char *stuff = "Hello, world!";
}

void world()
{
char *thing;

printf(thing);
}

int main()
{
hello();
world();

return(0);
}

This one's not so much a joke as it is a magic trick.  Try compiling it and running it, although it may not work depending on the compiler you use (GCC works).
Logged

"In software, the only numbers of significance are 0, 1, and N." - Josh Barczak

magma - Reconstructed Mantle API
Saishy
Level 0
***



View Profile WWW
« Reply #26 on: December 07, 2013, 03:31:38 PM »

Magic trick? Isn't that some dangerous memory manipulation lol?  Tongue
Logged

TinyBird Games  We make tiny games!
Decent Machine
Level 0
**



View Profile WWW
« Reply #27 on: December 07, 2013, 04:22:13 PM »

lol @ the comic strip! Also love the UDP joke  Corny Laugh
Logged
Noogai03
Level 6
*


WHOOPWHOOPWHOOPWHOOP


View Profile WWW
« Reply #28 on: December 08, 2013, 12:38:08 AM »

Code:
#include <stdio.h>

void hello()
{
char *stuff = "Hello, world!";
}

void world()
{
char *thing;

printf(thing);
}

int main()
{
hello();
world();

return(0);
}

This one's not so much a joke as it is a magic trick.  Try compiling it and running it, although it may not work depending on the compiler you use (GCC works).

Doesn't work with VS2012 (use of uninitialized variable stops the program)
Tried with Code::Blocks, it just output random gibberish...
Logged

So long and thanks for all the pi
Boreal
Level 6
*


Reinventing the wheel


View Profile
« Reply #29 on: December 08, 2013, 07:55:06 AM »

Doesn't work with VS2012 (use of uninitialized variable stops the program)
Tried with Code::Blocks, it just output random gibberish...

It works fine with GCC 4.8.1.  Are you compiling it as C with no optimizations?  I'm sure that if you enable optimizations, stuff() will get totally optimized out and printf() will read garbage.
Logged

"In software, the only numbers of significance are 0, 1, and N." - Josh Barczak

magma - Reconstructed Mantle API
Noogai03
Level 6
*


WHOOPWHOOPWHOOPWHOOP


View Profile WWW
« Reply #30 on: December 08, 2013, 12:30:29 PM »

Doesn't work with VS2012 (use of uninitialized variable stops the program)
Tried with Code::Blocks, it just output random gibberish...

It works fine with GCC 4.8.1.  Are you compiling it as C with no optimizations?  I'm sure that if you enable optimizations, stuff() will get totally optimized out and printf() will read garbage.
I was compiling as C++, so I switched back to C. It was giving EXACTLY the same gibberish but I switched to Release and now it isn't saying anything...
Why don't you just post a screenshot or something, I really can't be bothered to be get this working  Huh?
Logged

So long and thanks for all the pi
Boreal
Level 6
*


Reinventing the wheel


View Profile
« Reply #31 on: December 08, 2013, 12:39:38 PM »

I was compiling as C++, so I switched back to C. It was giving EXACTLY the same gibberish but I switched to Release and now it isn't saying anything...
Why don't you just post a screenshot or something, I really can't be bothered to be get this working  Huh?

As far as what it's supposed to do, it just outputs "Hello, World!".  Although char *stuff, explicitly pointing to the string literal, goes out of scope, it is either a register or on the stack.  Therefore, when thing is declared, if it uses the same register or location on the stack (likely), it still points to the string literal because C doesn't initialize variables.

If you're using the VC compiler, I'm not surprised that it doesn't work because VC is never very standards-compliant to begin with.  Of course, this behaviour is not defined in the standard!
Logged

"In software, the only numbers of significance are 0, 1, and N." - Josh Barczak

magma - Reconstructed Mantle API
gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #32 on: December 08, 2013, 12:54:44 PM »

I didn't mod my hex number
Logged

Noogai03
Level 6
*


WHOOPWHOOPWHOOPWHOOP


View Profile WWW
« Reply #33 on: December 09, 2013, 11:53:35 AM »

Logged

So long and thanks for all the pi
Canned Turkey
Guest
« Reply #34 on: December 11, 2014, 01:16:11 PM »

Let's get this thread back up again

My favorite number is Xn+1 = (aXn+b) mod m
Logged
gimymblert
Level 10
*****


The archivest master, leader of all documents


View Profile
« Reply #35 on: December 11, 2014, 05:55:38 PM »

This one is quite random Sad
Logged

Canned Turkey
Guest
« Reply #36 on: December 11, 2014, 07:12:12 PM »

 Giggle
Logged
Krux
Level 2
**



View Profile
« Reply #37 on: December 12, 2014, 07:42:51 AM »

I don't get the Rammstein Joke. It's an obvious reference to "du hast", but it's just nonsense. Random keywords. The most interesting part of "du hast" is, that with every word that is added to the sentence, the meaning of the entire sentence changes. Here there is no meaning all the time.
Logged
Pages: 1 [2]
Print
Jump to:  

Theme orange-lt created by panic