Write a program that's really complicated-looking but still does something
Printable View
Write a program that's really complicated-looking but still does something
*bump*
One for next time round...... (hopefully!) :)
yeah, i'd like to see this one done, too. flashdaddee did its own a while ago, maybe in 2001. it's at the flashdaddee forums and under contest entries section of the web site if anyone wants to look around.
*bump*
*bump*
Did you know there is a real contest for this.
I have a link for it, I dont know if I shoud put it here, if you do want it Ill post itl.
i know: the ioccc
flashdaddee did one, too. 7 ppl participated (which is remarkable for flashdaddee). you can check it out on the contests page at flashdaddee
Ygf do you mean a program that I don't know adds a couple of number together, but contains 800 or so lines of code and does a lot with it?
basically, a topic is picked. let's say... prining a name. (flashdaddee already did this idea, but bear with me). your job is to make code that does that but is as complicated and needlessly wasteful as possible, but still has some kind of creative order to it.
it's hard to explain. flashdaddee.com and the ioccc web sites have some examples.
*bump*
As long as it doesnt have to do much, Ill just have fun making it look complicated etc.
Ill probably enter, if this is nominated, I would assume a lot more poeple would, since it doesnt deal with a lot of programming.
Im personally not very sound with anything but Java right now. I just know a little C, and learning C++ soon.
>Ygf do you mean a program that I don't know adds a couple of number together, but contains 800 or so lines of code and does a lot with it?
Possibly, but a simple explanation would be the most compact, and/or impossible to understand spawn of satan that you can manage. Here is a quickie example:
All it does is convert a decimal value to hexadecimal, but it goes nuts in the process. ;)Code:#include<stdio.h>
g(p,i)char*p;int(i);{if(*p!=0&&g(*&p+i++-01+1,++i-1
+0x1)){}return(i);}s(o,t)char*o;char*t;{char*m=*&o;
while((*m++=*t++)!=00){}}c(h,f)char*h;char*f;{
while(*&*h+0x1-4+03&&h++){}while(*&*&*h++=*f++){}}r(s)
char*s;{char**i,*j=&*(g(s,0)+s-1);for(i=&*&s;*i<*
&*&*&j;**i^=*&*j,*&*j^=**i,**i^=*&*j,*--&*i,&*--&
*j);}h(v,b,m,i)int(v);char*b;int(m);int(i);{char(
t)[100]={0};do*(i+t)=*(v%0x10+"0123456789ABCDEF")
;while((v/=017)&&~i++<-~m);r(t);s(b,"0x");c(b,t);}
main(){char(p)[102]={0};h(27,p,((char*)(&p+1)-(char
*)&p)/((char*)(p+1)-(char*)p),0);puts(p);return(0);}
-Prelud
Umm not to be anti climatic or anything but what would be the point of doing this program? I mean the other ideas have all been ones that can somehow hone your programming skills. How can writing crap make you not write crap?
I think this one would just be for fun!
How about a very short contest in which we obfuscate "Hello World!" :)
i like the ioccc methodology better; there is no one program you have to make, all it has to be is something simple that is overcomplicated with obfuscation :DQuote:
Originally posted by ygfperson
basically, a topic is picked. let's say... prining a name. (flashdaddee already did this idea, but bear with me). your job is to make code that does that but is as complicated and needlessly wasteful as possible, but still has some kind of creative order to it.
it's hard to explain. flashdaddee.com and the ioccc web sites have some examples.
Quote:
Originally posted by Prelude
>Ygf do you mean a program that I don't know adds a couple of number together, but contains 800 or so lines of code and does a lot with it?
Possibly, but a simple explanation would be the most compact, and/or impossible to understand spawn of satan that you can manage. Here is a quickie example:
All it does is convert a decimal value to hexadecimal, but it goes nuts in the process. ;)Code:#include<stdio.h>
g(p,i)char*p;int(i);{if(*p!=0&&g(*&p+i++-01+1,++i-1
+0x1)){}return(i);}s(o,t)char*o;char*t;{char*m=*&o;
while((*m++=*t++)!=00){}}c(h,f)char*h;char*f;{
while(*&*h+0x1-4+03&&h++){}while(*&*&*h++=*f++){}}r(s)
char*s;{char**i,*j=&*(g(s,0)+s-1);for(i=&*&s;*i<*
&*&*&j;**i^=*&*j,*&*j^=**i,**i^=*&*j,*--&*i,&*--&
*j);}h(v,b,m,i)int(v);char*b;int(m);int(i);{char(
t)[100]={0};do*(i+t)=*(v%0x10+"0123456789ABCDEF")
;while((v/=017)&&~i++<-~m);r(t);s(b,"0x");c(b,t);}
main(){char(p)[102]={0};h(27,p,((char*)(&p+1)-(char
*)&p)/((char*)(p+1)-(char*)p),0);puts(p);return(0);}
-Prelud
Code:C:\WINDOWS\Desktop>gcc -c dum.c -o dum.o
dum.c: In function `r':
dum.c:7: invalid lvalue in decrement
dum.c:8: invalid lvalue in decrement
Where did you get a gcc compiler for windows moi?
I thought those were only in unix/linux.
i'm using djgpp which is an MS DOS port of gcc and friends (but of course works under windoze as well), the other two popular ones are mingw and cygwin, both for win32. all three are linked from http://gcc.gnu.org/install/binaries.htmlQuote:
Originally posted by MethodMan
Where did you get a gcc compiler for windows moi?
I thought those were only in unix/linux.
As I said, it is a quick program I edited in about five minutes as an example, not guaranteed to be portable. ;)Code:C:\WINDOWS\Desktop>gcc -c dum.c -o dum.o
dum.c: In function `r':
dum.c:7: invalid lvalue in decrement
dum.c:8: invalid lvalue in decrement
-Prelude
thank you. that was exactly the word i was searching for. :DQuote:
spawn of satan
yep, pretty much. there would definitely be different criteria for grading...and there would still be a winner, but it would all be in good fun.Quote:
I think this one would just be for fun!
It would be more interesting to see a reasonably complicated program written in as few lines of code as possible :P
I know its old but...Sorry Prelude, not good enough!Quote:
error C2065: 'p' : undeclared identifier
error C2065: 'i' : undeclared identifier
error C2448: '<Unknown>' : function-style initializer appears to be a function definition
fatal error C1004: unexpected end of file found
I've thought about it a bit, and I would absolutely love to obfuscate a simple problem. I think that sounds like tons of fun. Count me in for that contest. I just really wish there was some way to get the ball rolling here. We haven't had a contest for quite a while:(
Administration knows, something will be forthcoming.
Yay! A contest is coming, a contest is coming. Yay!!Quote:
Originally posted by kermi3
Administration knows, something will be forthcoming.