Live data from Hacker News

PHP 7 Released

github.com

211–220 of 317 posts

Re: PHP 7 Released

#211
post #129

Earlier quoted context omitted.

Agree, then again there are different types of people. Some wants to learn from bottom up(analytic approach), others want to see cool stuff then tweak, modify, replace to find the limits (holistic approach). IIRC there is a tendency that young people prefer the holistic approach while teachers either are selected for or grow into preferring the analytical approach.

Really good point! Most of us veterans assume that because we have learned things the hard way and from bottom up, everybody else should learn like that. "Make them suffer like us and they will learn the holy truth" ;D

Whenever I know something well I feel like I'm excited to teach people 'just the good techniques'. I do notice that the things I describe don't sound as cool because they haven't struggled with the less cool stuff, though

Re: PHP 7 Released

#212

Earlier quoted context omitted.

I think the question is why should you bother with PHP at all? It had its time in the history of the web but that time has passed, long, long ago.

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.

WordPress is a big part of it, but PHP goes even beyond that. 81% of all sites are powered by PHP. http://w3techs.com/technologies/history_overview/programming...

Re: PHP 7 Released

#213
post #126

Earlier quoted context omitted.

> Cardboard furniture is great for moving. It isn't because moving implies taking stuff apart and putting it back together again. As you'll find after your move screws won't catch any more, some of your furniture will have been compressed (holes in table surfaces? WTF?, yes this actually happened to me less than 3 months ago). Surface finish is 1/10th of a mm so it'll scratch super easy. That's their 'regular' furnit…

My "cardboard" furniture has solid blocks where screws go. Not wood, but some sort of plywood or something. I have an ikea bed and rack that is made from wood. Lots of their furniture is regular wood. The cheap ones usually untreated.

It's called MDF. You can think of it as high density cardboard, it's mostly wood fibers and resin.

Re: PHP 7 Released

#214
post #44
post #29

Cant wait for php-memcache and a few other extensions to support PHP7 to move our projects

I was waiting and waiting for this as well, but checked homebrew during RC6 and there was a PHP70-memcached, so I took that to mean it had finally caught up?

ext/memcache is not the same thing as ext/memcached.

Yup, there are two, and they are entirely different.

One uses the historic library, the other uses the new library. Why they decided to do it this way is beyond me.

Re: PHP 7 Released

#215
PHP 7 literally cuts the load in half for PHP code which means hundreds of thousands of servers can either now save power or serve nearly twice the number of connections.

win-win

almost as fast as hhvm but much easier to adapt

Re: PHP 7 Released

#216
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…

Oh you can most certainly compile mysql right back into PHP7

Re: PHP 7 Released

#217

I'm actually excited for this release! - Type declarations (this is a HUGE move forwards). - Grouped use statements, not sure if I like how that looks - ?? will shorten statements - Anonymous classes seem a bit odd looking to me - Unserialize filter is a nice security bump Anxious to try it out and see the speed improvements I've been hearing about too.

Anonymous classes are very cool and have a lot of potential uses, which are mentioned at the bottom of the RFC:

https://wiki.php.net/rfc/anonymous_classes

Re: PHP 7 Released

#218
post #62
post #27

Earlier quoted context omitted.

Have you ever worked with php? I have only slightly and it was truly horrible. The library is a complete rubbish. You couldn't create worse one if you tried. The language development is bad. Some developers are bad. Many users are bad. Does these points make the language bad? Yes. New features are incoherent and seemingly random, issues pop in and out (and back in) because tests simply fail, there are unexplainable s…

The library is C's fault. PHP is basically a scripting language around the standard C library. It's what makes it the fastest non-JIT scripting language, but also what makes it so inconsistent.

It's not really a matter of fault. If being a wrapper around C is a problem, it's a problem PHP designers made, for better or worse. That's not C's fault.

Re: PHP 7 Released

#220
post #219

I left the PHP community years ago, but...but...where is PHP 6? What was the reason to skip it?

IIRC this release is so different from the planned 6 release they thought it would be confusing to people who bought/read those PHP6 books.
Post reply on HN