Show us your anus programs!
1
Name:
HAXUS THE GREAT
2011-04-02 11:39
#include <iostream>
using namespace std;
struct anus {
bool haxed;
anus() : haxed(0) {}
bool been_haxed();
};
void hax( anus );
int main() {
anus my;
hax(my); // HAX MY ANUS
}
2
Name:
Anonymous
2011-04-02 11:44
your anus is full of boilerplate
3
Name:
Anonymous
2011-04-02 11:48
module Main (main) where
class Haxable a where
hax :: a -> String
newtype Anus = Anus String
instance Haxable Anus where
hax (Anus s) = "HAX " ++ s
main :: IO ()
main = do
let myAnus = Anus "MY ANUS"
putStrLn $ hax myAnus
4
Name:
Anonymous
2011-04-02 11:59
5
Name:
Anonymous
2011-04-02 12:20
>>4
BOILERPLATE IN MY ANUS
6
Name:
Anonymous
2011-04-02 12:28
(define-values (prop:haxable haxable? haxable-get)
(make-struct-type-property 'haxable))
(struct anus (string)
#:property prop:haxable #t)
(define (hax anus)
(if (haxable? anus)
(printf "HAX ~a" (anus-string anus))
(error 'hax "not haxable")))
(let ((my-anus (anus "MY ANUS")))
(hax my-anus))
7
Name:
Anonymous
2011-04-02 13:34
>>5
it's more likely than you think
8
Name:
Anonymous
2011-04-02 13:39
IT'S MORE LIKELY THAN MY ANUS
9
Name:
Anonymous
2011-04-02 14:06
>>8
what is the probability of your anus?
10
Name:
Anonymous
2011-04-02 14:12
11
Name:
Anonymous
2011-04-02 15:16
class Anus:
def __init__(self, anusname):
self.anusname = anusname
def hax(self):
print "HAX " + self.anusname
def hax(anus):
anus.hax()
my_anus = Anus("MY ANUS")
hax(my_anus)
12
Name:
Anonymous
2011-04-02 15:17
>>11
def hax(anus): anus.hax()
Terrible!
13
Name:
Anonymous
2011-04-02 15:25
>>11
>>12
what about making it as lambda?
[code] hax = lambda o: o.hax()[/cpde]
14
Name:
Anonymous
2011-04-02 15:29
>>13
Wrappers considered harmful.
15
Name:
Anonymous
2011-04-02 15:36
>>12
That was there so I could say
hax(my_anus) instead of
my_anus.hax() ;_;
>>15
Subject-oriented paradigm considered harmful.
17
Name:
Anonymous
2011-04-02 15:55
>>16
Behaviour driven concepts considered not harmfull:
hax(my(Anus("MY ANUS"))
18
Name:
Anonymous
2011-04-02 16:06
local anus = { }
function anus:hax () print("HAX " .. self.name) end
function Anus (my_anus)
local a = { name = my_anus }
setfenv(2, a)
return setmetatable(a, { __index = anus })
end
my_anus = Anus "MY ANUS"
hax(my_anus)
19
Name:
=+=*=F=R=O=Z=E=N==V=O=I=D=*=+=
!frozEn/KIg
2011-04-02 16:28
I dont get all this anus mania here
20
Name:
VIPPER
2011-04-02 16:32
/prog/ is about anii and autism, maybe some hax here and there. But mostly anus.
21
Name:
Anonymous
2011-04-02 18:00
>>18
Seeing Lua code makes me sad.
A good language gone bad ;_;
22
Name:
Anonymous
2011-04-02 18:03
23
Name:
Anonymous
2011-04-02 18:07
>>22
No, just sad. It's the same feeling as when someone mentions mai waifu ;_;
24
Name:
Anonymous
2011-04-02 18:38
>>23
I feel the same when I realize that everybody owns a computer. I wish I could travel back in time, when there were card punchers. No kidding.
25
Name:
Anonymous
2011-04-02 18:41
26
Name:
Anonymous
2011-04-02 18:50
>>25
C VALID FORTRAN
FTFY
27
Name:
Anonymous
2011-04-02 19:45
28
Name:
Anonymous
2011-04-02 20:58
ASSERT MY ANUS
29
Name:
Anonymous
2011-04-03 2:03
(DEFUN MY-ANUS)
30
Name:
Anonymous
2011-04-03 2:17
TRY MY ANUS
31
Name:
Anonymous
2011-04-03 2:22
>>30
everyone has, by now.
32
Name:
Anonymous
2011-04-03 7:20
hi guys
*throws nullpointerexception*
33
Name:
Anonymous
2011-04-03 12:09
>>28
I'D ASSERT YOUR ANUS
I'd goto
comeinto your : (that's right - the colon).
34
Name:
Anonymous
2011-04-03 12:14
>>33
GOTO CONSIDERED HARMFUL
35
Name:
Anonymous
2011-04-03 12:38
36
Name:
Anonymous
2011-04-03 13:31
iostream functions are slower tha cstdio functions.
37
Name:
Anonymous
2011-04-03 13:57
>>36
It's even worse if you think that the functions get dispatched at compile time.
38
Name:
Anonymous
2011-04-03 14:48
39
Name:
Anonymous
2011-04-03 16:42
: FORTH MY ANUS ;
40
Name:
Anonymous
2011-04-03 16:54
41
Name:
Anonymous
2011-04-03 20:53
||| In 1955 one man who was "feeling depressed" reportedly inserted a six-inch paper tube into his rectum, dropped in a lighted firecracker, and blew a hole in his anterior rectal wall.
42
Name:
Anonymous
2011-04-03 22:30
>>41
A mere 3 years later,
LISP appeared. Coincidence?
You be the judge!
43
Name:
Anonymous
2011-04-04 0:06
>>42
Most notably,
two years later,
FORTRAN appeared, and
ALGOL after it. Coincidence?
I think not!
44
Name:
Anonymous
2011-04-04 2:21