It's usually better not to provide a complete code sample if you believe it would not help the student, using your best judgment. You can use pseudo-code first, and, in the spirit of creating a programming resource, you may come back after a suitable amount of time and edit your response to include more complete code. This way, the student still has to write their own code, but a full solution can become available after the assignment has ended.
Recognize that homework is likely to include artificial constraints, and honor those constraints. Also be aware that these constraints may affect whether or not a question should be closed as a duplicate. Don't downvote others who answer homework questions in good faith, even if they break these guidelines unless the answer would merit downvotes even if the question weren't homework related.
It's not always obvious at first glance that a question is homework, especially when you're not expecting to see it here. It is a good idea to suggest editing the response in a comment. Don't ridicule a student because they haven't yet learned something obvious or developed the good habits you'd expect from a seasoned programmer.
Do add a respectful comment or answer that points them towards best practices and better style. Don't downvote a homework question that follows the guidelines and was asked in good faith. As for non-homework questions, questions in the spirit of "plz send teh codez" might be closed as "too broad". Use your best judgment. Remember students are new programmers and often don't yet understand what is expected of them on this site.
Help them to get that understanding. When answering if you choose to , make sure you include plenty of explanation in English, not just code. But don't hold back from going into interesting details or showing code just because of who asked the question for what reason. The point of SO is to answer questions for future readers, not just for the OP. When voting, be generous to new users if they aren't specifically asking SO to do their homework for them.
But when you find old bad questions homework or not definitely downvote them. So there's kind of a "grace period" for sort-of-ok homework questions that don't have much future value, in case people want to spend their time helping that one person. Homework questions sometimes subvert that, especially debugging questions which often have little to no future value and just clutter up everyone's search results.
When you're looking for a good way to do something, you don't want to find all the confused bad ways, and answers debugging them but still implementing the bad way. Keep that in mind when answering or choosing not to answer a homework question.
If there's anything interesting worth saying in answer to a question including a nice way to code something , I'm going to put that in an answer. To be an answer to the question asked, you do also have to directly answer the question including pointing out things wrong with the OP's implementation, or explaining exactly why their code behaves the way it does.
I do tend to include more conceptual explanation than I would otherwise when answering a homework question, because usually it's clear that missing concepts are the reason they needed to ask in the first place instead of just writing some code. But if the OP didn't want a complete answer to their question, they shouldn't have asked on SO. If I think it's worth answering in the first place, I don't like leaving out details or suggestions that would be useful to future readers wondering about the same problem.
If you just want guidance or you don't know where to start , ask your instructor or TA for help. I'm not saying you must always include working code when answering. Don't reward lazy questions homework or not with code dumps. But don't hold back from showing code only because the original asker of the question was doing a homework problem. If there's an alternate much better way to do what the OP was attempting, I'd encourage mentioning it.
Sometimes that's easiest and clearest with code. Homework questions are often posted by new users that don't know how to ask good questions yet. They're also often asking about the same thing that's been asked a zillion times, but with a unique misunderstanding or bug in their code. I usually resist downvoting new questions like that, even though they have near-zero future value, as long as they include a [mcve] if it's a debugging question.
I will go looking for a duplicate to close it if possible, though with an answer that explains things in English, not just a code dump, of course. But when I come across old questions like that near-zero future value, with a problem that could have been found easily with a debugger , I downvote ruthlessly.
I have no patience for old bad questions wasting my time in search results if they won't ever make good duplicate targets because they have two or three misunderstandings combined with various bugs. For example, there are a zillion questions about printing or reading integers in x86 assembly language usually bit DOS because some schools are still teaching that??
Using a debugger is more important in assembly language than in higher-level languages, because many totally wrong things are not build-time errors or warnings. Watching register values change as you single-step would reveal the bug in more than half the asm-homework questions that get asked.
Home Questions Tags Users. How do I ask and answer homework questions? This is an attempt to reconcile two extreme positions in a way that is acceptable to the majority of the community: Provide an example of an utopia The fastest-growing religions in the United States by were evangelical Protestant sects, including Methodism and the Baptists.
These religions were especially popular with ordinary Americans, Religion seems to come to the fore toward the end of the story, as the grandmother tells the Misfit that he should pray to Jesus for help. The Misfit, however, blames Jesus for his problems What is a summary of The Country of the Blind?
How do grudges and self-interest drive the Salem witch trials? In the austere, religious Puritan society, longstanding negative feelings, grievances, and grudges between neighbors help fuel the hysteria surrounding the witch trials, as citizens seeking How did sabotage and self-interest lead to the Salem hangings?
It was published and first performed on stage in What are two examples of earthquakes that occur along diverging plates and transforming plates? There is a lot of wiggle room with this question. It is unclear if it is asking about recent earthquakes along those two boundary types, or if it is asking about general earthquake characteristics This question is a little vague on exactly what we are looking for.
If we are talking about a curriculum adoption cycle, then yes, a school should at the very least confer with special teachers Charlotte Perkins Gilman wrote "The Yellow Wallpaper" as an indictment of the "rest cure," which, during Gilman's lifetime, was a common treatment given to women suffering from disorders that in I need to find an example of hyperbole in Up from Slavery, and I am confused on what that would be.
Hyperbole is an example of overstatement. It is characterized by the use of exaggerated language to heighten or further a rhetorical effect. One representative example of of hyperbole is in chapter What makes him a At the end of To Reach Japan, the sentence portraying one of the girls' "pulling away" actually leaves its grammatical subject ambiguous. That is, it isn't explicit whether Katy or Greta is the one Who is the perpetrator in The Book Thief? In general, The Book Thief's perpetrator, or antagonist, is not just one person.
How does Ms Jewels end up contradicting herself. In Chapter 3 Mrs. Jewls tries her level best to teach Joe to count.
But no matter how hard she tries or whatever methods she uses she just can't seem to get through. Eventually, she gives up, What implications are in the title of "City Planners"? The poem's central theme is the destruction of natural resources and landscapes to make room for real estate development.
When the poem was published in , it immediately became popular among the public due to its hypnotic cadence and dark but What is unique about the king's arena? The king's arena was built upon a model he had borrowed from surrounding countries who were less ostensibly "barbaric" than his own, but he put his arena to a different use than those he imitated According to the text, Aunt Nicey was the one who delivered Doodle.
In the matter of Doodle's survival prospects, Aunt Nicey's opinion differed from that of everyone else in the family.
According to Jared Diamond what society is history's greatest "have not? Ther term distinguishes between those societies that had the means to develop agriculture, and those that did not. What career did Bernard choose and what special opprotunity did Brenard achieve later in life? As a child, Bernard is depicted as an unathletic, intelligent boy, who looks up to Biff and tries his best to warn him about studying for his math exam.
Willy looks down on Bernard as a child and At the beginning of the short story, Whitney tells Rainsford that nearby is an ominous place referred to as Ship-Trap island. Unfortunately, Rainsford cannot see the island from the yacht because How does yhe shift in structure from an autobiographical tale to a "bedtime story" affect the The autobiographical structure that frames the bedtime story establishes a note of resistance--Gordimer doesn't want to write a children's story, as she has been asked to do.
It also, and most Why should the parting couple "melt" and"make no noise"? The speaker tries to suggest that death should not cause the couple to be sad or to mourn because their "two souls [ What terrified the pirates.
Would you say that women's social and political standing changed at all during the late The role of women in society and politics changed greatly during the late 19th century. In America, these major changes occurred during the Industrial Revolution.
For the first time, women were How do Ben and the rest of the Lovatt children interact? The four children fear their baby brother. This is because he exhibits strange traits. The answer to your question is yes. The author doesn't reveal this fact until the last line of the story. It certainly makes for a dramatic Why is A Doll's House considered timeless?
eNotes Homework Help is where your questions are answered by real teachers. Stuck on a math problem or struggling to start your English essay? Ask us any question on any subject and get the help.
Need help with homework? Ask a tutor online and get your homework questions answered on JustAnswer5/5(4).
AnswerShark is an educational resource which provides homework answers to questions within various disciplines and subjects. The use of high-quality educational materials and professional sources supporting the arguments makes us different from competitors and a favorite among college and university students. At Chegg we understand how frustrating it can be when you’re stuck on homework questions, and we’re here to help. Our extensive question and answer board features hundreds of experts waiting to provide answers to your questions, no matter what the subject.
Need help with your college homework or studying for one of your college courses? Learn more about our college homework help services and easy signup! Get answers to your questions from judoka.ml