Slashdot Mirror


Scriptiing The Enterprise With Java And PHP

jontr writes "There are many benefits of using PHP together with Java. In an article about JSR 223, Dejan Bosanac looks at origin of each language and describes future benefits for PHP and Java developers."

1 of 80 comments (clear)

  1. I disagree with their characterization of PHP by Tablizer · · Score: 0, Flamebait

    but PHP was designed for page centric architecture

    So? The "separation of presentation from logic" is often overdone in my opinion. It often results in having to make changes in TWO places instead of one when you add or alter UI elements, and you cannot switch from say desktop-targeted-HTML to PDA in a one-to-one manner anyhow. The application needs to be repartitioned for such often. People often get such "mantralets" in their head and have to be slapped out of it.

    with very limited support for object-oriented programming

    Some of us think that OOP is oversold. I have yet to see a convincing example or argument. OO fans cannot even agree exactly on why OO is allegedly better. For certain network protocols I suppose it makes it easier to swap implementation with another vendor, but only if both vendors use the same exposed protocol, which they often don't anyhow. You can wrap them in functions just as easily as in classes in order to provide the same interface.

    Also, there was no system support for transactions,

    Isn't that the database's job?

    [no support for] software components

    Huh? PHP is full of existing "components". The component model is often not appropriate for business logic/modeling anyhow IMO.

    PHP does not scale well and there is no easy and standard way to make a cluster to achieve better scalability.

    Tell that to Yahoo, who adopted PHP.

    So, if you are PHP developer and your project is getting larger and larger every day, and the scalability is your main issue, try to force MVC

    Hasn't MVC been discredited? There are a lot of complaints about it in techie forums.

    One thing I really miss about PHP is named parameters. I would like to see the team work on that rather than things like "better" OO.