开发一个聊天网站
我想开发一个匿名聊天网站,例如 http://omgele.com。 我知道这个网站是使用twisted matrix
框架用python开发的。使用扭曲矩阵很容易开发这样的网站。 但我对 Java 非常熟悉,并且有 1 年的使用经验,并且不懂 python。
我该怎么办?我应该开始吗 学习Python以发挥优势 扭曲矩阵框架?
或
我应该用java开发它吗?如果是的话 您建议使用哪个框架 这样做吗?
I want to develop a anonymous chat website like http://omgele.com.
I know that this website is developed in python using twisted matrix
framework. Using twisted matrix it's easy to develop such website.
But I am very comfortable in Java and have 1 year's experience with it, and dont know python.
What should I do? Should I start
learning python to take advantage
of the twisted matrix framework?OR
Should I develop it in java?If so
which framework you would suggest to
do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
学习Python。
这将为您的工具箱添加一个非常强大的工具。
而且,Twisted 可以做的不仅仅是聊天,这将对您的未来有所帮助。
Learn python.
This will add one very powerful tool to your toolbox.
Also twisted can do much more than just chat which will help you in future.
我会礼貌地向 omgele.com 的人索要一份他们的代码副本并研究它
不幸的是,源代码不太可能可用。
我仍然建议向其他人学习,如果可能的话,加入他们来改进代码。
I would politely ask the people at omgele.com for a copy of their code and study it to
unfortunately, the source code is not likely to be available..
Still I advise to learn from others, and if at all possible, join them to improve the code.
对于您的第二个问题,请看一下 Jabber (XMPP),它有多个 Java 客户端并且受到广泛支持。例如 Gtalk、Facebook 使用 XMPP。
这里是一个用Java编写的优秀服务器。
To your #2 question, take a look at Jabber (XMPP), it has several Java clients and is widely supported. Example Gtalk, Facebook use XMPP.
Here is an excellent server written in Java.
学习 Python 是一个信息丰富、有趣且有价值的过程。当您真正开始使用时,您可能会发现您可以比 Java 更快地开发。 Twisted 是一个执行得相当好的框架,它可以让您避免异步 IO 可能遇到的许多陷阱;它拥有相当多协议的一流实现以及热情、有能力的支持社区。
如果您对这样做所获得的知识和经验感兴趣,请继续学习 Python 并使用 Twisted。如果您觉得自己的 Java 知识相当扎实,您可能可以阅读官方教程几次开始黑客攻击。 Twisted 可能需要一段时间才能点击,但实际上并不是那么难。
Learning Python can be an informative, interesting, and valuable process. When you really get going, you will probably find you can develop more rapidly than in Java. Twisted is an fairly well-executed framework which lets you avoid many of the pitfalls you can run into with asynchronous IO; it has top-notch implementations of quite a few protocols and a passionate, competent support community.
If you're interested in the knowledge and experience you'll gain doing so, go ahead and learn Python and use Twisted. If you feel pretty solid with your knowledge of Java you can probably read the official tutorial a couple times then start hacking away. Twisted can take a while to click, but it's really not all that hard.
我使用过大约十几种不同的语言,大约两个月前开始使用 Python。 Java 和 Python 在开发 Web 应用程序、中间件和服务方面非常出色!
学习Python。
I've worked with about a dozen different languages, and started with Python about two months ago. Java and Python in developing web apps, middleware, and services ROCKS!!
Learn Python.