Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

RE: XYZ Questions

by turnstep (Parson)
on Apr 04, 2000 at 08:51 UTC ( [id://6814]=note: print w/replies, xml ) Need Help??


in reply to XYZ Questions

I think part of the challenge (indeed, maybe most of it) is trying to figure out exactly what the person is asking. Usually they know exactly what they want, but end up expressing it really, really badly. :) Some questions are so vague that all you can do is throw a bunch of clues and hope that some stick! :)

I like going beyond the question itself to see exactly what they are trying to accomplish. In other words, the question may be about some esoteric (or common) perl nuance, but I also like to try and give them some insite on code design, user interface, the cost (CPU, speed, readability) of what they want, alternative ways to do it, etc.

There is some risk as coming across as patronizing, or even insulting the person: after all, if they are asking about a regex, and you point out that the whole block around it is ill-written...

This might sound harsh, but I tend to assume that those who cannot carefully craft their question, cannot carefully craft their code. </alliteration>

Replies are listed 'Best First'.
RE: RE: XYZ Questions
by neshura (Chaplain) on Apr 06, 2000 at 02:53 UTC
    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.

    Second, people may be withholding their code precisely because they fear being laughed at. It's hard to be a newbie! So if you offer a helpful answer that is bracketed by criticism, it is tremendously discouraging. I'd like to suggest to you that if you (or others) do choose to offer unsolicited advice on other parts of their code, that you do so with x-treme™ kindliness.

    However, I must also say that I find your writeups generally chock full of information I can use! It is much appreciated.

    e-mail neshura

      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 response.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://6814]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-23 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found