I think the Code Catacombs, Tutorials, Snippets Section, and Craft sections already serve that purpose, although not all posts there meet your criteria.
Adding yet another section would simply add (more) confusion about where to post a given example/explanation...
--
Mike | [reply] |
There's a lot of that going on in SOPW, but I think it would be nice to have a special section for it too. Maybe the "Craft" section was originally intended for that purpose, but most code there is completely uncommented, and there are few alternative solutions. The distinction between "Code" and "Snippets" seems to be clear, but what's the actual distinction to "Craft"?
~Django
"Why don't we ever challenge the spherical earth theory?"
| [reply] |
According to the Site how-to, Craft was originally created to show off code users were particularly proud of. I don't think that means that Craft was created for well documented code, as I know code I'm proudest of is either so lucid that a beginner could understand it on second pass, or so obfuscated that the point is to not understand it till you read through it. I believe that the Code Catacombs would be more appropriate to post full, well documented code, as that probably has a larger content limit (I'd assume).
To Discipulus, I don't think that a new section necessarily needs to be created for authors to repost revised code. Personally, I think the best thing to do as a novice is to slug through some of the Code and craft by yourself with a fresh console window with perldoc waiting to answer any syntax questions. Also, PLEASE read perldoc perlsyn before making suggestions on where syntax sections are needed. This isn't a simple "RTFM", but in truth all the syntax instruction a beginner needs comes in perlsyn. Finally (and this is the important one) my suggestion to you: ask the authors. If you go through the Code and Craft section, you'll find lots of clear examples of perl in use, but also the wealth of information that is other monks. I've never seen one monk belittle another for asking a question about his or her code.
Have fun at the monastery, it's a great place to learn, and even laugh sometimes ;) (the latter half up to here is to Discipulus, not Django)
| [reply] [d/l] |
Good syntaxt is relatively easily understood.
A section dedicated to "good syntaxt" is not needed, in the same manner that a section dedicated to "perl style" is not needed.
They would both be very very short sections (and good style is good syntaxt).
A tutorial on "good" syntaxt and style for our Tutorials section might not be a bad idea. I'll notify ybiC
perlstyle
____________________________________________________ ** The Third rule of perl club is a statement of fact: pod is sexy. | [reply] |
Hi Discipulus!
You have a good point. I also think that a section where "moderated" code would go might be a sound addition to the monasteries' libraries. Those writeups could have a before/after section at the very top, or even a diff history or something..
Oh, but I didn't want to dwelve into my imagination -- I just wanted to point you to The Perl Cookbook by the great Tom Christiansen and Nathan Torkington, since this might provide you with the kind of information you're looking for: Examples of how to make Perl shine...
Also check out the Q&A section. There are a lot of receipes, and "how to" questions, too. To request critique on your own code output, you can always use the code and/or SOPW sections...
So long,
Flexx
| [reply] |