Women in Technology

Hear us Roar

  The PHP Scalability Myth
Subject:   Dude's right!
Date:   2003-10-17 19:19:37
From:   anonymous2
Java bites. I write both Java and PHP. PHP is a LOT more fun. Hardware is cheap compared to developer time. Java doesn't make a lot of sense on the server anyway. Why do you care if your server side code is portable. It won't be anyway, more than likely, even if you write it in Java with all of the configuration involved. How often are you going to move your code from server to server?

Maitainability is DIRECTLY related to how much code you have to write to print "Hello World". If the chosen languge requires ten lines (like Java) to accomplish this, it's going to be a pain to maintain.

The things that matter are how long it takes for your visitor to receive the information they requested from your site and how long it takes you as a developer to deliver the functionality that your boss or client wants.

Full Threads Oldest First

Showing messages 1 through 10 of 10.

  • Dude's right!
    2004-11-09 12:15:15  igouy [View]

    "The Great Computer Language Shootout" has been revived at<br/><br/>

  • Dude's right!
    2003-11-19 18:43:56  anonymous2 [View]

    This thread reminds me of Daffy, Buggs, and Elmer:

    It's duck season!
    It's rabbit season!
    Duck season!
    Rabbit season!

    * Blam! *

    While readjusting your beak, take a look at the link in the article to the Computer Language Shootout, specifically http://www.bagley.org/~doug/shootout/craps.shtml

    Adjust your weightings to what is important to you then see where your language falls in the rankings.

    • Dude's right!
      2004-01-08 03:25:03  anonymous2 [View]

      I tried to run some scripts I found on that site. For example, ary3 script. The site says it takes about one second by Java and more than 50 seconds by PHP. On my Linux PC it takes about one second by Java and only 5 seconds by PHP. Of course my CPU is faster than the one used for the shootout tests but ask to yourself: which language scales better when I increase hardware resources?
  • Dude's right!
    2003-10-17 19:58:30  anonymous2 [View]

    System.out.println("Hello World");

    Oh yea, 10 lines.. Maybe you need to learn to count.

    • Dude's right! and you're wrong
      2003-12-10 02:51:46  anonymous2 [View]

      echo "Hello World"

      I don't know Java and don't profess to. Plus I'm a hobbyist who's still learning (always learning!) but even I can see that PHP is going to be easier to script...
    • Dude's right!
      2003-10-18 01:23:46  anonymous2 [View]

      Not to be disrespectful, but I do think you left out a few things.
      For just a terminal

      class HelloWorldApp {
      public static void main(String[] args) {
      System.out.println("Hello World!"); //Display the string.

      For an Applet
      import java.applet.Applet;
      import java.awt.Graphics;

      public class HelloWorld extends Applet {
      public void paint(Graphics g) {
      g.drawString("Hello world!", 50, 25);

      For a Java Bean
      package org.acme;

      import java.rmi.RemoteException;
      import javax.ejb.*;

      public class HelloBean implements SessionBean {
      private SessionContext sessionContext;
      public void ejbCreate() {
      public void ejbRemove() {
      public void ejbActivate() {
      public void ejbPassivate() {
      public void setSessionContext(SessionContext sessionContext) {
      this.sessionContext = sessionContext;
      public String sayHello() throws java.rmi.RemoteException {
      return "Hello World!!!!!";

      • Dude's right!
        2003-10-19 00:32:44  anonymous2 [View]

        but then a JSP?
        <% out.println("Hello world"); %>

        pretty much the same as php isnt it...
        • Dude's right!
          2003-10-20 15:01:28  anonymous2 [View]

          Look into webserver generated files, what it makes with your 1 line - 1,2,3 or more classes???
          • Dude's right!
            2003-10-21 07:22:48  anonymous2 [View]

            It doesn't matter what it generates server side. Because you don't have to write that or maintain it.

            JSP and PHP are very similar. Personally, I think that whenever your language has <% } %> in it you're doing something wrong. That's why I don't do PHP, and why I don't do Model 1 JSP.

            ZPT *is* the best page templating language around. I just wish it was available for Java. Zope sucks.
            • Dude's right!
              2003-11-10 13:37:48  anonymous2 [View]

              You should check this out: http://phptal.sourceforge.net/