Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default PHP: a fractal of bad design

    http://me.veekun.com/blog/2012/04/09...of-bad-design/

    Recommended reading. Note, I've worked with PHP for over 7 years so don't think I'm hating on PHP without ever using it myself.

  2. #2
    Join Date
    Jan 2011
    Location
    England, United Kingdom
    Posts
    253
    Tokens
    40
    Habbo
    Pegle

    Latest Awards:

    Default

    His analogy made me laugh

    But like he said, it still works somehow and people build quite good things with it.


  3. #3
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    I actually read this the other day when it was posted on Hacker News. I agree with it, and like you Tomm, we both have used PHP for quite a number of years... yet I look back on it and see many of the faults that I never saw before.

  4. #4
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Best comment taken from that site:

    Blah blah blah. Aren't we old enough to finally stop ranting about how "bad" PHP is? There are already more articles out there about this topic than we need.

    One thing I can't understand is why people like you are ever bothering with crap like PHP if you hate it so much (a non-hater wouldn't have written a post like this)? Use some other superior, or "better" for that matter, language, like Python or Ruby if PHP is that bad. No language will be ever perfect. C, C++, Java, etc. they all have their shortcomings. You just have to dig a bit deeper to find them.

    PHP is good for what it is. It was never intended to be what it is now (a major web development language) hence it's maybe not as structured or as shiny as you would like but there must be a reason why there are so many people using it.

    Having been a PHP dev for around 8 years, I do agree with most of your points but, let's be honest - you haven't said anything we didn't know. My advice is - don't like it, don't use it. No one's forcing you into using it.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

  5. #5
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    PHP is good for what it is. It was never intended to be what it is now (a major web development language) hence it's maybe not as structured or as shiny as you would like but there must be a reason why there are so many people using it.
    This seems like just an excuse. PHP was never intended to be a major web development language? Err... maybe not major, but that's exactly what it was intended to be.

    It was never intended to have CLI capabilities nor be involved in standalone desktop applications, but it evolved to be that. So yes, for those purposes it is "good for what it is".

    I agree with the first half of that paragraph, don't bother with it if you hate it so much... but the excuse that poster gave is completely wrong.

  6. #6
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice View Post
    Err... maybe not major, but that's exactly what it was intended to be.
    It wasn't designed to build shopping carts, forums, encyclopaedias or any large-scale site, it was designed initially as macros for personal homepages not to communicate with databases, maintain sessions or be used for intricate scripts. Hardly a full web development language.
    Last edited by Chippiewill; 15-06-2012 at 07:32 PM.
    Chippiewill.


  7. #7
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    "PHP Tools" was not designed to do any of that, but if you'll notice PHP Tools is not the same as PHP. PHP Tools didn't even have basic working functionality such as good working loops. Now, what we consider PHP today was designed for all of this, the "real" PHP started with PHP3 when it was completely rewritten to support all these features which established it as a different product altogether from the original "PHP Tools".

    So you're right and wrong. You're correct in the sense that PHP Tools was not designed to do any of that, but PHP actually was.

  8. #8
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    And the relics of the syntax lived on regardless because they wanted it to be a sequel and essentially it was built on the pre-existing foundation of it being an easy language. It might have been a recode but it certainly was not a redefinement of the principle.
    Last edited by Chippiewill; 15-06-2012 at 07:43 PM.
    Chippiewill.


  9. #9
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    We're not arguing syntax here, we're arguing what the language was designed for and it seems that you can't handle being proven wrong. The language was designed for those things that you said that it wasn't designed for.

    So instead of just acknowledging that you are wrong, you change to a completely different stance on syntax... you have a lot to learn kid.

  10. #10
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice View Post
    The language was designed for those things that you said that it wasn't designed for.
    No, the language was designed to be easy to get into. The uses of the language in a good way were ultimately a secondary objective as is shown by the overly flexible nature of PHP. The result? A sub-par language with many inadequacies because they were too busy trying to please people who don't want to do things properly.

    Don't want to indent? Who cares, just stick it all on one line if you want.
    Don't want to use brackets on if statements and stuff it all on one line? Go ahead, it might hurt readability and cause issues when expanding if statements into multiple lines but we don't want stuff breaking more than it needs to.
    Undefined variable? Make a cute little error and keep on going like nothing happened, no need to upset the programmer.

    PHP was designed to keep on chugging on at all costs FIRST, web development SECOND leading people to learn bad practices and just disable error reporting when they can't be bothered to fix a minor error.

    Quote Originally Posted by Dentafrice View Post
    So instead of just acknowledging that you are wrong, you change to a completely different stance on syntax... you have a lot to learn kid.
    And what's with the ******* attitude recently anyway? You think because you work in the business for real now you suddenly get to decide who's right and who's wrong about stuff? Get a grip and stop insulting anyone who's trying to make a start around this place because you used to be a positive influence here, I can't say much to that recently with hurtful put-downs and non-constructive feedback. Half the posts you've made in technology discussion have been flaunting about the fact you have a job and the ones in here have all been about how you're so professional and have such a fantastic work ethic that you can't be doubted. Fact is I don't have to respect or even acknowledge your opinion and I doubt I will any-more until you quit being so condescending. You're hardly the only web developer and you're far from the best.
    Chippiewill.


Page 1 of 2 12 LastLast

Posting Permissions

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