Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Why is PHP bad

  1. #11
    Join Date
    Feb 2015
    Location
    Denver, Colorado
    Beans
    34
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Why is PHP bad

    I find it great how people are responding about how "fabulous" PHP is when you pointed out the phrase
    Now imagine you meet millions of carpenters using this toolbox who tell you “well hey what’s the problem with these tools? They’re all I’ve ever used and they work fine!” And the carpenters show you the houses they’ve built, where every room is a pentagon and the roof is upside-down. And you knock on the front door and it just collapses inwards and they all yell at you for breaking their door.
    It just makes me laugh harder xD

    -Wyz

  2. #12
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Why is PHP bad

    Speaking as someone for whom programming doesn't come naturally, I love PHP. I'm probably one of those "newbies" making mistakes all the time, but I'm really trying my best to do things efficiently and, when interfacing with MySQL to use prepared statements and validate input before shoving it into the database. I'm trying to learn Python now on CodeAcademy, and that's fine... but PHP just makes more sense to me, for some reason. A simple example is being able to plop a bunch of variables inline with text without having to put in %s placeholders.

  3. #13
    Join Date
    Oct 2005
    Location
    Connecticut, USA
    Beans
    1,545
    Distro
    Ubuntu

    Re: Why is PHP bad

    I prefer PHP over ASP.NET.

    Annoyingly, the best PHP IDE I have used is strangely from Micorosft; WebMatrix 3.
    Friends don't let friends wear a red shirt on landing-party duty.
    DACS | Connecticut LoCo Team | My Blog
    Ubuntu User# : 17583, Linux User# : 477531

  4. #14
    Join Date
    Jan 2014
    Beans
    Hidden!
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Why is PHP bad

    It is not bad at all, I'm java programmer but i'm using php for my personal web sites. I don't have too much time for my personal projects and on php is enough to change / upload the file to have the change up and running.
    In my opinion the php looks ugly beacuse we don't have any good IDE like other languages (I'm using Netbeans).
    So, php is not bad at all.
    looking for a Low End Dedicated Server ?
    hobby to be anonymous, web proxy list and proxy list

  5. #15
    Join Date
    Oct 2005
    Location
    Connecticut, USA
    Beans
    1,545
    Distro
    Ubuntu

    Re: Why is PHP bad

    Quote Originally Posted by nilla78ro View Post
    It is not bad at all, I'm java programmer but i'm using php for my personal web sites. I don't have too much time for my personal projects and on php is enough to change / upload the file to have the change up and running.
    In my opinion the php looks ugly beacuse we don't have any good IDE like other languages (I'm using Netbeans).
    So, php is not bad at all.
    Netbeans has a PHP plug-in, but not sure how much better that is than gEdit with the file listing on the side.

    But I agree, Linux needs a good (preferably non-Java based) open source PHP editor. Maybe even one that integrates a web server back-end for debugging (without having to run a web server all of the time or go through manually installing/scripting and running the server components).
    Friends don't let friends wear a red shirt on landing-party duty.
    DACS | Connecticut LoCo Team | My Blog
    Ubuntu User# : 17583, Linux User# : 477531

  6. #16
    Join Date
    Mar 2015
    Beans
    0

    Re: Why is PHP bad

    For me PHP is easy to use, it's my favorite

  7. #17
    Join Date
    Jul 2014
    Beans
    25

    Re: Why is PHP bad

    1. Bad recursion
    2. Many PHP-modules are not thread safe
    3. PHP is crippled for commercial reasons
    4. No namespaces
    5. Non-standard date format characters
    6. Confusing licenses
    7. Inconsequent function naming convention
    8. Magic quotes hell
    9. Framework seldom used

  8. #18
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: Why is PHP bad

    Quote Originally Posted by Sasha_Aderolop View Post
    1. Bad recursion.
    PHP applications rarely need recursion at all.

    2. Many PHP-modules are not thread safe
    Which ones? There are dozens. Does this include the most common modules for things like MySQL, PostgreSQL, mcrypt, IMAP, etc.? Or does it apply mostly to less-common and less well-supported modules?

    3. PHP is crippled for commercial reasons
    Evidence? What does "crippled" mean? Are you talking about the relationship with Zend? How has that "crippled" PHP?

    4. No namespaces
    And the consequences of that are?

    5. Non-standard date format characters
    True, but you get used to it, or you just bookmark the documentation page for date() as I did.

    6. Confusing licenses
    Examples? The main codebase uses a BSD-style license. Some modules may have different licenses if they interface with commercial products, I suppose. I don't see anyone objecting to distributing PHP on open-source platforms. If the licenses were more restrictive, Debian wouldn't support it.

    7. Inconsequent function naming convention
    I find the naming less important than the inconsistencies in argument order.

    8. Magic quotes hell
    Who uses magic quotes? I gave up on that long ago and wrote a class of functions to handle transactions with the database. The functions add quotes when needed. Magic quotes was always a kludge that anyone with much PHP experience knows to avoid.

    9. Framework seldom used
    I don't know what this means.
    Last edited by SeijiSensei; March 17th, 2015 at 09:51 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •