Author Topic: Ultimate programming challenge  (Read 1483 times)

0 Members and 1 Guest are viewing this topic.

Offline Ragehottie

  • Knight
  • **
  • Posts: 313
  • Cookies: -9
  • Hack to learn, not learn to hack.
    • View Profile
Ultimate programming challenge
« on: 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.
Blog: rexmckinnon.tumblr.com

Offline Zesh

  • Royal Highness
  • ****
  • Posts: 699
  • Cookies: 42
    • View Profile
Re: Ultimate programming challenge
« Reply #1 on: 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

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Ultimate programming challenge
« Reply #2 on: 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)
« Last Edit: August 19, 2012, 01:47:04 am by techb »
>>>import this
-----------------------------

Offline Zesh

  • Royal Highness
  • ****
  • Posts: 699
  • Cookies: 42
    • View Profile
Re: Ultimate programming challenge
« Reply #3 on: 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

Offline Daemon

  • VIP
  • Baron
  • *
  • Posts: 845
  • Cookies: 153
  • A wise man fears a gentle mans anger
    • View Profile
Re: Ultimate programming challenge
« Reply #4 on: 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)

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
« Last Edit: August 19, 2012, 03:20:45 am by Daemon »
This lifestyle is strictly DIY or GTFO - lucid

Because sexploits are for h0edays - noncetonic


Xires burns the souls of HF skids as a power supply

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Ultimate programming challenge
« Reply #5 on: 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

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.
« Last Edit: August 19, 2012, 02:52:51 am by techb »
>>>import this
-----------------------------

Offline gh0st

  • Sir
  • ***
  • Posts: 575
  • Cookies: 8
  • #DEDSec
    • View Profile
Re: Ultimate programming challenge
« Reply #6 on: August 19, 2012, 05:12:09 am »
Quine=mindblown how did they manage to code something like that lol

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Ultimate programming challenge
« Reply #7 on: August 19, 2012, 05:30:06 am »
Quine=mindblown how did they manage to code something like that lol



Like this:
Not mine, but
Code: (python) [Select]
_='_=%r;print _%%_';print _%_
>>>import this
-----------------------------