Questions tagged [source-transformation]

For challenges in which a program does task A, but when a transform B is applied to the program the modified program does B applied to A.

Filter by
Sorted by
Tagged with
3 votes
1 answer
206 views

I reverse the source code, you reverse the source code! [duplicate]

Write a program that outputs its source code in reverse when run, and outputs its source forwards when I reverse the source. If your program is "abcd", when run with no arguments it should ...
noodle man's user avatar
  • 6,250
150 votes
162 answers
22k views

I double the source, you double the output!

Your task, if you wish to accept it, is to write a program that outputs a positive integer (higher than 0). The tricky part is that if I duplicate your source code, the output must be double the ...
Mr. Xcoder's user avatar
  • 42.4k
41 votes
9 answers
3k views

Mirror quine (or my head hurts)

I was reading Print your code backwards - reverse quine And I thought, this could be more interesting if your backwards code is also executable. So this challenge will have all the rules and ...
hildred's user avatar
  • 1,427