C
cmk128
Hi
I learned jsp for about 5 years, and learned php for about 4
months. I feel php is more easy to learn, and it can do almost java
can do. So i suggest people to use php for do web. Here is my little
opinions:
1) People said struts/spring is not hard to learn. YES, just for the
API itself. To learn them right, i need to learn how to setup the J2EE
server, how to deploy my war, how to compress my code to war, and i
need to learn how to use the IDE too. All of them composite an complex
environment and make the learning curve very high. Don't tell me you
are using a notepad to write struts, then you will spend a big amount
of time for writing the makefile, and everytime you add more source
file to your project, you need to rewrite the makefile again. For PHP,
open a dreamweaver , save your code and then work. For me, i need 0
second to learn Dreamweaver, because it is WYSIWYG.
2) Java is too large now, it spited into too many layers :
presentation layer (JSP), logic layer (struts), data layer(hibernate).
For almost project, do we necessary to do that? Some people said
splited as many layer as we can, will make the project more readable,
and other people is more easy the trace. I totally disagree with that.
Because i need *SERVERAL* skills to trace a bug in the project that
with serveral layers. For example, I need to use jbuilder to trace the
struts part, and i need to use eclipse to trace hibernate. It is hell.
(my point of view)
3) Just too many .xml properties file. The beginner is hard to learn.
The struts have its own properties file, hibernate has it own too, and
the server also has it own. Too annoying (my point of view)
4) The IDE is not really as good as visual studio. I know how to use
jbuilder and eclipse, both of them cannot set the breakpoint in any
line of code, i meant i cannot set the breakpoint in some of my code.
Without a good IDE, debug my struts program is hard.
5) The build process is not united. For example, Liferay is a java
portal, when you open its ant file, over 30 options, i don't know how
to build it. For asp.net, whatever your project is, press the build
button, it will build, press the run button, it will run.
All of the above points is not exist in PHP world. For a big
development team, i will suggest java, as i said java split the
project in more layer then PHP, it will have better division of labor.
But for a team with less than 100 developers, i suggest php.
Please correct me if i am wrong !!!
thanks
from Peter ([email protected])
I learned jsp for about 5 years, and learned php for about 4
months. I feel php is more easy to learn, and it can do almost java
can do. So i suggest people to use php for do web. Here is my little
opinions:
1) People said struts/spring is not hard to learn. YES, just for the
API itself. To learn them right, i need to learn how to setup the J2EE
server, how to deploy my war, how to compress my code to war, and i
need to learn how to use the IDE too. All of them composite an complex
environment and make the learning curve very high. Don't tell me you
are using a notepad to write struts, then you will spend a big amount
of time for writing the makefile, and everytime you add more source
file to your project, you need to rewrite the makefile again. For PHP,
open a dreamweaver , save your code and then work. For me, i need 0
second to learn Dreamweaver, because it is WYSIWYG.
2) Java is too large now, it spited into too many layers :
presentation layer (JSP), logic layer (struts), data layer(hibernate).
For almost project, do we necessary to do that? Some people said
splited as many layer as we can, will make the project more readable,
and other people is more easy the trace. I totally disagree with that.
Because i need *SERVERAL* skills to trace a bug in the project that
with serveral layers. For example, I need to use jbuilder to trace the
struts part, and i need to use eclipse to trace hibernate. It is hell.
(my point of view)
3) Just too many .xml properties file. The beginner is hard to learn.
The struts have its own properties file, hibernate has it own too, and
the server also has it own. Too annoying (my point of view)
4) The IDE is not really as good as visual studio. I know how to use
jbuilder and eclipse, both of them cannot set the breakpoint in any
line of code, i meant i cannot set the breakpoint in some of my code.
Without a good IDE, debug my struts program is hard.
5) The build process is not united. For example, Liferay is a java
portal, when you open its ant file, over 30 options, i don't know how
to build it. For asp.net, whatever your project is, press the build
button, it will build, press the run button, it will run.
All of the above points is not exist in PHP world. For a big
development team, i will suggest java, as i said java split the
project in more layer then PHP, it will have better division of labor.
But for a team with less than 100 developers, i suggest php.
Please correct me if i am wrong !!!
thanks
from Peter ([email protected])