# Should homework be allowed?

Recently, browsing questions of PPCG, i have found a lot of questions that are simply for the purpose of offloading their homework assignments, due to lasiness or easiness of this platform. For this reason, i believe we should ban homework questions. Any input?

Some examples:

• Much fail. Very misunderstand code-trolling. Wow. :) – Jonathan Van Matre Mar 1 '14 at 4:20
• Sorry to tell this, but you were trolled. And you may call me the biggest of the trolls so far. :) – Victor Stafusa Mar 1 '14 at 5:32
• Those were all parodies of stack-overflow questions. They were meant as jokes. – PyRulez Mar 2 '14 at 14:16

I think that, as a general policy, if we see a challenge that is clearly homework, we should leave it open without complaint (perhaps even upvote it or leave compliments on the excellent question), but any requested language should be ignored and all answers should be written in Befunge or Brainfuck.

• Definitely. Answer homework questions with esolangs. – Justin Mar 1 '14 at 3:42
• I vote for Haskell, Golfscript and J. Unless it's a Haskell class, of course. – John Dvorak Mar 1 '14 at 5:33
• @JanDvorak If it is, I hope this is the text book. – Jason C Mar 1 '14 at 5:36
• @JasonC We don't even need to use brainfuck or befunge. Poorly obfuscated Java is enough. When you reach 2000 points of rep, you can see my deleted answer here showing this: codegolf.stackexchange.com/questions/20979/… – Victor Stafusa Mar 1 '14 at 5:46
• @JasonC Don't judge a book by it's a cover! (The bad English in this comment is intentional.) – Agi Hammerthief Mar 10 '14 at 20:25
• @NigelNquande youtube.com/watch?v=PPCsj7RT-Yg (tangentially related) – Jason C Mar 10 '14 at 20:33
• @JasonC I'm not sure what that's got to do with the price of beans in Bali, but thanks. – Agi Hammerthief Mar 10 '14 at 20:39
1. Student posts homework question
2. Student receives answer in esolang (like GolfScript) or extremely convoluted answer in standard PL (i.e. golfed JS, with globals and all sorts of Boolean abuse and all)
3. Student receives nothing of value to turn in, members of PPCG get to enjoy a good challenge

This is a non-issue.

(Now, if the challenge requests a specific language, we can simply edit it to make it language-agnostic, since most golfs are anyway.)

Also note that all your linked questions are , meaning that said student would receive a zero at best if they turned it in. (I mean, really, just look at some of those ridiculous answers)

Can you provide some examples?

In general, I agree with the principle of the top answer to StackOverflow's discussion of homework questions.

However, because our site works differently, perhaps we should treat homework differently.

The SO position is: it's OK to ask, but show some prior effort, and it's OK to answer, but try to lead the questioner in the right direction instead of giving a fully-formed answer.

This latter point is the difficult part for PPCG, because to have a valid answer to a challenge here you need to submit a complete, working program. There's really no way for us to avoid handing them a finished assignment without compromising the mission of this site.

So I lean toward banning homework questions when it seems obvious that they are looking for someone to do their assignment for them. E.g. if their request is language-specific, that would be a red flag that they have to write something in Scheme or Java or whatever for class. Or if it has the kind of silly constraints that indicate an arbitrary aspect of a class assignment.

However, I'd be open to accepting homework questions when the questioner honestly tells us it is such, and lets us know what language(s) they are doing the assignment in. We could have a standard policy to submit answers to such questions only in languages the student is not allowed to use. Thus, they can learn from some of the algorithms and methods employed in solutions without having the work done for them.

I am curious to see some of the recent examples you have found, because I think it will add to the discussion to be able to talk about "Is there such a thing as a good homework question vs a bad one? What makes them different?"

I don't see any issue. You may find an interesting problem in the homework, and why you shouldn't be allowed to post it. It's not that those questions would help the student, unless the student can change {32|}%"*"%.|(:w;{:x,),{:^[x>.1>]{.[^w=]\+}%{^x<\+w=},},},n* into something readable in the programming language the teacher wants. You may as well write it yourself (but I think that decoding is fun, and it will actually teach you something), instead of decoding the code golf, which probably uses slow, but short algorithm that nobody would use in real programs.