$PHP = ;
medium.com
medium.com
The only reason i still do php at all is that some clients ask for it. Inertia.
I can, using my imagination, picture a situation were using php is better for someone, for something.
I can also aknowledge that php has been used to create very nice products at the time, including wordpress, joomla and prestashop.
But there is such thing as evolution in programming. And yes, php has been outperformed by several modern dynamic languages out there. There is no shame in it. That's life.
And in spite of my opinions here, I will use languages and tools that I dislike, if that is what the customer needs as a means to solve their problem.
Also just yesterday I found this tweet by the creator of nomadlist which really puts things into perspective :)
https://mobile.twitter.com/levelsio/status/93870716650815488...
Actually some time ago I found some piece of alien PHP code (a backdoor) in my server, and I couldn't understand it! I did't know the $($); syntax. After searching for that and not finding anything I discovery that exist one special Unicode character that is invisible.
Full code here: https://imgur.com/a/Cggdx
Later he asked the audience what language they use, and as everyone blurted out theirs, I blurt out PHP. There was a literal gasp from the audience.
Source: I'm British.
To me, PHP is extremely versatile and powerful.
Turns out, yes, PHP is not a very elegant language and there is still quite a bit of phpclasses style gunk out there to be found. But, PHP has a fantastic mature ecosystem. Projects such as Symfony, Doctrine, Composer, The PHP League and PHP The Right Way, to name but a few, are all great examples of this.
To me, for building business type CRUD apps, PHP is still the most productive.
Flysystem for PHP had been around for almost 5 years prior, and Laravel had it integrated almost 2 years by that point.
There are very innovative things happening in the PHP world that most Ruby/Python elitists don’t even know about. I encourage everyone to take a look.
I hope it is more a case of don't wish to do emojis.
parrot party, parrot party, parrot party
Then I saw the emoji and thought « Ah. One more »
And then finally it was fun.
After 15 years of PHP I went to .net last year. Their are many things PHP gets right and IMO are still better than ASP. For example, configuration is silly weird and complicated in ASP net core, php.ini still handles all the main settings just fine even after all these years.
What do people use it for? Interactive Prodigy games, or trawling AOL forums?
It's a simpler model than trying to make everything thread safe and guess the correct number of threads.
It’s a great time sink.
Rather than blocking the thread on IO, you instead arrange for a callback to be executed once your IO operation is completed. The thread is then free to work on other tasks (e.g. other requests) while that operation is in progress. As a result, the thread is always busy.
The main disadvantages of this are that you are switching from straightforward top-down code to a continuation-passing style (mitigated somewhat by promises and async functions), and the fact that CPU-bound code will prevent other tasks from being serviced during execution.
There are similar facilities available in most languages now (including syntax sugar to help with things, such as C# through the async feature, and F# through the async computational expression), except that you also have the benefit of multiple threads.
"29% of the web uses WordPress" https://wordpress.org/
Are these statements mutually exclusive?