EvilZone

Programming and Scripting => Projects and Discussion => : Ragehottie August 19, 2012, 01:22:11 AM

: Ultimate programming challenge
: Ragehottie August 19, 2012, 01:22:11 AM
The ultimate challenge.  Can you make a program to print the source code of said program? It has to be language portable... work on any language. So you can't read the file and print its contents.
: Re: Ultimate programming challenge
: Zesh August 19, 2012, 01:45:06 AM
lolwhat? :P Is the program meant to decompile files and grab their source or hook into the IDE to retrieve the source? If you can't read the file then how do you accomplish this task? Explain your challenge in a better manner :D
: Re: Ultimate programming challenge
: techb August 19, 2012, 01:45:22 AM
This is called a quine. To add to the challenge, make it a one-liner.

@Zesh
http://en.m.wikipedia.org/wiki/Quine_(computing)
: Re: Ultimate programming challenge
: Zesh August 19, 2012, 02:45:05 AM
This is called a quine. To add to the challenge, make it a one-liner.

@Zesh
http://en.m.wikipedia.org/wiki/Quine_(computing)

Thanks for the link but it still seems like he wants something else :P
: Re: Ultimate programming challenge
: Daemon August 19, 2012, 02:47:01 AM
This is called a quine. To add to the challenge, make it a one-liner.

@Zesh
http://en.m.wikipedia.org/wiki/Quine_(computing (http://en.m.wikipedia.org/wiki/Quine_%28computing))

A mobile link!!! Muahahaha, so I'm not the only one who accidentally links to mobile sites while on my phone :D

Heres a working link for anyone on a computer http://en.wikipedia.org/wiki/Quine_%28computing%29 (http://en.wikipedia.org/wiki/Quine_%28computing%29)
: Re: Ultimate programming challenge
: techb August 19, 2012, 02:51:14 AM
A mobile link!!! Muahahaha, so I'm not the only one who links mobile sites while on my phone by accident :D

Heres a working link for anyone on a computer http://en.wikipedia.org/wiki/Quine_%28computing%29 (http://en.wikipedia.org/wiki/Quine_%28computing%29)

Lol, my bad. I didn't realize it was a mobile link. +1 for fixing it.

His challenge looks and sounds exactly like a quine, I don't now what else he could be referring to.
: Re: Ultimate programming challenge
: gh0st August 19, 2012, 05:12:09 AM
Quine=mindblown how did they manage to code something like that lol
(http://www.cuantocabron.com/images/templates/mother-of-god-template.jpg)
: Re: Ultimate programming challenge
: techb August 19, 2012, 05:30:06 AM
Quine=mindblown how did they manage to code something like that lol
(http://www.cuantocabron.com/images/templates/mother-of-god-template.jpg)


Like this:
Not mine, but
: (python)
_='_=%r;print _%%_';print _%_