Author Topic: YOU LAUGH YOU LOSE v666  (Read 3519216 times)

What's long, hard, and awkward to talk about?
The holocaust.

A programmer's wife tells him "Go to the store and bring back a dozen eggs. If they have apples, bring three." So he came back with three eggs. badum tss

A programmer's wife tells him "Go to the store and bring back a dozen eggs. If they have apples, bring three." So he came back with three eggs. badum tss
And then the thousand yard stare of debugging in a looooong C++ source file where you were too lazy to comment the code.

Doesn't that always happen to everyone? I was asked to never return to the coding tournaments because my codes were a mess. I don't indent, I don't comment and I put whiles inside whiles.

Doesn't that always happen to everyone? I was asked to never return to the coding tournaments because my codes were a mess. I don't indent, I don't comment and I put whiles inside whiles.
You disgust me.


Doesn't that always happen to everyone? I was asked to never return to the coding tournaments because my codes were a mess. I don't indent, I don't comment and I put whiles inside whiles.
literally worser than Riddler

Well, if it works, I couldn't care less how it's made.


Holy stuff. Alright, how would you rewrite this to remove the while in the while?
Code: [Select]
void rectangle(int x, int y, byte_t color, int x1, int y1) {
int xx,yy;
xx = 0;
yy = 0;
while(yy < y1) {
while(xx < x1) {
pixel(x+xx,y+yy,color);
xx = xx + 1;
}
xx = 0;
yy = yy + 1;
}
}
« Last Edit: May 09, 2014, 08:19:39 PM by Pie Crust »

A programmer's wife tells him "Go to the store and bring back a dozen eggs. If they have apples, bring three." So he came back with three eggs. badum tss
i don't understand this one

https://en.wikipedia.org/wiki/Malbodge
forget
i don't understand this one

Wife asks for dozen eggs and if they have milk bring back 3.
She didn't say bring back 3 bottles of milk, she was referring to the milk but the programmer interpreted it as 3 eggs.
Holy stuff. Alright, how would you rewrite this to remove the while in the while?
Code: [Select]
void rectangle(int x, int y, byte_t color, int x1, int y1) {
int xx,yy;
xx = 0;
yy = 0;
while(yy < y1) {
while(xx < x1) {
pixel(x+xx,y+yy,color);
xx = xx + 1;
}
xx = 0;
yy = yy + 1;
}
}
Can't you include more functions in a while line?, i'm not good with C# or C++ or whatever language that is but can't you do this?

Code: [Select]
void rectangle(int x, int y, byte_t color, int x1, int y1) {
int xx,yy;
xx = 0;
yy = 0;
while(yy < y1 && xx < x1) {
pixel(x+xx,y+yy,color);
xx = xx + 1;
yy = yy + 1;
}
« Last Edit: May 09, 2014, 08:25:30 PM by Starzy »

forget
Wife asks for dozen eggs and if they have milk bring back 3.
She didn't say bring back 3 bottles of milk, she was referring to the milk but the programmer interpreted it as 3 eggs.
still not gettin it

i don't understand this one
Programming languages tend to take things literally and never assume things. In this case, the programmer thought his wife was talking about the eggs because that is the only other numerical value given in the statement. It's like an if/else statement. So it translated to this from english.
Code: [Select]
if (apples = true) {
   eggs == 3
} else {
   eggs == 12
}
« Last Edit: May 09, 2014, 08:24:36 PM by blueblur121 »

still not gettin it
Yeah you won't unless you have done a tiny bit of programming before. Or have someone explain it to you like BlueBlur.
His definition is better than mine :I