Live data from Hacker News

PHP 7 Released

github.com

281–290 of 317 posts

Re: PHP 7 Released

#281

Earlier quoted context omitted.

Doesn't holistic approach just make sense? It's not like you learned to speak with your parents reading you the dictionary beginning with the letter A.

The approaches aren't exclusive either, you can start "holistic" and then learn more by going "analytic" afterwards, once you have the gist of things.

Agreed, this is my preferred way of learning.

Re: PHP 7 Released

#282

Earlier quoted context omitted.

I work for a shared hoster and can confirm that PHP works great on IIS6 (with FastCGI add-on installed) and IIS7+.

Yeah, but this is what it actually says: If you need to run your production system on Windows then IIS7 will give you the most stable and best performance. So it seems to be recommending IIS7 specifically, IIS 7.5, IIS 8 and IIS 8.5 have come out since then. So it is a bit like saying you should run this software on windows vista for best performance. IIS7 is old software. I guess I'm asking, have the IIS team given…

That page is way out of date. There's not really much IIS does other than hand off requests to a new or already warmed up php-cgi.exe (via the FastCGI bits). The performance stuff is really more down to the PHP maintainers (though Microsoft have contributed, and continue to do so).

The only pain point can be when there's a new release of PHP and you have customers who want to access MS SQL databases. This is done via Microsoft's own drivers [0] (Windows only). It's not been unknown for these driver releases to lag a bit behind PHP releases, but that said I see they're on the ball now with support for 5.6.

Other than that PHP runs just as quick and as reliably on Windows as it does on our Linux shared environments (I look after both).

[0]: https://www.microsoft.com/en-us/download/details.aspx?id=200...

Re: PHP 7 Released

#283
post #264

Earlier quoted context omitted.

Yep. PDO still leaves room for string concatenation issues. Unfortunately, so does Doctrine.

Do you know any good PHP database frameworks that help you build up the query programmatically? Over the years, we built one in-house at http://qbix.com/platform/guide/database because we couldn't find one. It does things like sharding out of the box, because it's able to understand the query's criteria and target it to the right shards.

Laravel at least has Query Builder: http://laravel.com/docs/5.1/queries

As an interesting side note: Laravel's AR ORM (=Eloquent) is built on top of the Query Builder so you can leverage Query Builder with AR if you know what you're doing. Can also lead to big problems if you don't realize the possibilities and the caveats.

Re: PHP 7 Released

#284
post #7

PHP 7 makes life a lot better for PHP devs in many ways but one awesome thing is it obsoletes bunch of out-of-date tutorials by finally removing the old Mysql extension \o/ http://php.net/manual/en/migration70.removed-exts-sapis.php I actually met a young aspiring web developer who still learned DB-access with mysql_* functions. I urged him to switch to a sane framework like Laravel. Oh boy he was happy in a month an…

I am an experienced programmer but I've only touched PHP a few times, years ago. What are the best books or tutorials to get an overview of modern PHP?

If you're into videos, then Laracasts is awesome :)

Re: PHP 7 Released

#285

Earlier quoted context omitted.

Wordpress alone runs 25%+ of all websites. PHP's time is clearly still now. I probably won't bother with PHP, but it can't hurt to keep my idea of what it's like up to date. It's only technology, no need to be fanatical about it.

To be fair, don't just down vote the parent comment because your don't like someone bashing php; it's a pretty reasonable question to ask. Most people don't actually know that php powers such a large portion of the internet, because globally there's waning interest in php ( http://www.tiobe.com/index.php/content/paperinfo/tpci/PHP.ht... ) and it's generally dreaded by developers ( http://stackoverflow.com/research/de…

Honestly I see more (well paid) php offerings than other rogramming languages. And most of it is not wordpress work.

Re: PHP 7 Released

#286

Earlier quoted context omitted.

And every php developer would wish that suddenly all php in the world upgrades to v7. We are years away from 7 having a big penetration in the ecosystem. And years more till it hits enterprise.

We will be going live with v7 as soon as I test it on the dev servers, so probably this week. Not everyone is so slow.

Who is we?

Re: PHP 7 Released

#287
post #266

Earlier quoted context omitted.

Laravel is an excellent Rails clone, but the entire problem with Laravel is that it's a PHP framework. I've been a PHP dev for 15 years and the biggest issue with frameworks in PHP is PHP itself. A request comes in, the PHP process loads up everything, executes the request and tears down...on every single request. In just about every other language, the application boots up, loads everything into RAM and each individ…

With caching, this is actually not such a big problem. The isolation is very good for resilience. Compare, for example, Node.js where a single exception can bring down your entire process and all the requests it's currently executing. Is Laravel really a Rails clone? I thought that was Symfony. I honestly don't understand why the most popular PHP frameworks are all Rails clones. In my own work, I made things more in…

That's not a bad thing fwiw. Rails is popular for a reason.

Re: PHP 7 Released

#288
post #243

Earlier quoted context omitted.

It's not uncommon for released to be re-tagged, too.

and if you do this you deserve to burn in a fiery pit for being a bad bad bad release manager If you tag a commit you better stick to your guns and never change it. You can't just re-tag or re-roll your releases because you found a bug. Bugs happen. Increment your version number, cut/tag a new release, and move on. You will never have a perfect release. Ever.

[deleted]

Re: PHP 7 Released

#289
post #247

I use PHP for my freelance work mainly because I have no option on hosting. I never got the appeal for PHP (besides being cheap to host). All my personal projects are either done in Python or Node + (Angular, react & now Vue) Python: PURE elegance Node: io breeze PHP: ? Q: is the "module" system still achieved by dumping file content or is there a linking system?

Just curious, why do you have no option on hosting? I got into PHP many years ago for this exact reason - it was the easiest language to use on low-cost shared hosting. But these days you can get a decent VPS (where you have root and can use any language) for $10-$15 a month, which is exactly what I used to consider "low-cost hosting".

Re: PHP 7 Released

#290

Earlier quoted context omitted.

Who cares about the coding language when the market is telling you otherwise? Isn't that the very essence of starting a startup, YCombinator, the whole Silicon Valley mantra? Listen to your customers. The customers are telling you PHP is preferred to other languages and is here to stay as evidenced by 25% of the web using a single PHP application as the backend.

No the customers are saying they like the product (wordpress). They couldn't give a rat's ass what it's written in.

I won't argue that the language makes the framework popular. But if Wordpress serves 25% of the entire web, Facebook serves 1/7th of the entire world population every single day, and 500M people visit Wikipedia a month, clearly something about PHP works. Perhaps it attracts a certain kind of personality that gets things done, or perhaps its flexibility is what makes it successful, but to call the most influential programming language of this generation pig guts is willful ignorance.
Post reply on HN