I am new at web developing. I know C# and java. I want to develop a site which will be in MVC framework. But I can't decide (java spring, jakarta struts) or (CakePHP, CodeIgniter, Symphony) will be better for me. As I know java, java MVC frameworks will be best for me, but how much java will fit in web development? Please suggest java or PHP? I want to develop a site for reporting missing people and finding.
closed as not constructive by jzd, Oli Charlesworth, Octavian Damiean, webbiedave, BalusC Jan 26 '11 at 21:19
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.
I would choose my language not on raw numbers first, but on your functional requirements. If after analyzing your functional requirements you do not have a clear winner, consider the following points: (Disclaimer: I develop in PHP but have used JSP from time to time) Future-proofNone of both platforms will disappear soon. As for each major versions of each platforms, they might come with some changes that will break your code. (Or at least deprecate a bunch of methods) PerformanceI could link to benchmarks showing PHP to be faster and others showing JSP to be faster. It depends on your hardware and what you plan on doing with it. For pure number crushing, JSP seems to be faster. SecurityPHP has a bad reputation security-wise and I can understand why. There are a lot of students and hobbyists who started coding in PHP and have absolutely no idea of what code security means. Please remember that this affects their code, not yours. Also, if you choose PHP, be careful when choosing third-party documentation. A lot of them a written without any consideration for code security and their examples are riddled with security issues (especially the database section of such books). There are equal opportunity to shoot yourself in the foot in JSP than in PHP. There is nothing stopping me from writing the following code in JSP:
as there is nothing stopping me from doing the same in PHP:
Yet we all know that we should never do anything as such in our code. Whatever language you choose, follow these simple security rules. Those are applicable on all platforms.
|
|||||||||
|
It's best to use what you already know. If you know Java, use Java. |
|||
|
Benchmarks show PHP is just about the slowest language going while Java is at the opposite end of the spectrum, getting faster and faster with each release. So first point, if you have a lot of heavy lifting to do, say you are developing a very intensive administrative application, you would want to seriously consider Java over PHP. Having worked with both languages, I've found PHP has a very large hobbyist community with a small, in relation, professional community. Java on the other hand, has a much larger professional community making the information you find and the help you can get of a generally higher quality in terms of considerations like security. If you go the Java route, you can look at a framework such a GWT (Google Web Toolkit). This won't provide you with an MVC framework off the ground, but you can certainly structure your code as MVC ontop of it. With your previous Java experience, you might benefit from being able to use Java to build your UI in GWT rather than having to learn every quirk of HTML. On the PHP side, there are a number of very good frameworks. A personal favorite of mine is CodeIgniter which has excellent documentation in the form of its user guide. Generally I'd say you can roll out sites and features faster with PHP that Java. I've seen admin sections to sites developed in PHP in a couple of weeks while the same thing has taken a couple of months in Java. The Apache, PHP, MySQL setup is also much simpler to manage than a Java server like GlassFish or JBoss so if you are planning to host the server yourself via a VPS or some such, this should be a consideration. In a similar vein, note you will find it difficult to find shared hosting for Java while pretty much all shared hosting supports PHP. |
|||||||||||
|
I want to develop a site for reporting missing people and finding
doesn't add any more relevant info. Although a noble cause (unless they're trying to get away from you), it doesn't play a factor in determining which technology to use. Better info would be the functionality, technical capabilities your application needs. – webbiedave Jan 26 '11 at 21:49