4chan memes the /prog/ way
1
Name:
Anonymous
2007-02-01 17:48
First: No, I don't give a shit what you think.
if(!TITS){
GTFO();
}
2
Name:
Anonymous
2007-02-01 17:50
printf("longcat is l");
for(i=1;i<LONGCAT_LENGHT;i++){
printf("o");
}
printf("ng\n");
3
Name:
Anonymous
2007-02-01 17:55
Do
IF Whale then
ManHarpoons = true
End IF
Loop
4
Name:
Anonymous
2007-02-01 17:56
[code]
<?php
$text = $_POST['text'];
if(stristr("Candlejack", $text){
$random = (rand()%len($text));
$text = substr($text, 0, $random);
}
?>
5
Name:
Anonymous
2007-02-01 18:00
>>2
/* longcat 2.0 */
printf("longcat is l");
while(true) printf("o");
printf("ng"); /* longcat is so long, it never reaches this part of the code */
6
Name:
Anonymous
2007-02-01 18:01
furries = re.compile("furr(y|ies)")
if(re.search(furries, post['text']):
post['poster'].burn()
7
Name:
Anonymous
2007-02-01 18:11
Loop:
CALL Getpic
IF NoNudity(Pic) THEN GOTO Safe
IF Over18(Pic) THEN GOTO Safe
CALL PartyVan
Safe:
PRINT "Image uploaded!"
GOTO Loop
8
Name:
Anonymous
2007-02-01 18:15
public static void main(String args[]) {
try {
int result = args[1] / args[2]
} catch( ArithmeticException e) {
System.err.println("OH SHI-" +e) }
}
9
Name:
Anonymous
2007-02-01 18:42
>>4
<?php
$text = $_POST['text'];
if(stristr("Candlejack", $text){
$random = (ran
10
Name:
Anonymous
2007-02-01 18:43
ITT PEOPLE ACT LIKE FAGS
11
Name:
Anonymous
2007-02-01 22:53
perl -e 'sub desu { return "DESU " . desu(); } print desu();'
12
Name:
Anonymous
2007-02-02 1:25
LDA #$0F
STA 53280
STA 53281
LDA #$00
STA 646
LDA #>STRING
STA $FB
LDA #<STRING
STA $FC
LDY #0
LOOP
LDA ($FB),Y
BEQ EXIT
JSR $FFD2
INY
JMP LOOP
EXIT
JMP EXIT
STRING
.DB 147
.ASC "MySQL connection failure."
.DB 0
13
Name:
Anonymous
2007-02-02 5:41
for thread in threads:
for post in posts:
if post['image'] not in myImages:
thread.reply("ZOMG TORRENT PLZ!!!")
14
Name:
Anonymous
2007-02-02 5:49
int i;
int n = lastPost;
for(i = 1; i <= lastPost; i++) {
puts(">>%i", i);
}
puts("same person");
15
Name:
Anonymous
2007-02-02 7:01
>>14
Good, but don't use shitCase, use propercase or proper_case for variables, ProperCase for functions/methods/classes, and PROPERCASE or PROPER_CASE for constants.
16
Name:
Anonymous
2007-02-02 7:19
VOID CheckPostForFurries(HANDLE hPost, DWORD fParam) {
struct SEARCH_STRUCTURE srchSearch =
{"furr",
SRCHSTR_CASE_INSENSITIVE | SRCHSTR_UNANCHORED,
NULL,
NULL,
NULL};
int i = SearchWithinPosts(hPost, NULL, srchSearch, NULL, NULL, SRCHWP_COMPARE, NULL, NULL);
if (i == SRCHWPRES_FOUND) {
KillHandleAndHandleOwner(hPost, NULL, NULL, WITH_FIRE, 0);
}
}
17
Name:
Anonymous
2007-02-02 7:21
18
Name:
Anonymous
2007-02-02 8:30
>>16
@echo off
echo "I lol'd!"
19
Name:
Anonymous
2007-02-02 9:06
if($name=="Mitchell")
{
echo "Make horsey noises, Mitchell!";
}
20
Name:
Anonymous
2007-02-02 9:19
>>16
print "a winrar is you"
21
Name:
Anonymous
2007-02-02 16:11
main=return()>>= \ _ ->mapM_ putStr(repeat "DESU ")
22
Name:
Anonymous
2007-02-02 16:17
>>21
That's a bit unnecessary.
main = (sequence_ (repeat (putStr "DESU ")))
23
Name:
Anonymous
2007-02-02 16:18
(sage)
>>22
I happen to like function composition :x
main = (sequence_ . repeat . putStr) "DESU "
24
Name:
Anonymous
2007-02-02 16:35
(sage)
25
Name:
Anonymous
2007-02-02 16:40
!u;
26
Name:
Anonymous
2007-02-02 16:42
TITS xor GTFO
27
Name:
Anonymous
2007-02-02 18:33
>>22
>>23
What's with all the parens, are you trying to Lisp?
main = sequence_ . repeat . putStr $ "DESU "
Fix'd.
28
Name:
Anonymous
2007-02-02 18:37
>>27
$ is ugly and won't see any use in my programs.
29
Name:
Anonymous
2007-02-02 18:40
30
Name:
Anonymous
2007-02-02 19:07
Those programs are good if you want infinitely many desus out on the terminal. However, if you're doing anything more complicated, chances are that you're going to just want a list of desus, out of which you can pick as many as you want.
desus = repeat "DESU"
delimit = (concat .) . intersperse
putStr $ delimit " " desus
Or, if you're into halting computations...
putStrLn $ delimit " " $ take 1000 desus
31
Name:
Anonymous
2007-02-02 21:16
>>30
Ever heard of
unwords
32
Name:
Anonymous
2007-02-03 11:08
addEventListener(post, postEventListener);
void postEventListener(event){
post = event.getPost();
if(post.getNumber() == 20000000){
post.setPicture('modgets/narutolookskindofcool.jpg', preserveThumbnail=TRUE);
post.commit();
}
}
33
Name:
Anonymous
2007-02-04 0:05
>>7
//EFFICIENT V& PROG 2.0
IF IS_CP(PIC) THEN CALL VAN
ELSE PRINT "Image uploaded!"
34
Name:
Anonymous
2007-02-04 0:06
>>30
java is superior, for infnite DESUs just put
for(int i = 0;;i++)
{
System.out.println("DESU "):
}
35
Name:
Anonymous
2007-02-04 10:29
>>34
while True:
print 'DESU '
36
Name:
Anonymous
2007-02-04 12:01
>>35
# new version:
while True:
print 'DESU ',
37
Name:
Anonymous
2007-02-04 12:43
echo "DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU DESU" > desu
yes `desu`
38
Name:
Anonymous
2007-02-04 16:57
>>34
0xFFFFFFFF + 1 = ?
Hint: In Java the answer is something you mustn't devide by.
while(true)
Console.write("Desu");
39
Name:
Anonymous
2007-02-04 18:39
>>> try:
... 1/0
... except ZeroDivisionError:
... print 'This Python interpreter fails. 1/0 is infinite.'
...
This Python interpreter fails. 1/0 is infinite.
>>> :(
40
Name:
Anonymous
2007-02-04 22:20
My first post...
.data
desu:
.string "DESU "
.text
.global _start
_start:
movl $4, %eax
movl $1, %ebx
movl $desu, %ecx
movl $5, %edx
int $0x80
jmp _start
41
Name:
Anonymous
2007-02-05 0:38
void glutSolidSphere(GLdouble radius, GLint slices, GLint stacks);
draw() {
glutSolidSphere(1.f, 16, orca);
}
42
Name:
Anonymous
2007-02-05 9:18
>>40
Drop the shitsyntax, GNU hippy
43
Name:
Anonymous
2007-02-05 15:17
>>42
that's GNU/shitsyntax!
44
Name:
Anonymous
2007-02-06 7:25
>>39
while(JAVA>PYTHON)//WOOPS WOOPS WOOPS INFINITE LOOP
{
printf("PYTHON FAILED");
}
45
Name:
Anonymous
2007-02-06 7:41
>>44
hahahahahaha LOL NICE
46
Name:
Anonymous
2007-02-06 13:51
>>44
I tried it and nothing happened. wonder why's that?
47
Name:
Anonymous
2007-02-06 19:26
>>46
Your computer is probably infected with the virus known as "Python". The only way to fix it is to kill yourself.
48
Name:
Anonymous
2007-02-07 0:13
49
Name:
Anonymous
2007-02-07 0:39
All shit here could be done in basic/ruby with easymode syntax, why do it so bloody fancy?
Also, in before machine code meme, in machinecode.
50
Name:
Anonymous
2007-02-07 1:29
time for a bit of perl:
TITS or GTFO
51
Name:
Anonymous
2007-02-07 1:51
52
Name:
Anonymous
2007-02-07 5:40
TITS ? MOAR : GTFO;
53
Name:
Anonymous
2007-02-07 9:13
function f(f){
return f(f)
}
f=f(function(){
return f
});
var l=f.length;
alert(f(function(f){
return f
})(function(x,y){
return Math.pow(y,-x)
})(l--,l));
54
Name:
Anonymous
2007-02-07 17:13
>>15
I like to smoke camelCigarettes
55
Name:
Anonymous
2007-02-07 17:16
56
Name:
Anonymous
2007-02-07 18:27
>>54
That's shitCase, I should scold you.
CamelCase is the ProperCase.
57
Name:
Anonymous
2007-02-07 18:32
58
Name:
Anonymous
2007-02-07 18:40
(sage)
>>56
no, UPPER_CASE is is the PROPER_CASE for constants, and lower_case is the proper_case for everything else.
59
Name:
Anonymous
2007-02-07 21:27
+[>++++++++++[>+++++++<-]>--.[-]<
++++++++++[>+++++++<-]>-.[-]<
++++++++++[>++++++++<-]>+++.[-]<
++++++++++[>++++++++<-]>+++++.[-]<
++++++++[>++++<-]>.[-]<<]
60
Name:
Anonymous
2007-02-08 3:34
proper_variable_case (alt. propercase for short stuff)
ProperFunctionCase, ProperClassCase, MethodsAreFunctions
PROPER_CONSTANT_CASE (alt. PROPERCASE for short stuff)
61
Name:
Anonymous
2007-02-08 4:17
>>60
why should functions, classes, and methods be different from other variables?
62
Name:
Anonymous
2007-02-08 4:59
(sage)
>>61
convention. it varies from language to language, though.
63
Name:
Anonymous
2007-02-08 5:37
Forced conventions for the win (Haskell, starting functions with a capital is an error).
64
Name:
Anonymous
2007-02-08 7:34
>>61
I'm
>>60, and I sympathize with your question. It's convention, just so you know what's callable. I'll agree that differentiating an integer from a string (be it iStuff and lpszStuff (Hungarian notation shit) or stuff% and stuff$ (... OR GTFO)) is excessive, and shouldn't be necessary (if you call a "Rofl" method, you expect any object of any class that's stored in the variable should be able to do "Rofl"), but actually executing (even though it can be seen as a method as well, like Python) is "serious business". So I capitalize what's callable (classes, functions, even callable objects in Python), but I sympathize with your intent on treating functions absolutely the same as any other data type (and that code is a particular case of data, not something different).
>>63
You gave me just another reason not to bother with Haskell (besides insane syntax, needlessly complicated, small codebase/community made mostly from el33tist h4xx0rz). I follow my own (
>>60 ) conventions on any language; if I can't, I get pissed.
65
Name:
Anonymous
2007-02-08 7:52
>>64
those are not conventions you follow, but your own obnoxious compulsions. python has pep 8, and if you can't follow it, you're being a dick to other people that will read your code. and believe me, your own naming style is not smarter than the official convention, and even if it was, you couldn't justify using it, because it's confusing when something else than a class is in camel case in python
66
Name:
Anonymous
2007-02-08 8:03
>>64
besides insane syntax
Like what.
needlessly complicated
To do complicated things, you write complicated code -- or simple code that runs like crap.
small codebase
Are you referring to libraries and applications and such? There are a lot.
community made mostly from el33tist h4xx0rz
Mostly professors, but a couple elite hackers as well.
I follow my own ( >>60 ) conventions on any language; if I can't, I get pissed.
Aha, a weak point! Also, Haskell forces classes and modules to start with a capital, and possibly constants as well... now how do you define a constant? Oh, like that.
67
Name:
Anonymous
2007-02-08 22:32
>>59
+++[>+++[>++<-]<-]
>>- [>++++>+++++>++<<<-]>
>>-- <<[.+.->--.++.>.<<]
68
Name:
Anonymous
2007-02-09 2:06
>>66
Fuck you. I can write simple code to do anything. Check this out, this program runs Windows XP and it is very simple.
#include fake-boot-screen.h
#include bsod.h
int main() {
doBootScreen();
doBSOD(0x0000000A, 0x12345678, 0x12345678, 0x12345678, 0x12345678);
for(;;);
return -1;
}
69
Name:
Anonymous
2007-02-09 3:47
One word, the forced indentation of code. Thread over.
70
Name:
Anonymous
2007-02-09 4:58
>>68
I can't believe a Win32 API function would require no parameters, and the BSOD function wouldn't require security descriptor structures and such.
71
Name:
Anonymous
2007-02-10 12:36
Dim Spongebob As Float
72
Name:
Anonymous
2007-02-11 19:47
post = {"content" => "LOL, I'm a girl", "tits" => false}
puts(post["content"])
while not post["tits"]
puts("tits or gtfo!".upcase)
end
73
Name:
fuck taht shit
2007-02-12 0:53
upgrade UPGRADE UPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
UPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADEUPGRADE
74
Name:
Anonymous
2007-02-12 1:59
>>70
Security descriptors? In MY Win32 API?
75
Name:
Anonymous
2007-02-12 2:04
>>74
Its more. Likely than you think. Thread over.
76
Name:
Anonymous
2007-02-13 3:21
>>52
You win for use of the trinary operator!
77
Name:
Anonymous
2007-02-13 8:37
def invader
puts("I\'m in your program, killing your l00ps")
return break
end
while true
invader
end
78
Name:
ee™
2007-02-13 12:20
if(i==inurbase){
std::cout<<'LURNING UR SEKRETS';
}
79
Name:
Anonymous
2007-02-13 20:02
int main()
{
return 16544;
}
BOO
80
Name:
Anonymous
2007-02-13 20:21
int main()
{
goto lol;
while(1)
{
printf("Unreachable code");
}
lol :
return 522523525;
}
One word, random indentation of the code. Thread over.
81
Name:
Anonymous
2007-02-13 20:24
82
Name:
Anonymous
2007-08-03 13:42
ID:n+XIRWNa
while(in(base)) {
kill(doodz);
}
83
Name:
Anonymous
2007-08-03 13:59
ID:cJtQSiuB
if (picture != goatse)
4chan.post("MOAR");
84
Name:
Anonymous
2007-08-03 14:01
ID:e2HdHpaW
echo str_replace("jailbait", "giant black cock", $post);
85
Name:
Anonymous
2007-08-03 14:19
ID:Heaven
86
Name:
Anonymous
2007-08-03 14:34
ID:Heaven
>>84
Can't we at least declare /prog/ a PHP-free zone? gb2/massivefailure/ or /programmaticvomiting/ or somewhere else.
87
Name:
Anonymous
2007-08-03 14:41
ID:Heaven
>>86
"Can't we at least declare /prog/ a PHP-free zone?"
lol shiichan
88
Name:
Anonymous
2007-08-03 16:12
ID:Heaven
>>87
You got the hint, did you? Hopefully someone else does, too...
89
Name:
Anonymous
2009-01-14 13:34
lol tripfags
90
Name:
Trollbot9000
2009-07-01 9:15
first thing you plan on doing is trying to do it So here it is enjoy include stdio h include iostream include?
91
Name:
Anonymous
2010-06-20 20:39
[footnote]proof that all /prog/riders come from the image boards[/footnote]
92
Name:
Anonymous
2010-06-20 21:49
>>90
Trollbot9000's still going? I don't remember seeing any recent posts by it.
93
Name:
shortest joke in the thread
2010-06-20 21:51
PHP
94
Name:
Anonymous
2010-06-20 21:54
Why did you drudge up this monstrosity of a thread,
>>91 ? I am so unbelievably trolled right now.
95
Name:
Anonymous
2010-06-20 22:20
>>94
Because he's an imageboard moron who can't accept that we're better than him.
96
Name:
Anonymous
2010-06-20 22:26
I'm listening to some strict beats. It helps while
>>91 destroys me.
97
Name:
Anonymous
2010-06-21 8:21
#Python, 3.0
if thread.shit == 1:
print ("LOL XDD, SO RANDOM OP")
98
Name:
Anonymous
2010-06-21 8:29
>>97
>>> print thread.shit
98
99
Name:
Anonymous
2010-06-21 12:04
>>97
Stop bumping it, you image board faggot.
100
Name:
Anonymous
2010-06-21 14:11
Post p=null;
while( (p=getPost()) != null ){
if(PostAnalyzer.analyze(p)==PostAnalyzer.SHIT_POST){
if(Globals.board.equals("/b/"){
p.reply("Go back to gai");
}else if(Globals.board.equals("/prog/"){
p.reply("Go back to /b/");
}else{
p.reply("Go back to "+Globals.getPlaceThatIsntHere());
}
}
}
101
Name:
Anonymous
2010-06-21 14:35
>>21,22,23,30
Srsly gais... slrsly.
main = forever $ putStr "DESU "
Or:
main = putStr $ cycle "DESU "
Yes, I know they are 3 years old.
102
Name:
Anonymous
2010-06-21 19:13
>>101
I like
main = putStr msg
where msg = "DESU " ++ msg
even if it is a little longer.
103
Name:
2010-10-24 23:46