I too am just starting to move on to Moose. Since the term good can be rather subjective, I'll just detail what I found was good in these resources. The resources may be more or less helpful depending on your skills/experience in Perl.
I started off at this Perl Monks page. And moved straight into the Moose::Cookbok link listed at the bottom. There, the author included several more links to pods demonstrating Moose syntax and object-oriented programs. The ordering was put together well; starting with simple and basic OOP with Moose at the top, progressing to more complex examples as you go down the page. The pods are well written, aren't overly wordy, and explain each chunk of the code clearly.
I'm sure once you're done with the Cookbook, you could check out whatever else was listed at the Perl Monks page. I'm still going through the examples in the Cookbook, so I haven't checked all the resources listed at Perl Monks, but I'm sure they're good.
一旦您阅读了 Dave 提到的文档,如果您对它如何变得更平易近人或如何让您顺利起步(或者只是更容易找到)有一些见解,也许您愿意将其贡献给文档。 开发人员无法真正从新用户的角度阅读介绍性文档。 因此,根据文档提交错误报告(可能带有补丁)和/或在邮件列表或 irc 频道上进行讨论。 这将帮助下一个人像你一样。
Once you read the docs Dave mentioned, if you have some insight on how it could have been more approachable or gotten you off on the right foot (or simply been easier to find), perhaps you would like to contribute that to the documentation. The developers cannot really read the introductory documentation from a new user's point of view. So file a bug report (with a patch maybe) against the documentation and/or discuss it on the mailing list or irc channel. That will help the next person in your shoes.
First you should read through the Manual if you haven't already. Then you can go on to read the Cookbook.
I think the docs are actually pretty good these days, as long as you read the right ones. You really shouldn't bother looking at most of the docs for any class name starting with "Moose::Meta" unless you're interested in Moose's introspection features. I've tried to make this more obvious in the Moose.pm docs, which as of 0.57 tell you to read the Manual and Cookbook first.
If you're coming from a background of doing Perl 5 OO "the old school way", I'd also suggest taking a look at the Moose::Manual::Unsweetened document, which compares Moose to equivalent Perl 5 "by hand" code.
发布评论
评论(5)
我找到了这个 Moose 快速参考表无价。 我总是忘记在哪个手册部分查找特定功能。
I found this Moose Quick Reference sheet invaluable. I'm always forgetting in which manual section to look up a particular feature.
我也刚刚开始转向驼鹿。 由于“好”一词可能相当主观,因此我将详细说明我在这些资源中发现的优点。 这些资源可能或多或少有帮助,具体取决于您的 Perl 技能/经验。
我从这个 Perl Monks 页面开始。 并直接进入底部列出的 Moose::Cookbok 链接。 在那里,作者添加了几个演示 Moose 语法和面向对象程序的 pod 链接。 订单安排得很好; 从简单和基本的 OOP 开始,Moose 位于顶部,当您向下浏览页面时,会逐渐看到更复杂的示例。 这些 Pod 写得很好,不会过于冗长,并且清楚地解释了每一块代码。
我确信一旦您读完这本 Cookbook,您就可以查看 Perl Monks 页面上列出的其他内容。 我仍在浏览 Cookbook 中的示例,因此我尚未检查 Perl Monks 中列出的所有资源,但我确信它们都很好。
I too am just starting to move on to Moose. Since the term good can be rather subjective, I'll just detail what I found was good in these resources. The resources may be more or less helpful depending on your skills/experience in Perl.
I started off at this Perl Monks page. And moved straight into the Moose::Cookbok link listed at the bottom. There, the author included several more links to pods demonstrating Moose syntax and object-oriented programs. The ordering was put together well; starting with simple and basic OOP with Moose at the top, progressing to more complex examples as you go down the page. The pods are well written, aren't overly wordy, and explain each chunk of the code clearly.
I'm sure once you're done with the Cookbook, you could check out whatever else was listed at the Perl Monks page. I'm still going through the examples in the Cookbook, so I haven't checked all the resources listed at Perl Monks, but I'm sure they're good.
http://moose.perl.org 是关于 Moose 所有内容的一个很好的中心资源
http://moose.perl.org is a good central resource for all things Moose
一旦您阅读了 Dave 提到的文档,如果您对它如何变得更平易近人或如何让您顺利起步(或者只是更容易找到)有一些见解,也许您愿意将其贡献给文档。 开发人员无法真正从新用户的角度阅读介绍性文档。 因此,根据文档提交错误报告(可能带有补丁)和/或在邮件列表或 irc 频道上进行讨论。 这将帮助下一个人像你一样。
Once you read the docs Dave mentioned, if you have some insight on how it could have been more approachable or gotten you off on the right foot (or simply been easier to find), perhaps you would like to contribute that to the documentation. The developers cannot really read the introductory documentation from a new user's point of view. So file a bug report (with a patch maybe) against the documentation and/or discuss it on the mailing list or irc channel. That will help the next person in your shoes.
首先,如果您还没有阅读手册,则应该阅读。 然后您可以继续阅读Cookbook。
我认为现在的文档实际上相当不错,只要您阅读正确的文档即可。 除非您对 Moose 的自省功能感兴趣,否则您真的不应该费心查看以“
Moose::Meta
”开头的任何类名的大多数文档。 我试图在 Moose.pm 文档中使这一点更加明显,从 0.57 开始,它告诉您阅读 食谱”。如果您有“老派方式”使用 Perl 5 OO 的背景,我还建议您看一下
Moose::Manual::Unsweetened
文档,它将 Moose 与等效的 Perl 5“手动”代码进行比较。First you should read through the Manual if you haven't already. Then you can go on to read the Cookbook.
I think the docs are actually pretty good these days, as long as you read the right ones. You really shouldn't bother looking at most of the docs for any class name starting with "
Moose::Meta
" unless you're interested in Moose's introspection features. I've tried to make this more obvious in the Moose.pm docs, which as of 0.57 tell you to read the Manual and Cookbook first.If you're coming from a background of doing Perl 5 OO "the old school way", I'd also suggest taking a look at the
Moose::Manual::Unsweetened
document, which compares Moose to equivalent Perl 5 "by hand" code.