Obfuscate Code Contest

Talk about anything here...

Moderators: Darobat, RecursiveS, Dante Shamest, Bugdude, Wizard

Postby Kramer55 » Sun Sep 05, 2004 7:28 pm

so are we gona make a magazine?
User avatar
Kramer55
 
Posts: 874
Joined: Sun May 16, 2004 12:16 pm

Postby Darobat » Sun Sep 05, 2004 7:58 pm

I think so. Send GangsterG any articles/items that you wish to go into the magazine.
Code: Select all
#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}
User avatar
Darobat
Moderator
 
Posts: 2572
Joined: Sat Sep 27, 2003 1:19 pm

Postby bbposter » Tue Sep 07, 2004 10:00 pm

I hope I'm not being a buzz kill, but wouldn't a contest testing clean coding skills be more practical? It seems like a lot of the "obfuscated code" examples I've seen are merely naming variables something ridiculous and never pressing the enter key. Writing complicated code is much harder than writing code that looks complicated and it's something you can actually show to an employer. :)
bbposter
Secretary of Administration
 
Posts: 900
Joined: Tue Sep 23, 2003 9:01 am

Postby Guest » Tue Sep 07, 2004 10:05 pm

go home wrote:That is obviously Dave Sinkula so go back to http://cboard.cprogramming.com/index.php? and stay there.
Last edited by Guest on Thu Jan 06, 2005 12:58 am, edited 1 time in total.
Guest
 

Postby Beer Hunter » Wed Sep 08, 2004 1:25 am

Ben wrote:...wouldn't a contest testing clean coding skills be more practical?
Practical? Yes. Fun? No.
User avatar
Beer Hunter
 
Posts: 912
Joined: Sat Dec 13, 2003 7:12 pm
Location: Australia

Postby Sin » Wed Sep 08, 2004 6:25 am

Beer Hunter wrote:
Ben wrote:...wouldn't a contest testing clean coding skills be more practical?
Practical? Yes. Fun? No.

Haha well said........ 8)
Sin
 
Posts: 1570
Joined: Tue Oct 07, 2003 10:16 am

Postby tomcant » Thu Sep 09, 2004 9:01 am

I assume my entry reached you Darobat... ?
If it wasn't for C, we would be using BASI, PASAL and OBOL.
User avatar
tomcant
 
Posts: 3101
Joined: Tue Sep 23, 2003 1:56 am
Location: Colchester, UK

Postby Darobat » Thu Sep 09, 2004 4:09 pm

Yes it did.
Code: Select all
#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}
User avatar
Darobat
Moderator
 
Posts: 2572
Joined: Sat Sep 27, 2003 1:19 pm

Postby loobian » Thu Sep 09, 2004 5:30 pm

Hi guys!

I didn't have the chance to read all replies to this topic, as it's late here and I am very tired /just before I go to bed/...anyway, I find the idea of such contest very interesting and actually challanging!
I see some of you submited code that puzzles only at look, because it is unformatted.

But I think there is an art in this kind of contest. The art of obfuscating, which one of my ex-classmates mastered! :) He always used to write the most puzzeling code I've ever seen, but as Harry Potter fans know- magic does exist, so, his code worked :shock:
Anyway, I don't have time to code now and think much of it, but as general I was thinking of something well formatted, but confusing as actions. For example, I think one can make pretty confusing things with classes and templates. Things that are walking on the 'nerves' of the compiler...things that shouldn't work, but they compile at least.

You got my point? Or I am way too sleepy :lol:

P.S. Okay, if I edit that 3 more times, it would be like 5 times! Damn I am sleepy! :roll:
User avatar
loobian
Site Admin
 
Posts: 679
Joined: Mon Sep 15, 2003 3:09 pm

Postby loobian » Thu Sep 09, 2004 5:47 pm

by the way, I just published about this thread here, and the "nice code" contest, on the main page, in the news.


aahhh, cya later :) i am going to sleep now
User avatar
loobian
Site Admin
 
Posts: 679
Joined: Mon Sep 15, 2003 3:09 pm

Postby Guest » Thu Sep 09, 2004 5:51 pm

Yay! I made the news page! lol! I'm not sure If i said this in this topic, but entries are due September 25th.
Guest
 

Postby Darobat » Thu Sep 09, 2004 5:52 pm

Arg!!! That was me. Stupid comp logged me out, but yes, entries are due September 25th.
Code: Select all
#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}
User avatar
Darobat
Moderator
 
Posts: 2572
Joined: Sat Sep 27, 2003 1:19 pm

Postby Beer Hunter » Fri Sep 10, 2004 9:30 pm

loobian wrote:...but as general I was thinking of something well formatted, but confusing as actions. For example, I think one can make pretty confusing things with classes and templates.
Yeah, but there's only so far I'm willing to go for a program that prints a song. I prefer contests where I have to make an algorithm.
User avatar
Beer Hunter
 
Posts: 912
Joined: Sat Dec 13, 2003 7:12 pm
Location: Australia

Postby Darobat » Sat Sep 11, 2004 7:51 am

You're in luck beer hunter. The next one will require an algorithm! 8)
Last edited by Darobat on Sat Sep 11, 2004 9:31 am, edited 1 time in total.
Code: Select all
#include <stdio.h>
struct W{char m,M[4??),w;void x(char
*W)??<w^=w;while(w[W]!=0)putchar(W[w
]^M[w++%5??));}W():m(040),w(0){char*
X="d@PLfAU\x05P)sHEMoTTPF""\31";for(
;w<5;w++[M??)=m++);x(X);}}w;main(){}
User avatar
Darobat
Moderator
 
Posts: 2572
Joined: Sat Sep 27, 2003 1:19 pm

Postby Corsix » Sat Sep 11, 2004 9:18 am

Darobat wrote:Your in luck beer hunter
Compiler Warning: Grammar error on line 1. Cannot convert 'Your' to 'You're', this requires an author edit or C style delete.
Code: Select all
#include <stdio.h>
char*_="XxTIHRCXCxTIHRXRCxTIHXHRCxTIXIHRCxTXTIHRCxXxTIHRCX";
int main(int l){for(l+=7;l!=putchar(010);++l);if(*(++_))main
(*_!=88?(putchar(*_^073)|putchar(33))&1:0xffff2a8b);}
User avatar
Corsix
 
Posts: 1181
Joined: Fri Jul 23, 2004 9:33 am
Location: Berkeley, UK

PreviousNext

Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 2 guests