What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 134 Stack Exchange communities.

Comment under this answer

This question is simple - is it wrong to enjoy challenges and to provide properly tested code? Properly tested code is provided not to satisfy "plz-give-me-teh-codez" but because a good example is IMHO one with working code, not one that does not even syntax check (flying under banner of pseudo).

I find that codified solutions are formal proof of the concept that would otherwise live only in pseudo (and easily misunderstood / unimplementable to certain skill levels). A picture paints a thousand words; so does a good code block.

Interested in your thoughts.

share|improve this question
    
I don't believe that, no such rules out there! –  YOU Mar 24 '11 at 12:06

2 Answers 2

You misinterpret that statement. Of course we're here to provide code...but we're not here to do the work for you. We're here to provide solutions to certain problems, not to provide you with a ready-to-use application. SO is not a code-writing service, it's a question and answer community. If you've got a specific question about a problem, we'll provide the solution in coded form or in a documented way so that you can fix the problem yourself with ease.

This statement addresses questions like What code do I need to write application x doing y? or Can you write me a program which does y? (and my favorites: Plz give me the codes to do y!). Or people who just copy and paste the given (example) code and then comeback with It's not working :( without even thinking for a moment why (my personal favorites again: This does throw a ArgumentNullException, why?). If you feel like providing answers to such questions which should better be asked on Get-A-Coder oder Rent-A-Coder, please feel free to do so...but they're off-topic on SO and should not be encouraged.

Edit: It's not about how long the answer took to assemble...it's about why you need to assemble it in the first place. A good question has an outlined problem, a background, already thought out possible solutions, provides additional information and is not like Ohhh...my code throws an exception, I better ask on SO why.. It's about if the OP is willing to learn from and with us...and not about Copy and Paste.

But to be honest, I misunderstood the discussion and the context of the sentence in your link in the first place. But I still stick to my opinion, and the context suggests that he meant my ...documented way so that you can fix the problem yourself with ease.-thingy.

share|improve this answer
    
Can you sell 2 minutes of service, or 10 on those sites? What's the going rate? That is how long it took to construct my answer. How would you rather such a question be asked, which clearly is complex and relates to a specific problem? Would you rather spend 30 minutes on a teaching exercise explaining in excruciating detail and having long conversations instead of just leaving the answer up for self help and learning? –  RichardTheKiwi Mar 24 '11 at 12:23
    
@Richard: I was trying to address exactly this (edited the second paragraph a little to address the situation in your example better): If it is a question to a specific problem and you're ready to think about the solution (thought provided by someone else), then there's no problem with that. –  Time Traveling Bobby Mar 24 '11 at 12:25
    
@Richard: I've edited my answer ones more...though, the answer of jzd boils down to one of the points I tried to say. –  Time Traveling Bobby Mar 24 '11 at 12:40

There is nothing wrong with "to enjoy challenges and to provide properly tested code". However, the comment from the post you linked is not in response to that question. It is actually the complete opposite. It is saying that complete and correct code is not required for SO. Many times a simple pseudo-code that illustrates a point or a direction the OP needs to go in, is better than a completed tested solution.

share|improve this answer
    
I beg to differ. I was trying to compare the performance of the approaches (recursive CTE vs number sequence). The "directional" answer made it a very laborious exercise starting with fixing bugs, then discovering flaws in the answer (since it is not [tested-] codified - hard to pin down), so it is hard to even tell if the answer is viable. –  RichardTheKiwi Mar 24 '11 at 12:34
4  
@Richard, I think there is still some confusion here. The "directional" answer is of course going to require more work to implement than a complete working solution, but if you can't tell if the answer is viable, don't upvote it and let the OP accept it if it works. The OP will learn more from a "directional" answer because some assembly will be required. –  jzd Mar 24 '11 at 12:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .