7

我正在寻找一个有意义的任务来学习 Scala(最终可用的东西,而不仅仅是编程练习),而且我还必须做一个论坛,我不想学习 PHP ......所以我'我正在考虑在 Scala 中实现一个开源论坛。

但这有意义吗?论坛没有高性能或可扩展性要求……而且 Java Hosting 更昂贵,所以即使我的论坛软件是免费的,大多数人也不会使用它。

我是否错过了用 Scala/Java 编写的论坛有意义的用例,并且比 PHP(或类似)论坛更可取?

我发现例如这个:

http://java-source.net/open-source/forum-software

但它似乎被放弃了,就像这里所说的:

http://www.coderanch.com/t/497053/Ranch-Office/forum-has-been-built-JForum

所以我可能是正确的,简单、便宜和慢更适合论坛= PHP?

4

2 回答 2

10

我认为用 Scala 编写的开源论坛会很有用,如果你能以一种易于使用 Lift and Play 框架与现有 Web 应用程序集成的方式构建它。

您的目标受众应该是任何使用 Scala 编写 Web 应用程序并想在论坛上发表文章的人。使用基于 php 的解决方案的前景不会吸引这些开发人员,但也不会重新实现轮子。如果您使用他们已经在利用的相同堆栈创建一个编写良好、易于实施的解决方案,那么您就有一个非常引人注目的价值主张。

于 2012-08-01T21:47:47.620 回答
1

It depends on the purpose of the exercise.

You want to learn Scala and need a project for exercise: Anything goes, so does a forum. But it would probably be more interesting to get involved in some existing open source project. Think about the 5 first libraries you would probably consider for a project (logging, testing, web framework) check them out, find one that is open for contribution. Grab a bug or feature request and try to implement it.

You want some forum Forget it. Use some existing solution.

Somebody forces you to write a forum If things like being hostable on almost arbitrary webspace isn't a requirement, go ahead use Scala.

You want to prove the power of Scala to yourself or somebody else Go for something more challenging (Big Data, Akka ...)

于 2012-08-02T06:40:54.453 回答