有没有比官方网站更好的 Twisted 完整、广泛的文档?

发布于 2024-09-04 14:37:14 字数 764 浏览 5 评论 0 原文

我已经关注扭曲有一段时间了。它看起来很有趣——这似乎是在编写服务器时利用大量功能的好方法。不幸的是,尽管使用twisted.web 编写了一些Web 服务器(通过阅读其他人的源代码和一本非常过时的O'Reilly 书),但我从未真正感觉到我已经对twisted 产生了亲和力……一定程度的理解这实际上给了我一些它看起来具有的力量。

我认为我需要一些好的文档来达到更好的理解水平 - 我根本没有时间仔细研究源代码,并且 SO 上的其他线程提到了 twisted 的官方文档,往好里说是不完整的,往坏了说是不存在,有时甚至非常过时。

有没有其他更彻底、更宽容、更有用的东西,或者我是否坚持使用另一个经典的、无聊的 STFU 和 RTFM,尽管 TFM 没有帮助?


更新

针对 JP Calderone 的评论,即我只是有一个婊子,在某种程度上我想我是,但考虑到 Twisted 的广度和价值以及缺乏明显、详尽的文档。我心里有一些想要调查的事情,但我一直得到不错的结果,只是将事情拼凑在一起并询问具体细节,而在我看来,我所寻求的更深入、更广泛的理解是没有帮助的。

立即浮现在脑海中的对比是 Django...我可以阅读(非常详尽的)Django 文档,但不一定知道如何立即执行它可以执行的所有操作,但我可以很好地了解如何< /em> 我可能会做我需要做的一切,并且确切地知道在时机到来时该去哪里寻找。

I've been looking at twisted for a while now. It looks interesting - it seems like a good way to leverage a lot of power when writing servers. Unfortunately, in spite of writing a few web servers using twisted.web (from reading other people's source and an extremely dated O'Reilly book) I've never really felt like I had reached an affinity with twisted... a level of understanding that actually gave me some of the power it seems like it has.

I think I need some good documentation to arrive at a better level of understanding - I simply don't have time to pore over the source, and other threads on SO have mentioned twisted's official documentation, which is patchy at best, absent at worst, and occasionally very out of date.

Is there anything else out there that is more thorough, more forgiving, and more useful, or am I stuck with another classic, boring STFU and RTFM even though TFM is not helpful?


Update

In response to JP Calderone's comment that I'm just having a bitch, to some extent I guess I am, but I think the breadth of the question is valid considering the breadth and value of Twisted and the lack of obvious, thorough documentation. I have a few things in mind that I wanted to investigate, but I've been getting OK results just hacking things together and asking for specifics when a deeper, broader understanding is what I'm looking for is, in my mind, not helpful.

The contrast that immediately springs to mind is Django... I can read over the (very thorough) Django documentation and not necessarily know how to do everything it can do immediately, but I can get a really good overview of how I might do everything I needed to do, and know exactly where to look when the time comes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

夏尔 2024-09-11 14:37:14

我将重复这里的一些回答者所说的内容(他们都是很好的答案),希望提供一个比较全面的答案。

  1. 虽然包含的文档在某些地方参差不齐,但核心文档包含对 Twisted 基本概念的一些有用且简短的介绍。特别是,请参阅使用 Deferreds编写客户端编写服务器
  2. 另外,API 文档 - 特别是 接口模块 - 与每个后续版本越来越全面和一致。
  3. 如果您对 Twisted 目标和设计的更高级描述感兴趣,以便了解如何处理其他一些文档,我与
  4. Twisted 的常见问题解答也有点曲折,但可能会帮助您解决人们在工作时遇到的许多绊脚石他们通过介绍性材料的方式。
  5. O'Reilly 关于 Twisted 的书有一些很好的例子,可以进一步阐明核心概念就像 Def​​erreds 和 Reactor 一样。
  6. Jean-Paul Calderone 的“60 秒扭曲网络”教程很好地介绍了当然,更高级别的twisted.web,但是您还会看到许多重复的有用模式,这些模式可能对您正在编写的任何应用程序都有用。
  7. 我写了两篇关于 Twisted 中使用的构建块的文章,以处理文件系统加载插件
  8. 最后但当然并非最不重要的是,Dave Peticolas 的谦虚标题“Twisted Intro” 是对很多人都难以理解的介绍性材料的非常全面的描述,配有图表和轶事。

另请注意,所有新功能都附带新的 API(即参考)文档;我们希望这将使具有技术写作能力的人更合理地编写文档,而无需费力去理解方法名称的含义。

I'm going to repeat what some of the answerers here have said (they're all good answers) in the hopes of providing an answer that is somewhat comprehensive.

  1. While the included documentation is spotty in places, the core documentation contains several helpful and brief introductions to the basic concepts in Twisted. Especially, see Using Deferreds, Writing Clients and Writing Servers.
  2. Also, the API documentation - especially the documentation in interface modules - is increasingly thorough and coherent with each subsequent release.
  3. If you're interested in a higher-level description of Twisted's goals and design so you know how to approach some of this other documentation, I co-authored a paper presented at USENIX 2003 with Itamar Turner-Trauring.
  4. Twisted's FAQ is also a bit meandering, but may help you with many stumbling blocks that people hit when working their way through introductory material.
  5. The O'Reilly book about Twisted has some great examples which may further elucidate core concepts like Deferreds and the Reactor.
  6. Jean-Paul Calderone's "Twisted Web In 60 Seconds" tutorials are a good introduction to the somewhat higher-level twisted.web, of course, but you will also see lots of useful patterns repeated throughout which may be useful to you in whatever application you're writing.
  7. I have written a pair of articles on building-blocks used within Twisted, to deal with the filesystem and to load plugins.
  8. Last but certainly not least, Dave Peticolas's modestly titled "Twisted Intro" is a very comprehensive description, with diagrams and anecdotes, on the introductory material that so many people have difficulty with.

Please also note that all new functionality comes with new API (i.e. reference) documentation; we hope that this will make it more reasonable for people with technical writing skills to write documentation without having to struggle through even understanding what the method names mean.

寒尘 2024-09-11 14:37:14

扭曲介绍,作者:Dave Peticolas 对 Twisted 进行了令人惊叹的从头开始的概述。它从简单开始,然后开始变得越来越深入,同时解释沿途的一切。

我已经使用 Twisted 多年,发现这个介绍可以填补我所遗漏的所有空白,并阐明整个事情。绝对值得您花时间去看看!

The Twisted Intro by Dave Peticolas is an amazing overview of Twisted from the ground up. It starts simple and then starts getting deeper and deeper while explaining everything along the way.

I've been using Twisted for years and found this intro to fill in all those gaps I was missing and shed light on the whole thing. Definitely worth your time to check it out!

别理我 2024-09-11 14:37:14

查看 Jean-Paul Calderone 的 60 秒内的 Twisted Web

但是,老实说,Twisted 的官方文档并不完美,但我不会说它令人厌恶。里面有很多有价值的信息。

Check Twisted Web in 60 seconds by Jean-Paul Calderone!

But, honestly, the Twisted's official documentation is not perfect but I'll not call it disgusting. There's a lot of valuable info in it.

暗喜 2024-09-11 14:37:14

看看之前的文章...

Python 扭曲:从哪里开始

Take a look at this previous post...

Python twisted: where to start

葬心 2024-09-11 14:37:14

O'Reilly 的书 Twisted Network Programming Essentials

我还没读过,但目录看起来不错。

There's the O'Reilly book Twisted Network Programming Essentials.

I have not read it, but the ToC looks nice enough.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文