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