Code that may or may not pass muster
1
Name:
Anonymous
2009-10-01 2:42
I know we've got some computer science students in here, and I know you've written some questionable code at 2:30 in the morning before your project is due. So post it here! Preferably one-liners. Here's mine. I'm interested to see what my prof thinks of it... opinions could differ.
printf("%.1f%c", *e, (0 == (e - matrix + 1) % size)?'\n':'\t');
41
Name:
Anonymous
2009-10-01 15:22
>>37
Well, there already is the
Continuation monad.
42
Name:
Anonymous
2009-10-01 20:14
>>26
I am amazed by
blah(s)
43
Name:
Anonymous
2009-10-02 4:29
>>42
blah(s) is an
[b] EXPERT FUNCTION NAME [/]b]
44
Name:
Anonymous
2009-10-02 12:19
>>43
#<COMPILED-PROCEDURE:BLAH>
45
Name:
Anonymous
2009-10-02 12:21
#<FUNCTION BLAH>
46
Name:
Anonymous
2009-10-02 12:31
>>> blah
<function blah at 0xb801b72c>
47
Name:
Anonymous
2009-10-02 12:36
blah
#<procedure:blah>
48
Name:
Anonymous
2009-10-02 14:39
draw_text(text+ending,font,(10-scroll_text,15+font_height+(i*font_height)+((ani/10.0)*font_height)),color)
sup
49
Name:
Anonymous
2009-10-02 20:40
HWND* dicks = make_print_window(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 400, 400);
50
Name:
Anonymous
2009-10-03 6:00
(define math:cos (get-ffi-obj "cos" (ffi-lib "libc") (_fun _double -> _double)))
Chicken Scheme users: don't even dare pussy out and use the c library.
51
Name:
Anonymous
2009-10-03 17:28
>>49
Ludicrous. I can tell you right now that any API like that would
not pass muster. Nobody would publish it.
52
Name:
Anonymous
2009-10-03 20:26
>>51
take a look at msdn some day
53
Name:
Anonymous
2009-10-03 20:36
>>52
You'd better get your Internet sarcasm detector checked.
54
Name:
Anonymous
2009-10-03 20:37
>>53
You forgot to use [sarcasm] tags
55
Name:
Anonymous
2009-10-03 20:41
>>52
How does someone this dumb know how to use the internet?
56
Name:
Anonymous
2009-10-03 20:54
>>55
say that to my face fucker and
not online and see what happens
57
Name:
Anonymous
2009-10-03 22:06
>>56
I would require your address and what hours you would be available to show me what would happen when I told you that to your face and not online.
58
Name:
Anonymous
2009-10-08 16:19
PHP:
$set = function ($bool) { $var = $bool; };
$var = $set(true);
if ($var == true) { echo 'var is true'; };
59
Name:
Anonymous
2010-11-25 21:01
60
Name:
Anonymous
2010-12-17 1:30
Are you GAY ?
Are you a NIGGER ?
Are you a GAY NIGGER ?
If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!
61
Name:
Anonymous
2011-02-02 22:48