From PHP to Java
Hi, I'am a PHP programmer with 1 year of experience programmimg WebApps. I need to start developing WebApps in Java.
It is good idea to start in Java developing WebApps or should I learn Java with no WebApps development?
Oh, and another question... What Framework should I use? My applications will be enterprise web 2.0.
ps: Sorry my bad english.
Congratulations to choosing Java for Programming WebApps.
It is good to start Java for developing WebApps, this is the
best part form java.
But which Framework is hard to say ask 100 Java Developers and you receive 100 Answers. And it is depended from your knowledge and type of your project.
I have mad good experience with Struts2 it has many Plugins and works well together with other frameworks.
Welcome to Java Forums. :)
Actually those days more trend is on web applications, not for the desktop applications. Lots of people are dosen't like to install the applications on there PCs. And also most of them wants to access their data from anywhere in the world.
When comes to the selecting of a framework, it's mainly based on the application you are going to develop. At the same time, the knowledge about that you've plays a major role too. I don't think it's easy to comment anyone on what's the best framework to move with. It's depends on there own experience. Generally if someone working for a long time in different aspects he/she has a better review on it.
And also, be update on new technologies as much as possible. When comes to Java there are large number of different frameworks. So learning all of them is not a practical task.
Not just frameworks
If Web 2.0 is your thing, then these days it's pretty common to expose parts of your app as web services, so that app developers and the like can consume them. With that in mind, building the whole app as RESTful web services, and having the UI as just one view of those services is an option to consider, rather than going down a Struts2 or similar avenue. This is how frameworks like Rails and it's cohorts in other languages do things.
In Java, my first choice would be Jersey, the reference JAX-RS implementation, but others are available.
One of the major advantage I've seen in use of web services is that the avoiding code duplication. Mean it could be is not only in web applications, but also in desktop applications as well, and in many aspects.
Yep, it's great for the DRY! Rather than writing the web app for people to use, and then another one for other apps to use, and having to maintain them both, you just write the one. As someone else put it at a conference, "write the RESTful web services, and you get the web app for free".
Of course. Actually that's our new approach in many case. Because in todays contest we have to maintain the same application in different views, on the web, as a desktop application, as an application of iPhone, etc... In such case just think about the set up where we can access the same resource in different ways, and how it survive you.