Discuss Scratch

MegaApuTurkUltra
Scratcher
1000+ posts

What's the funniest code we can think of?

bobbybee wrote:

I spend too much time on reddit I think :p
don't we all?
gdpr533f604550b2f20900645890
Scratcher
1000+ posts

What's the funniest code we can think of?

MegaApuTurkUltra wrote:

bobbybee wrote:

I spend too much time on reddit I think :p
don't we all?
A surprise to be sure, but a welcome one.
nathanprocks
Scratcher
1000+ posts

What's the funniest code we can think of?

StackMasher wrote:

NobodyIsHereOk wrote:

Any kind of loop that spams text, because I like flooding consoles with thousands of the same characters.

while (true) {
System.out.println(“Hi there, I'm java code! So anyways, how is your day? Probably not so great, since I am spamming your screen here…”);
}
CTRL+C
sudo find / -name '*java*' -delete
mr-scratch-cat
Scratcher
500+ posts

What's the funniest code we can think of?

MegaApuTurkUltra wrote:

Guys has nobody around here seen the expanding brain meme before

tldr it's a set of panels where the thing being portrayed gets progressively dumber and more complicated while the image displays increasing levels of “enlightenment”
see various examples
One of the funniest memes I've discovered. Thanks so much!
Zorohh
Scratcher
100+ posts

What's the funniest code we can think of?

/**
* Always returns true.
*/
public boolean isAvailable() {
return false;
}
Zorohh
Scratcher
100+ posts

What's the funniest code we can think of?

I found this one funny for some reason.

/* Copyright © <YEAR>, <OWNER>
* All rights reserved.
*
* This program is licensed under the Chicken Dance License v0.2
*
* You should have received a copy of the license text with this
* software, along with instructions on how to perform the Chicken
* Dance.
*/

#include <stdio.h>

int main()
{
printf(“This program is licensed under the CDL.\n”); /* I don't want to license “Hello World” */
printf(“\a”);
return 0;
}
Zorohh
Scratcher
100+ posts

What's the funniest code we can think of?

idk why..

Last edited by Zorohh (May 10, 2017 18:43:19)

awesome-llama
Scratcher
1000+ posts

What's the funniest code we can think of?

Zorohh wrote:

I found this one funny for some reason.

/* Copyright © <YEAR>, <OWNER>
* All rights reserved.
*
* This program is licensed under the Chicken Dance License v0.2
*
* You should have received a copy of the license text with this
* software, along with instructions on how to perform the Chicken
* Dance.
*/

#include <stdio.h>

int main()
{
printf(“This program is licensed under the CDL.\n”); /* I don't want to license “Hello World” */
printf(“\a”);
return 0;
}
Lol, where did you find that?
nathanprocks
Scratcher
1000+ posts

What's the funniest code we can think of?

awesome-llama wrote:

Zorohh wrote:

I found this one funny for some reason.

/* Copyright © <YEAR>, <OWNER>
* All rights reserved.
*
* This program is licensed under the Chicken Dance License v0.2
*
* You should have received a copy of the license text with this
* software, along with instructions on how to perform the Chicken
* Dance.
*/

#include <stdio.h>

int main()
{
printf(“This program is licensed under the CDL.\n”); /* I don't want to license “Hello World” */
printf(“\a”);
return 0;
}
Lol, where did you find that?
https://github.com/supertunaman/cdl
Jonathan50
Scratcher
1000+ posts

What's the funniest code we can think of?

(sleep 120; clear) &
Wettining
Scratcher
500+ posts

What's the funniest code we can think of?

+++++++ +++++++ +++++++ +++++++ +++++++ +++++++ +++++++ +++++++ +++++++ +++++++ ++ .

++++++++++++++++++++ ++++++++++++++++++++ ++++++++++++++++++++ ++++++++++++++++++++ ++++++++++++++++++++ ++++++++++++++++++++ ++++++++++++++++++++ ++++++++++++++++++++ ++++++++++++++++++++

++++++++++++++++++++ ++++++++++++++++++++ ++++++++++++++++++++ ++++++++++++++++++++ ++++++++++++++++++++ .

+++++++++++++++++++++++ +++++++++++++++++++++++ +++++++++++++++++++++++ +++++++++++++++++++++++ +++++++++++++++++++++++ +++++++++++++++++++++++ +++++++++++++++++++++++ +++++++++++++++++++++++ +++++++

+++++++++++++++++++++++ +++++

+++++ ++ ..

+++.


++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.


++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ +++++.

++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ +++.

+++.

++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ +++++.


++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ ++++++++++ +++.

This is the hello world program in Small

Last edited by Wettining (Aug. 17, 2017 02:40:41)

Blaze349
Scratcher
1000+ posts

What's the funniest code we can think of?

herohamp wrote:

https://cdn.discordapp.com/attachments/336776237357727745/336950724615471104/image.jpg
Swift code. Swift supports any unicode character.
DatOneLefty
Scratcher
1000+ posts

What's the funniest code we can think of?

Blaze349 wrote:

herohamp wrote:

https://cdn.discordapp.com/attachments/336776237357727745/336950724615471104/image.jpg
Swift code. Swift supports any unicode character.
because apple
Blaze349
Scratcher
1000+ posts

What's the funniest code we can think of?

DatOneLefty wrote:

Blaze349 wrote:

herohamp wrote:

https://cdn.discordapp.com/attachments/336776237357727745/336950724615471104/image.jpg
Swift code. Swift supports any unicode character.
because apple
That's one of the coolest things about Swift. Unicode support is built in. Swift also has generics. This means I don't have to write the same function for each possible type.
__init__
Scratcher
1000+ posts

What's the funniest code we can think of?

Blaze349 wrote:

DatOneLefty wrote:

Blaze349 wrote:

herohamp wrote:

https://cdn.discordapp.com/attachments/336776237357727745/336950724615471104/image.jpg
Swift code. Swift supports any unicode character.
because apple
That's one of the coolest things about Swift. Unicode support is built in. Swift also has generics. This means I don't have to write the same function for each possible type.
In Python 3, you can name variables with unicode characters, but only letterlike ones (i.e. è) - no emojis
Blaze349
Scratcher
1000+ posts

What's the funniest code we can think of?

herohamp
Scratcher
1000+ posts

What's the funniest code we can think of?

fully valid EMCA6

var ಠ益ಠ = "(。◕‿‿◕。)"

var ↀᴥↀ = "(✾♛‿♛)"

var ʘ‿ʘ = {
一_一: function(ಥ﹏ಥ) {
return ಥ﹏ಥ + ಠ益ಠ
},
ಠ_ರೃ: function(ლ) {
return this.一_一(ლ) + ლ
}

}

ʘ‿ʘ.ಠ_ರೃ(ↀᴥↀ+ʘ‿ʘ.ಠ_ರೃ(ಠ益ಠ)+ↀᴥↀ)

Last edited by herohamp (July 19, 2017 04:00:56)

novice27b
Scratcher
1000+ posts

What's the funniest code we can think of?

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
 
#define st8 printf
#define alloc8 malloc
#define concaten8 strcat
#define calcul8 sprintf
#define iter8 for
 
char * r8 (int numer8r, int denomin8r) {
	char * r8ing = alloc8(8);
	calcul8(r8ing, "%d", 100 * numer8r / denomin8r);
	concaten8(r8ing, "%");
	return r8ing;
}
 
int main() {
	iter8 (int i = 8 - 8; i < 8; i++)
		st8("gr8 b8 m8, would r8 %s\n", r8(8, 8));
	return 8;
}

Last edited by novice27b (July 19, 2017 08:42:47)

Wettining
Scratcher
500+ posts

What's the funniest code we can think of?

novice27b wrote:

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
 
#define st8 printf
#define alloc8 malloc
#define concaten8 strcat
#define calcul8 sprintf
#define iter8 for
 
char * r8 (int numer8r, int denomin8r) {
	char * r8ing = alloc8(8);
	calcul8(r8ing, "%d", 100 * numer8r / denomin8r);
	concaten8(r8ing, "%");
	return r8ing;
}
 
int main() {
	iter8 (int i = 8 - 8; i < 8; i++)
		st8("gr8 b8 m8, would r8 %s\n", r8(8, 8));
	return 8;
}
I was reading it backwards and thought it was QBasic for a second

Powered by DjangoBB