J2EE, websites and PHP

C

charly

Greetings,

I'm a PHP developper and recently switched to java programming and
Tomcat 4.1.
Java is nice, object programming and sessions : it works ok.
I've used beans and taglibs in a mvc model as well.

Now, having finished the website, I can't help to notice, that to make a
website, It would have been much much faster to develop using PHP.

Can someone tell me the advantages to use Java rather than PHP in
websites development ?

Notice : I don't want to strat a troll :)
 
J

Juha Laiho

charly said:
I'm a PHP developper and recently switched to java programming and
Tomcat 4.1.
Java is nice, object programming and sessions : it works ok.
I've used beans and taglibs in a mvc model as well.

Now, having finished the website, I can't help to notice, that to make
a website, It would have been much much faster to develop using PHP.

Could it be because you're not yet so used to Java (and OOP, and
the other concepts brought to you with Java), that you do things
faster with PHP?
Can someone tell me the advantages to use Java rather than PHP in
websites development ?

Java might scale better -- to larger sites with more functionality.
But then, apparently PHP server rather nicely as well (ISTR that Yahoo
is now based on PHP).
 
L

Les news de Free

No, it is not a question that I develop faster with PHP because I'm more
familiar with the language : I'm speaking of the the way the objects and
response requests printer objects are handled and required. : to forward
the request towards another servlet, create a taglib structure with the xml
declaration and so on....

I'm really curious about what you people think...
 
S

Shawn McDermott

The issue here is really implementation. If you now how to optimize and
implement well written PHP, you will be "faster". Same for java/jsp. I
have implemented several intranet sites using the java/jsp technologies
and have seen great results quickly. However, I have counterparts that
take twice as long to implement using the same technologies. This is
not to say I am a GOD, but If you write procedural techniques with a OOP
language, you will not get quick results. It can be done, and quite
often is done, but my advice to all that want to be successful using
java, is to bone up on OOP theory. Learn design patterns. Create a
foundation from which to draw from, and you create wonderful code.

As for PHP, I also feel it is a great technology. Some wonderful things
have been written using PHP.

It is about the end user getting their needs met, by getting a
functional, cost effective, time effective product.

Anyway, off my soapbox.
Shawn
 
P

Paul Guermonprez

hello,


i use both in my everyday work and yes, php is faster,
but only for small projects.
for big projects, when you need to handle complex data,
complex flows, ... java strengh is usefull.

and you can reuse the code : if you want a gui-based
client, you can reuse a lot of your java code,
with php you can't really do that.
php is not a perfect client language.

but of course, if people need to modify your software,
java struts based software are less easy to understand
than a php script.

i use to write prototype in php and when i really know
what i want, i write a java software correctly.


paul.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top