Loophole for other challenge

6

You are to post an answer you posted that exploited a loophole in the challengers question. Bonus points if it caused them to rewrite the question.

For example, one challenge was to write a program that such that if a random character is removed, it still works, and your score is how many characters it fails on. Some one posted the empty program, since then it would fail on no characters (though the compiler would fail) and the question had to be changed. He was unrightly down-voted, so I hope he sees this challenge.

This is a popularity contest, so whoever gets the most votes wins!

PyRulez

Posted 2014-02-19T21:29:03.380

Reputation: 6 547

Question was closed 2014-02-20T05:07:11.173

You should say what is a valid answer. You didn't gave any indications. The only rule is that "You are to post an answer you posted". What are the rules for a valid answer? Can we post as many answers from as many questions as we want? Can we post answers from the same question? – Ismael Miguel – 2014-02-20T02:41:13.943

I agree. I think you should edit your post to add a rule that it has to be a different question. – Comintern – 2014-02-20T02:58:54.950

Answers

30

In my answer to Loophole for other challenge, I deliberately exploit the fact that the poster didn't specify that the answer had to be responding to another question. This made my answer recursive and self-referential.

I also golfed my answer (even though it was a popularity contest). 0 bytes of code.

Comintern

Posted 2014-02-19T21:29:03.380

Reputation: 3 632

1It looks like I'm not the only one exploiting the rules. – Ismael Miguel – 2014-02-20T13:47:18.377

I do like recursion. Also, I was expecting and okay with someone exploiting this question. Therefore, exploiting this question is perfectly fine in my mind. Therefore, simply make a self-referential answer doesn't exploit anything. – PyRulez – 2014-02-21T20:53:18.623

1I was going off of the word "other" in the title. ;-) – Comintern – 2014-02-21T22:16:04.613

So I guess technically he did an antiexploit. He broke the literal meaning of the question, but at the same time matched what I was thinking. – PyRulez – 2014-02-23T01:32:55.573

8

Render a version of the BBC Micro owl logo

I used curl to grab the challenge page and outputted an answer posted by someone else.

unclemeat

Posted 2014-02-19T21:29:03.380

Reputation: 2 302

6

In Weirdest way to produce a stack overflow, i submitted an answer that opened a web browser and displayed stackoverflow.com.

TheDoctor

Posted 2014-02-19T21:29:03.380

Reputation: 7 793

That is really a weird way, but a good one! – Ismael Miguel – 2014-02-19T23:55:50.843

5

In Shortest Program to Sort a List of numbers into Odd and Even Category, the question clearly states:

... The Size of the program is the size of the body of the function, i.e. excluding the size of the function signature.

I thought, "Why such a bizarre and specific rule?" And as I was trying to golf down my initial submission, it dawned on me--default parameter values! According to the language spec, they're definitively not part of the function body, so I went ahead and submitted my final solution: a function whose body is a single character. That must have been what the OP wanted!... right?...

Needless to say, it did not win. :/

After accepting another answer, the challenger did eventually add a footnote as to why the one-character solution wasn't considered. The rules of the challenge, however, still remain unchanged (as of the time of this post). So, in the strictest interpretation of the rules, who would you say actually won? ;]

Noyo

Posted 2014-02-19T21:29:03.380

Reputation: 943

3

In Write a hash function for Morse Code, the OP didn't specifically exclude negative or floating point values which are entirely usable as hashes. Using this loophole, I was able to get a better than "perfect" score of 236. There was much griping, but the OP never changed the question, despite promising to, and the loophole was subsequently exploited by almost every other poster!

user15259

Posted 2014-02-19T21:29:03.380

Reputation:

2

In the question https://codegolf.stackexchange.com/questions/21391/output-with-1-on-stdout-using-a-0-byte-source-code, it states that it will give a bonus of -500 bytes if we output '1' to the console using a source-code file which is 0 bytes long.

My answer is this one and 'abuses' the null devices in windows and linux.

The question wasn't rewritten, but this answer gave me a pretty big hole to go to the gold (the -500 byte bonus). Why? Because the null devices have ALWAYS 0 bytes in size and are guaranteed to exist!

Ismael Miguel

Posted 2014-02-19T21:29:03.380

Reputation: 6 797

1

Quoting this question:

Your goal is to add two input numbers without using any of the following math operators: +,-,*,/.

Additionally, you can't use any built-in functions that are designed to replace those math operators.

I posted this answer, it was not very popular though. Quoting from my answer:

And, as suggested by @Ismael Miguel (althought he was not exactly suggesting this), by really abusing the rules underspecification, we can note that only +, -, * and / operators were forbidden, but += was not, so it is allowed (it is not a built-in function either, since it is not even a function). This way, we can express the instruction with just 4 characters (and it will always work with negatives and non-integers too for both values):

y+=x

Victor Stafusa

Posted 2014-02-19T21:29:03.380

Reputation: 8 612

4I'd say that the increment operator is designed to replace addition – TheDoctor – 2014-02-19T22:36:26.350

I said the same. He almost jumped my throat and shoved in my face the Javascript spec. – Ismael Miguel – 2014-02-20T00:04:09.420

@IsmaelMiguel :) – Victor Stafusa – 2014-02-20T00:11:33.153

Well, check out my answer to this post. The one talking about you. And this is how you "bend" the rules... – Ismael Miguel – 2014-02-20T00:20:41.077

0

In the same question that @Victor refered (Add without addition (or any of the 4 basic arithmetic operators)), i gave this asnwer.

Basicly it "ABUSES" the Javascript internal casting to integer of the boolean values.


And This question itself exploits a loophole: there is NOTHING saying we can't refer to the same question in the answers. Or the number of answers. Or the number of answers from the same question.

Ismael Miguel

Posted 2014-02-19T21:29:03.380

Reputation: 6 797

1+1 For citing me, for abusing the same question, and for getting a downvote that is probably from the same person that downvoted me (but I can't be sure about this). – Victor Stafusa – 2014-02-20T02:26:55.690

3What matters is that I exploited a loophole in a question about loopholes. The irony is quite huge! – Ismael Miguel – 2014-02-20T02:30:41.000

Yeah, the meta-loophole. – Victor Stafusa – 2014-02-20T02:33:40.470

1Still, it's a valid exploitable hole. – Ismael Miguel – 2014-02-20T02:34:04.387

I don't get it. What is the loophole? – PyRulez – 2014-02-21T20:57:50.110

Read the 2nd part of the answer. – Ismael Miguel – 2014-02-21T22:00:15.577