Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Summing up recent ideas into a concept: Code vs. Prose

by Masem (Monsignor)
on Apr 30, 2001 at 17:38 UTC ( [id://76578]=note: print w/replies, xml ) Need Help??


in reply to Summing up recent ideas into a concept: Code vs. Prose

Part of the problem is that with perl, I would guestimate that somewhere between 70-90% of it's use is for CGI scripting, which means that 70-90% of the questions and related discussion is about "how do I access a DB?" "how do I do secure transactions?" etc. These topics tend to either be answered (correctly) by RTFM or a discussion on how to do them; code really doesn't help. Certainly there's nothing wrong is us answering these questions (and attempting to reduce their numbers by helping newbies to RTFM first), but these don't lead us to improving knowledge for the more advanced monks.

ObfCode is a potental way to learn for intermediate to advanced monks, but this is more for tricks with perl rather than improving programming style.

So you're looking at more like the article contents at perl.com for advanced users. Here, we sorta have that between the Tutorials and Reviews sections, though neither is a full substitute for that. What I suggest is similar to what some print jounrals do for programmers: a month in advance (or more) a topic is selected, and numerous articles are sent in to cover that topic, with an editor selecting the best ones. Translating it to something here, I would add a new section "articles", with general topics (eg "network sockets programming", "threaded processes") offered up for suggestion, and any monk wishing to write an article may do so. The topic suggestions should be limited to only higher level monks (6th or above?) to avoid having topic pollution ala Q&A/SoPW duplication. "Articles" can be as fundamental as a tutorial, or robust as pure example code with commenting, but it ought to end up being a combination of prose and code so that a message on how to improve ones programming is taught. Which means the message shouldn't be spoonfeed, but nor should it be so vague as "simply read the POD for everything you need". These articles could go on to include psuedo-lessons: after reading the article, the reader could be challenged to modify the code to add new functionality and the like.

(From a PM programming standpoint, there's a few things that would have to be done, but nothing too drastic that I can think of).

Having such a feature would help distinguish PM from USENET or other web forums, which end up being more Q&A instead of learning tools.


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
  • Comment on Re: Summing up recent ideas into a concept: Code vs. Prose

Replies are listed 'Best First'.
Percent of Perl used for CGI - lower than that
by merlyn (Sage) on Apr 30, 2001 at 18:16 UTC
    I would guestimate that somewhere between 70-90% of it's use is for CGI scripting,
    Most of us that have to make a living providing support services to the Perl community at large put that more down at the 40% mark.

    It just seems higher because CGI is much more complex than it first appears, and is usually undertaken by people who are light-duty or non- programmers, and therefore show up more in forums trying to get help.

    But many people I know have been hacking Perl heavily for years and have never even put up their first CGI program.

    Of course, "how do I access a DB?" is a question that is valid whether or not you're in a CGI space, so maybe you've miscategorized some questions. {shrug}

    -- Randal L. Schwartz, Perl hacker

      I'll take your word on it with the years of experience that you've had in perl'ing. But I think the statement that I was trying to make, that most of the questions that we are asked in SoPW/Q&A, are "uninteresting" or "unchallenging" as they seem to represent uses of perl that a majority of perl programmers are involved, and thus already should have a good base of knowledge to go on (eg FAQs, USENET, PM archives). Looking at the current front page of SoPW, there's only 1 out of 10 questions that I would consider to be 'challenging' to find the answer for, in that I would expect to learn something new when helping this user out; the rest I can answer with basic knowledge.

      And that is the atrophy that the original thread here to aiming at; there's too many 'uninteresting' yet still useful questions being asked that doesn't help those on the high end of the XP scale. I have no problem answering the uninteresting questions, as long as I have the oppurtunity to learn from others on more advanced questions, and while I still find that this is happening for me, I can see how others a bit more advanced in perl would find the lack of new knowledge deterimental to the PM experience. Which is why I think having Articles aimed beyond the beginning user would be a perfect addition to beat the PM atrophy.


      Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
Re: Re: Summing up recent ideas into a concept: Code vs. Prose
by deprecated (Priest) on Apr 30, 2001 at 19:47 UTC
      Translating it to something here, I would add a new section "articles", with general topics (eg "network sockets programming", "threaded processes") offered up for suggestion, and any monk wishing to write an article may do so. The topic suggestions should be limited to only higher level monks (6th or above?) to avoid having topic pollution ala Q&A/SoPW duplication. "Articles" can be as fundamental as a tutorial, or robust as pure example code with commenting, but it ought to end up being a combination of prose and code so that a message on how to improve ones programming is taught. Which means the message shouldn't be spoonfeed, but nor should it be so vague as "simply read the POD for everything you need".

    I really like this idea. Additionally, I like converter's idea of a Perl Puzzlers book. On dalnet #perl, we have a wonderful user (who I do not think frequents this site) named PerlCure. He does something I have yet to see anywhere else: He makes quizzes for the above-average-but-not-stellar perlmongers present. For example:

      <purl> quiz ? [ sound of cheers from #perl crowd ] <purl> quiz --> <purl> BEGIN{ local $@; my $f = 0; 2/$f } print "Done" <purl> bug or feature ?
    (original credit for the quiz apparently goes to bline)

    This sort of thing is interesting, but we could also, like Masem pointed out, have actual articles attached to this. I get something akin to this on the fun-with-perl list at least twice a week. We get golf, but we also get very interesting and informative questions such as:

      I hope abigail doesnt mind the repost...

      Date: Thu, 29 Mar 2001 20:40:16 +0200 From: abigail@foad.org To: fwp@technofile.org Subject: [FWP] So, you think you know Perl? Your exercise for today: 1) Predict what echo "" | perl -ple 'print q' does. 2) Run the above command and compare it with your prediction. 3) Explain any differences. Abigail

    Folks, these are the kinds of things that get me excited about perl, and make me interested in a new function I dont use or underuse, or use in a different way. I get a ton of innovation out of just little things like that. But we dont really see these too often on PM except for in ob-fu. Which is fun... but useless in terms of my really growing as a programmer. Well, almost useless.

    Masem is right. Articles are a great idea. I dont think I'm qualified to make an article, though I'm happy to try. Perhaps we could have a Quest first to see what articles are wanted, and then, as Masem suggested, have articles submitted. Gee, that almost makes us a periodical. (This particular reason is why I subscribed to <sniff> TPJ)

    One other note here, tilly suggested I go have a look at Dominus' website, which is excellent. I suggest that for anyone interested in learning more about perl.

    I am still very interested in seeing what people have to say about this thread, and I'm glad to see what people have had to say thus far. I think the response is mostly uniform. People would like to see more intermediate-upper level content, as a lot of us have moved past the beginning and even intermediate levels of perl programming and are looking to transcend just hackerdom.

    yours as always,
    brother dep.

    --
    Laziness, Impatience, Hubris, and Generosity.

      I dont think I'm qualified to make an article, though I'm happy to try.

      I would think that anyone on PM that considers themselves to be a non-perl-newbie (say, over level 4), has the ability to write a good article. You may not have the stuff to write something as easily readible as merlyn or chromatic or our other published monks, but you probably know something they don't, and that's what my Articles idea is all about. And if the first time you write something, the article doesn't jive well, just simply use any comments you get on it to improve the next one that you write; given that PM is a friendly community, you should not have to fear rejection or humiliation for writing a poor article. And writing such articles could only improve your own writing skills for your career.

      Mind you, we don't need Articles to be come Ms. Slorovski's 3rd grade English class, but I'm sure that this will not happen...


      Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-24 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found