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. Pffff... overkill? by ptaff · · Score: 5, Interesting
    What makes PHP so nice for web development?
    • Is it syntax style? No, it's pretty standard C-like-syntax-with-braces;
    • Is it speed? Nah, interpreted like most of them web languages;

    What makes PHP great is an impressive set of embedded libraries, easy integration in an already existing plain HTML document and POST, GET, cookie, session management.

    Look at this beast: *SQL*, FTP, zip, flash, XML, gettext, image manipulation, LDAP, UNIX process control... all rolled-into-one language. Wow. Perl is, in that respect, with the right CPAN modules, as nice as PHP, but dare I say... easily obfuscated?

    PHP had (still has in 5.0?) enormous deficiencies and bugs in its OO model. Works great for quick pages, but as the article says, does not scale well.

    So, why insist on keeping PHP for large-scale sites instead of plain java? to use PHP's libraries, HTML integration and web-oriented features, that's it. An artist can draw a page in his favorite application, export to HTML, the coder only has to fill the blanks.

    The language in itself has no advantages. If java had all these libraries and "native" web access, why would we consider "merging" these two languages?

    Think of it, two interpreted languages joining forces to drain down CPU and memory...

    (just my two cents)