Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
所以您对固定解决方案不感兴趣,而是想自己编程,我理解正确吗?如果不是:采用固定解决方案。这将需要大量的编程工作,无论您之后想要做什么,在另一个框架中完成它都会比您预期的问题小得多。
但是,如果您实际上对编程体验感兴趣,并且没有找到任何谷歌搜索的教程,例如“消息传递 python 教程”,那么那是因为这些是大型项目,-如果您描述这种规模的项目,你比实际的代码行高出很多英里,以至于具体的编程语言几乎无关紧要(或者至少你不会陷入细节)。所以你需要将这些东西分解成更小的组件。
例如,朋友/关注功能:如何将内容插入到带有用户 ID 的表中,如何保留关注关系表,如何查询用户所关注的人的所有文本(当然还有一些基础设施)如果你的人数超过 100.000,就会出现问题,但你明白了;)。然后你可以问自己,其中哪一部分是我不知道如何在 Python 中实现的?另一方面,如果您的问题是将问题分解为这些子问题,您需要开始寻求帮助,但这可能不是特定于语言的(因此您可能只想开始搜索“架构朋友提要”或任何)。另外,你可以在这里问这个问题(注意,每个要点本身就是一个巨大的问题;)。最后,您可以进入 Pinax 代码(不知道,但我假设它是开源的)并看看他们是如何做到的。例如,您可以尝试将他们的一些东西移植到 Pylons,这样您就不必重新发明他们的轮子,了解他们是如何做到的,最终进入您想要的框架,甚至可能创建其他人可重用的东西。
抱歉,tl;dr,那是因为我没有具体的 URL 来指向您!
So you're not interested in a fixed solution but want to program it yourself, do I get that correctly? If not: Go with a fixed solution. This will be a lot of programming effort, and whatever you want to do afterwards, doing it in another framework than you intended will be a much smaller problem.
But if you're actually interested in the programming experience, and you haven't found any tutorials googling for, say "messaging python tutorial", then that's because these are large-scale projects,- if you describe a project of this size, you're so many miles above actual lines of code that the concrete programming language almost doesn't matter (or at least you don't get stuck with the details). So you need to break these things down into smaller components.
For example, the friend/follow function: How to insert stuff into a table with a user id, how to keep a table of follow-relations, how to query for a user all texts from people she's following (of course there's also some infrastructural issues if you hit >100.000 people, but you get the idea ;). Then you can ask yourself, which is the part of this which I don't know how to do in Python? If your problem, on the other hand, is breaking down the problems into these subproblems, you need to start looking for help on that, but that's probably not language specific (so you might just want to start googling for "architecture friend feed" or whatever). Also, you could ask that here (beware, each bullet point makes for a huge question in itself ;). Finally, you could get into the Pinax code (don't know it but I assume it's open source) and see how they're doing it. You could try porting some of their stuff to Pylons, for example, so you don't have to reinvent their wheel, learn how they do it, end up in the framework you wanted and maybe even create something reusable by others.
sorry for tl;dr, that's because I don't have a concrete URL to point you to!