TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to debug small programs

52 pointsby bhaumikabout 11 years ago

7 comments

brudgersabout 11 years ago
The degree to which it is acceptable to shit on students is a result of the prohibitions on laughter stackOverflow&#x27;s moderators love. All the meanness and tribalism finds it&#x27;s way oit and is vented upon the weakest members of the community.<p>Yes, students can be rude asshats. But hang around &#x27;regex&#x27; and asshattery is no more unusual than &#x27;SML&#x27;.<p>This article captures the smug prickishness that stackOverflow increasingly celebrates. JustFuckingGoogleIt was clever a decade ago. It&#x27;s quick and to the point and the pain is over.<p>Learning to program is hard. A non-working program with a looming deadline is genuinely and legitimacy stressful. And so what does the article do? It begins by belittling the student, telling them their question was not worthy of the great community. Let&#x27;s be honest, the intended audience isn&#x27;t students, its other StackOverflow contributors and its purpose isn&#x27;t to teach but belittle.<p>And that&#x27;s the shame of it. A good article on debugging could be useful. Hell a teacher might even incorporate it into the class. But of course the StackOverflow community could not produce such a document. It violates their unfortunate tribal mores.
评论 #7359550 未加载
评论 #7359907 未加载
评论 #7360436 未加载
评论 #7359639 未加载
评论 #7430670 未加载
评论 #7432038 未加载
ZoFreXabout 11 years ago
&gt; StackOverflow is not about to debug your programs for you.<p>Could not disagree more. Students: submit your homework to StackOverflow. You&#x27;ll get yelled at, but someone will be desperate enough for imaginary internet points that they will give you an answer regardless (just make sure you keep your accept rate high enough).<p>(NB: This is facetious. I don&#x27;t condone submitting your homework to StackOverflow: You won&#x27;t learn that way.)
评论 #7359795 未加载
评论 #7360460 未加载
unwindabout 11 years ago
This is great, both as actual content and advice to (beginner) programmers but also as &quot;link-bait&quot; in the best sense of the word, i.e. content that is very likely to gather a lot of inbound links.<p>As a very active Stack Overflow user, I immediately start thinking about how many questions that are going to get links to this as comments. :)<p>Well done, I hope it helps although I guess the supply of beginner programmers won&#x27;t dry up over night.
mopedDreamsabout 11 years ago
Print(&quot;If you&#x27;re reading this, that means the program got to this point!&quot;)
评论 #7360351 未加载
评论 #7360354 未加载
评论 #7360353 未加载
collywabout 11 years ago
Turn on all compiler warnings. <i>Read them carefully.</i><p>I wish my end users would actually read the error messages at all.
userbinatorabout 11 years ago
That is a rather long way of saying &quot;figure out <i>exactly</i> what the program is doing, and whether it matches what you <i>think</i> it should be doing.&quot;
评论 #7359701 未加载
oneeyedpigeonabout 11 years ago
that link points to a google ad at the bottom of the page ...