I'll respond to your second point first, about withholding the
code: you are responding to someone else's comment. I have
not problem with people withholding their code. Sure, it
might make things easier, but whether they do or not is
really up to them. Some questions do not even need example code.
If I need some, I will ask.
As to the first point,
That seems like a terribly unfair assumption. There are
many people who can craft good useful code who can't write
worth a damn. You shouldn't penalize them for it,
especially considering how many developers speak English
as a second language.
I don't think I am penalizing them, I am just going on the
assumption that coding takes attention to detail, and
writing a question does as well. There are differnces
between bad questions, good questions, and questions written
by people with English as a second language:
- What are all command line options? Why do some of them not
work for me?
- Why does "perl -v" not show the current version when I type it
at the command line? "perl -V" seems to work fine....
- "perl -v" shows me errors, "perl -V" work fine?
I'm naturally going to assume the latter two people
are slightly better at writing code, and at a more advanced
level, than the first one.
In general, it's better to err on the side of assuming
the questioner does not know very much, for these reasons:
- It's better to explain something that they already know and
risk a little "I knew that!" than to talk over their heads.
- Other people reading your answer may not be as knowledgable
as the original questioner and may learn something from your
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link or
or How to display code and escape characters
are good places to start.