Professional PHP

PHP Programming, Web Development, PHP Advocacy and PHP Best Practices.
« Upgraded to WordPress 1.5
PHP Application Security »

PHP first impressions from a J2EE programmer

February 19th, 2005

I ran across Cedric Otaku’s blog entry about his first impressions working with PHP as an experienced Java programmer. Not surprisingly, he chose PHP partly because it was already available on his ISP.

He highlights syntax, available libraries and string handling as PHP’s strengths.

He has some problems with the scoping rules and with the lack of namespaces.

Reading between the lines, I also wonder if he might prefer a stricter error_reporting setting.

Perhaps as a PHP advocacy issue it might be helpful to have a ‘PHP for Java programmers’ chapter of the PHP manual on php.net. I’m not sure how far something like this might go, but the seed seems to be there. A while ago, I started to compare the PHP response handling to Java’s HttpServletResponse. Request Handling is here.

A comment on this post is disturbing. It calls PHP ‘dangerous’ from a security perspective because of the recent phpBB vulnerability. To be fair, I have to admit that the /e modifier of preg_replace is obscure. (I’ve started compiling a list of Security Sensitive Functions in PHP.)

Filed Under

  • PHP

Related Posts

  • A Comparison of the PHP and Java Job Markets
  • Zend Framework Webcast
  • API Design
  • Richard Thomas
  • Comparing PHP with other languages
You can leave a response, or trackback from your own site.

3 Responses to “PHP first impressions from a J2EE programmer”

  1. Cedric says:
    2/20/2005 at 6:01 pm

    Hi Jeff,

    Indeed, a stricter error reporting is quite useful, but I suppose I’ll have to set it in my PHP code since my ISP will most likely not let me edit their PHP.ini.

    Thanks for the comment.

    –
    Cedric

  2. Justin Austino says:
    1/28/2011 at 12:23 pm

    This is a terrific blog, I located your blog page doing research google for a related theme and came to this. I couldnt find to much alternative info on this posting, so it was great to discover this one. I definitely will be back to check out some other articles that you have another time.

  3. Mafalda Dreesman says:
    12/27/2011 at 4:15 am

    Dear Sir
    I always read your comments on Bigadda,but rarely submit my comments.
    Today When I read that you were hurt in shoot,I was really disturbed and worried..I hereby send my good wishes for your speedy recovery.
    Please do take care of yourself and all the best
    Kind Regards
    Amitabh Sharma
    Solicitor
    Supreme court Of England and Wales
    United Kingdom

Leave a Reply

Click here to cancel reply.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

code: use [code=php][/code].

Comment Preview

    Subscribe Feed
    Share Subscribe to this blog…
    Share Bookmark or share this page…
  • About

    My name is Jeff Moore. I'm a PHP programmer living in San Francico and working for a startup.

    More about me…

  • Categories (Home)

    • Agile Methods (14)
    • Mac (14)
    • Misc (18)
    • Open Source (14)
    • PHP (99)
    • Software Design (29)
    • Usability (14)
    • Web Design (20)
  • Recent Comments

    • Why PHP is easier to learn than Java  51
      Brant Chamorro, Jay Marry, Jutta Trudel [...]
    • On the Perils of Inline API Documentation  16
      Glen Hollinger, Newton Boudoin, Chaussre Air Jordan [...]
    • un-Friendster: fired for blogging  5
      Un Hawse, Jim Skomo, Analisa Niccum [...]
    • PHP Book sales trends versus Java and Ruby  7
      Rosann Frederick, Glenn Leffingwell, byb bye blemish [...]
    • Let Your Properties be Properties  17
      Lupita Ziler, Lawrence Constanzo, nail dryer [...]
    • Upgraded to WordPress 1.2  3
      Laurence Morda, Ike Mcleish, Vilma Babers
    • PHP Coding Standards  12
      Twana Ventry, Luther Quelch, Rhett Ososki [...]
    • Commercial Zend versus Open Source PHP  11
      Loria Brendel, Billie Areola, Hans Stremmel [...]
    • A WordPress bug fix  7
      Malcolm Kinnon, Maximo Caoagdan, Kali Giesbrecht [...]
    • The PHP scalability saga continues  17
      Cameron Borah, Monty Gucciardo, Freddie Leaton [...]
  • Recent Posts

    • Richard Thomas
    • ZendCon: Writing Maintainable PHP Code
    • Looking Towards the Cloud
    • Holiday Tech Support
    • Closures are coming to PHP
    • php | tek Wrapup
    • php | tek 2008
    • Sarah Snow Stever
    • Benchmarking PHP’s Magic Methods
    • The Endpoints of the Scale of Stupidity on Video
  • Site

    • Archives
    • Log in
  • Search