Professional PHP

PHP Programming, Web Development, PHP Advocacy and PHP Best Practices.
« Modularity
Why is PHP Popular? »

Classpath Considered Harmful

April 26th, 2004

I am glad to see I am not the only one who has problems with classpaths in java. Many of the advantages that python has over java, PHP has as well. Lack of classpath is certainly one of them, but dynamic typing is my favorite.

Filed Under

  • PHP

Related Posts

  • Exceptional PHP
  • goto in PHP
  • Happy 20th B-day Corewars
  • Why is PHP Code Considered Hard to Maintain?
  • James Gosling on PHP
You can leave a response, or trackback from your own site.

11 Responses to “Classpath Considered Harmful”

  1. Harry Fuecks says:
    4/27/2004 at 2:42 am

    Comparing PHP with Python is an interesting experience; there is alot of common ground, although Python aims to be a general purpose language while PHP targets web applications. The other division on typing is strong vs. weak and I think it’s fair to say Python is strongly typed while PHP is weakly typed e.g.;

    Python;

    $myInt = 4;
    print "The number is "+myInt; # Illegal interpolation
    print "The number is "+str(myInt); # Cast to string

    PHP;


    myInt = 4;
    print "The number is ".$myInt;

    That works in PHP’s favor when it comes to generating HTML while, at the same time, more effort is needed if you want to validate a submitted variable, to check it’s an integer.

    Python generally feels “better rounded”; there are many things I’d love to see in PHP, import in particular plus things like distutils and the notion that everything is an object.

    At the same time think PHP’s class syntax is preferable, hiding you from the fact that the interpreter really regards objects as glorified hashes while Python requires you specify the self reference inside a class.

    Also Python hasn’t got databases nailed down yet, at least when it comes to using a DB to “drive” a website. John Lim is working on porting ADOdb to Python: http://php.weblogs.com/adodb_python

  2. Die wunderbare Welt von Isotopp says:
    5/2/2004 at 4:24 am

    Static vs. dynamic typing
    Irgendwann Ende der 80er fiel mir ein Zortech C++ Compiler in die Hand. Den mochte ich, weil er anders als das cfront auf dem AIX ein nativer Compiler war. Ich habe also das VP/ix in meinem SCO Xenix hochgefahren, ein MS-DOS rein installiert und ein wenig

  3. Longpoke says:
    11/30/2010 at 5:55 am

    If you don’t like classpath, make your own class loader that uses a different method, it takes less than an hour… Just don’t be a retard and search the current working directory like Python does.

  4. Margene Yamane says:
    6/17/2011 at 5:58 pm

    naturally like your web-site but you have to check the spelling on quite a few of your posts. A number of them are rife with spelling issues and I uncover it quite bothersome to tell the truth nevertheless I will surely come back once more.

  5. Normand Kilger says:
    10/26/2011 at 9:09 am

    Just how long are you currently applying this style? I was seeking something such as the idea for my own blog site.

  6. Andreas Granholm says:
    12/27/2011 at 4:12 am

    Thumb upThumb down 0

  7. Curtis Hunkele says:
    1/1/2012 at 7:54 pm

    Great post, I believe website owners should larn a lot from this blog its rattling user pleasant. So much excellent info on here :D .

  8. Nathanael Sladek says:
    1/5/2012 at 12:08 am

    Congress, You are letting the 1% stomp the rest of us flat.motovehicles

  9. Denese Scheinost says:
    1/10/2012 at 5:09 am

    I like that it is wireless!

  10. Raina Hanusey says:
    1/13/2012 at 8:10 am

    A good piece of content.

  11. hotele spa says:
    3/15/2012 at 9:55 am

    Superb weblog right here! Additionally your website loads upward fast! What host are you currently utilizing? Can I get the affiliate marketer connect to your host? I wish my personal website loaded up as quick as your own hehe

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

    • Working with PHP 5 in Mac OS X 10.5 (Leopard)  258
      Tuan Lal, Lavagem de estofados, Edward L. Kind [...]
    • php | tek 2008  36
      how to mend ice machine, Akademija Debelih, Odbacena [...]
    • goto in PHP  59
      kasor, Thomas Valdivieso, Murray Ziadie [...]
    • Firefox Extensions for Web Developers  33
      kasor, Website Design Toronto, mobila bistrita [...]
    • Why PHP is easier to learn than Java  68
      kasor, Justina Calvery, Guy Lipton [...]
    • Meta Tag Refresh Faux Paux  43
      html email templates, E-Juice Reviews, image [...]
    • Improved Error Messages in PHP 5  49
      Carroll Tina, Przeprowadzka, Emery Harari [...]
    • Benchmarking PHP's Magic Methods  33
      kayu oyunlar?,dora,oyun,oyna, Benjamin Bejjani, paypal website [...]
    • Microbenchmarks of single and double qouting.  24
      kefir grains minneapolis, sexshop dildo, tuim688 [...]
    • PEAR Templates  17
      Kandice Sansing, car insurance estimates for teenagers, Dale Brence [...]
  • 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