TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: PHP or JSP ?

4 点作者 vikas0380超过 11 年前
Which Should I Learn? I am from java background.

8 条评论

mindcrime超过 11 年前
I think the answer to this involves a big dose of &quot;it depends&quot;, but I&#x27;d lean towards jsp. The Java ecosystem is just so mature and so comprehensive, and - for all the warts of certain elements of the Java stack (JSF, anybody) - JSP&#x27;s are actually pretty cool.<p>Java is especially good for apps that have lots of intgration &quot;touch points&quot; were you need to tie in with external, 3rd party apps. Java makes it pretty easy to use REST, SOAP based WebServices, RPCs of different flavors (RMI, etc), asynchronous messaging using JMS, or pretty much any other integration technology you need. If you will be building larger systems that need to be built in more of a &quot;small pieces, loosely joined&quot; style, a JVM based stack will serve you well.<p>And if you need to do &quot;Big Data&quot; stuff, already being in Java will make it straightforward to use, say, Hadoop. If you want to use Machine Learning, you have the convenience of Mahout, Weka, etc. Want to join the Semantic Web? You have Apache Jena. Need to do Natural Language Processing? OpenNLP is there. Want to add search to your app? Apache Lucene &#x2F; Solr are your friends.<p>Now, to be fair, <i>most</i> well known platforms have plenty of libraries available. Java isn&#x27;t unique in that regard. But I think it is somewhat unique in just how comprehensive and mature the overall ecosystem is.
agibsonccc超过 11 年前
Not to be irrelevant to the question, but something to consider. Why not just go with java as a rest API and use a frontend framework? JSP with taglibs and all that aren&#x27;t as heavily used now a days.<p>Keep in mind, this is coming from someone who has done JSP and spring (still use spring) for years.<p>Especially in light of some of the newer JVM frameworks, you&#x27;d benefit from being framework agnostic on the front end but take advantage of your java experience otherwise.
KajMagnus超过 11 年前
Does it have to be PHP or JSP? What about Java and Play Framework instead of JSP? <a href="http://www.playframework.com/" rel="nofollow">http:&#x2F;&#x2F;www.playframework.com&#x2F;</a> — I like it a lot
评论 #6303747 未加载
shire超过 11 年前
I recommend you go with PHP, it&#x27;s really easy to use and get started with. You can make some pretty amazing applications rapidly and deployment is a joy with PHP. The job market for PHP and Java is the same as a far as demand but Java pays much more.
评论 #6303727 未加载
debacle超过 11 年前
There are very few technologies that are as bad as working with JSP, even considering your Java experience.<p>Have you considered other options that run on top of Java?
talles超过 11 年前
Since you are from a Java background maybe you should stay with it.<p>Explaining why your options are just PHP or JSP might help.
评论 #6302973 未加载
jhowell超过 11 年前
What are you trying to build? If it&#x27;s enterprisey I&#x27;d go with JSP and take a look at Spring MVC.
firefoxd超过 11 年前
if you know java you should continue with JSP then