30

Guys, stop with the general PHP hate.

Fine, abuse 5.x all you like, but leave 7.x alone.

Those who rant about it in general obviously haven't used 7.x or a decent framework like Laravel.

Comments
  • 1
    general PHP hate wut? 😱
    i joined only few days ago, what have i missed?
  • 0
  • 0
    @danharrin oh, wouldnt take that too serious, but 'general php hate' sounded bit heavy haha
  • 3
    @danharrin PHP7 looks to be a significant improvement on 5.

    Shame there's so much PHP5 legacy code in the wild.

    Better late than never, but it's been over a decade of PHP5 being the standard, so although the building blocks are there for things to change, it's going to be a long time before all the old code is ported.

    That said, if older projects can be confirmed as compatible with PHP7, the speed improvements will be significant.

    I reckon about 70% of WordPress plugins are going to take a long time to be updated.
  • 3
    Upgraded my servers today to Ubuntu 18.04LTS. No more support for PHP5. Hurray!
  • 2
    @danharrin The thing is though, for so many years PHP has been an illogical mess that lingers like a fart in the fog.

    Yes, PHP7 has the potential to massively improve things, but the reputation is going to hang around for a while yet.

    Imagine a company that makes staplers always testing them by stapling rabbits to pigeons. Obviously this isn't ideal, but if you need a stapler, at least you know it will work.

    They could change their strategy, and test them by stapling paper to more paper, but the rabbit/pigeon reputation is going to take a while to shake off.....

    Yes, I think that makes my point well enough without seeming fucking odd.... definitely..... :/
  • 0
    @oudalally well... 😂... my point is that you shouldn't just spread hate on a platform that has had a major change recently for the better... they need to do their research... I totally get what you're saying though about reputation hanging around.
  • 0
    @oudalally one more thing... any WP plugin that isn't compatible with 7.x right now isn't worth using.
  • 0
    @danharrin WP is an abomination.... just sayin'
  • 1
    How about i hate php exactly because i had the misfortune to use it
  • 0
    @oudalally its horrific. I use OctoberCMS instead - soooooo much more developer friendly. What you you use?
  • 0
    @sharktits but what version did you use?
  • 0
    @danharrin Been working with CMS Made Simple, but I'm starting to think that it's a pile of shit, and really difficult to work with.

    Been looking at switching to October actually - did some reading up on it today and I think it will be straightforward to port my theme to it.
  • 0
    @oudalally it's brilliant... and it has a great Slack community if you get stuck. So so sooo easy to make custom functionality, you won't turn back!
  • 0
    @danharrin I'll run up a testing stack next week I think. Had enough tonight.
  • 0
    @oudalally hit me on october [at] danharrin.com if you need anything.
  • 0
    So have they build in a proper routing system and a proper template g engine, or do they still insist on making it more difficult to be new to the language?

    And have they also fixed all the inconsistencies in the language yet?
  • 1
    @danharrin both 5.something and 7.1
  • 0
    @sharktits what didn't you like about 7.x? Keep 5.x out of this, it's obsolete now.
  • 1
    I have to explain this every other week, ill really make a website dedicated to why php is bad one day.
  • 0
    @sharktits I would like to see that.
  • 0
    @sharktits if you do you should make a repo for it so others can come and add stuff 😀
  • 1
    @inaba PHP was originally built as a templating engine around C. Implementing a template emgine in a template engine seems rather redundant and illogical.
  • 3
    "foreach array as item" instead of "for item in array". "explode( delimiter, string )" instead of "split( string, delimiter )". Does php7 still force you to think backwards everytimw you have to use a function? That's my main issue with php5.
  • 2
    Although I don't find php useless, its syntax disgusts me.
  • 2
    Leave PHP alone!!
  • 1
    TL;DR: Languages like Python or Ruby were designed, PHP just happened. - cite from Reddit guy.

    PHP was not meant to be used the way it is now, what we've got is language build on fixes whose were build on fixes.

    It's not even a language anymore it's more of a framework on it's own there are a lot of things in php that will work differently depending on the configuration and compilation which makes it nearly impossible to create a well structured application that will work the same under every environment. Try running a few different php applications under a single configuration and php version IMPOSSIBLE.

    That said I <php> for £
  • 1
    @soulsuke @hell I understand that there are still syntax improvements to make... but 7.x has fixed a ton of issues that were present 5.x. I'm sure that future versions will fix these.
  • 1
    @danharrin The class handling surely did improve in 7, but it's still too procedural for my tastes... But my opinion is sort of biased, Drupal made me hate php XD
  • 0
    @soulsuke that explains it then lol 😂 if you use Laravel, its completely OOP-based and much better to use than a procedural structure.
  • 0
    @theMaintainer originally build. It has deviated so much from what it originally was that Zend would do people a favour to implement it. Its far from redundant and illogical since it would help reducing the amount of spaghetti still being made.

    The fact that every file is an endpoint pr default is also incredibly dumb
  • 0
    @soulsuke htmlentities and html_entity_decode are still the inverse of each other with different cases
  • 1
    The only thing I hate about PHP is that the acronym contains the acronym.

    “PHP: Hypertext Preprocessor”
  • 0
    @mileslemon very true lol
  • 0
    @danharrin will they ever get rid of $ and -> ?
  • 0
    @hell also stop having the entire standard library in global scope
  • 0
    @hell @inaba yes, PHP has its quirks, but doesn't every language?
  • 1
    @danharrin they're not just quirks though since that implies that it's not anything serious. And the fact the fact that there are so many examples of said "quirks" isn't that good either
Your Job Suck?
Get a Better Job
Add Comment