PHP DevCenter

oreilly.comSafari Books Online.Conferences.

We've expanded our LAMP news coverage and improved our search! Search for all things LAMP across O'Reilly!

Search
Search Tips

advertisement

once you know PHP5, all the Java examples make sense

   Print.Print
Email.Email weblog link
Blog this.Blog this
Derek Sivers

Derek Sivers
Nov. 17, 2004 09:55 AM
Permalink

Atom feed for this author. RSS 1.0 feed for this author. RSS 2.0 feed for this author.

URL: http://www.zend.com/php5/andi-book-excerpt.php...

I've been prejudiced against Java ever since the early days on the web on my Mac, where any web page that included a Java applet would crash my browser. Years later, any web page with a Java applet makes my hard drive churn for 8 seconds, freezing the computer until it loads Java into memory I guess, just to run a stupid mouse-hovering menu on a website. So of course this experience made me think of Java as some ridiculous stupid bloated language.

(Plus Java was often mentioned with that word "enterprise" that always makes me run the other direction, because you know the suits are near.)

Being a guy that just makes websites, I always ignored (or scoffed-at) Java. But as I was learning the object-oriented style of programming, most of the examples were in Java.

PHP5 comes out, and I get to know it and love it. Then I realized as I'm reading Java examples in articles and books - they all make sense now! PHP5 is just similar enough to Java that if you know PHP5, you can at least understand Java.

Reading Robert Kaye's language musings, I'm feeling that PHP5 also fits the praise he's giving Python : the power of Java but much faster to type. I'm very very impressed with PHP5.

Derek Sivers is the founder, president, and sole programmer behind CD Baby, independent music distribution, and HostBaby, web hosting for musicians.

Comments on this weblog
Full Threads Oldest First

Showing messages 1 through 8 of 8.

  • servlets or applets?
    2004-11-17 14:04:53  yogimind [View]

    A servlet wouldn't be any different than a cgi, or php page in its response . . . do you maybe mean an applet? curious
    • servlets or applets?
      2004-11-17 14:06:35  yogimind [View]

      woops . . . I just logged in and now there are comments under the posting. There were none before. Sorry for the redundant post :-).
  • java perceptions
    2004-11-17 11:25:07  vikdavid [View]

    Wow, that's a long time to hold a grudge against Java. Applets on Macs crashing? :-) I'm sure you realize, but you've unknowingly enjoyed the benefits of Java (er "enterprise" Java) countless times without realizing it. It's just everywhere.
  • Servlets != applets
    2004-11-17 10:21:19  kalim1998 [View]

    Wow! At least show that you know something about J2EE. Applets are NOT servelts (which reside on the server and thus cannot be in your web browser).
    • Derek Sivers photo Servlets != applets
      2004-11-17 10:53:21  Derek Sivers | O'Reilly Blogger [View]

      >> At least show that you know something about J2EE

      I don't know a damn thing about Java and don't claim to. My post was just saying that at least I can start to understand Java examples in OOP books, even though I only know PHP5.
      • Servlets != applets
        2004-11-17 21:08:07  kalim1998 [View]

        Unfortunately, you blamed "servlets", which are a very robust, really cool way of generating serverside stuff for the "sins" of earlier "applets".

        I don't know much about PHP (other than all the code of it i've seen so far look like spaghetti ;-), but its comparison would be more like JSPs (Java Server Pages), or perhaps the Java frameworks like Struts, an open source implementation.
        • Servlets != applets
          2004-11-30 15:35:11  rick73 [View]

          There is a sentence in your article which really made me shout "what the hell is he talking about???!!!! How can he call him self "a guy that just makes websites"??!!! Does this guy know what web developing is all about??

          That sentence says: "Plus Java was often mentioned with that word "enterprise" that always makes me run the other direction, because you know the suits are near.
          Being a guy that just makes websites, I always ignored (or scoffed-at) Java"...

          Brrrrr...!!!!!!

          I think you should stop and take a good time to think about the meaning of "programming languages (aka Java, C/C++, Delphi, Assembler, ecc..)" and "scripting languages (aka PHP, ASP, Python, ecc..)"
        • Derek Sivers photo Servlets != applets
          2004-11-17 21:11:45  Derek Sivers | O'Reilly Blogger [View]

          Yes I wrote Servlets by mistake, but corrected it to Applets within 1 hour of posting.

          Take a new look at PHP5. It's not just for inserting into HTML anymore.

          See my link, up top, for a good example.

Showing messages 1 through 8 of 8.

Return to weblogs.oreilly.com.



Weblog authors are solely responsible for the content and accuracy of their weblogs, including opinions they express, and O'Reilly Media, Inc., disclaims any and all liabililty for that content, its accuracy, and opinions it may contain.

Creative Commons License This work is licensed under a Creative Commons License.



Recommended for You

Advertisement

Sponsored by:

Sign up today to receive special discounts,
product alerts, and news from O'Reilly.
Privacy Policy >
View Sample Newsletter >
  • Youtube
  • http://www.youtube.com/OreillyMedia
  • Twitter
  • Subscribe
  • View All RSS Feeds >
O'Reilly Media

800-889-8969 or 707-827-7019
Monday-Friday 7:30am-5pm PT
©2011, O'Reilly Media, Inc.
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
  • About O'Reilly
  • Academic Solutions
  • Contacts
  • Customer Service
  • Careers
  • Press Room
  • Privacy Policy
  • Terms of Service
  • Writing for O'Reilly
  • Community
  • Authors
  • Forums
  • Membership
  • Newsletters
  • RSS Feeds
  • User Groups
  • More O'Reilly Sites
  • igniteshow.com
  • makerfaire.com
  • makezine.com
  • craftzine.com
  • labs.oreilly.com
  • Partner Sites
  • PayPal Developer Zone
  • O'Reilly Insights on Forbes.com