Live data from Hacker News

PHP 7 Released

github.com

291–300 of 317 posts

Re: PHP 7 Released

#291

Earlier quoted context omitted.

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 pro…

Or perhaps it was easy to learn for novices, or easy to deploy...

This is a straw man. Citing 2 popular web sites and 1 application doesn't mean PHP is a well designed language. You could just as well have picked 2 other web sites written in Java to argue that PHP is rubbish.

I wouldn't even call it influential, unless language developers have been inspired about how not to design a language. Popular, yes, but not influential. I don't see anything from it being incorporated into other languages. It generally seems to have been playing catch up in terms of features, in a similar way to javascript (where there it's less about catch-up and more about breaking out of the browser & supporting OO).

Re: PHP 7 Released

#292
post #283
post #264

Earlier quoted context omitted.

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.

Like what kind of problems?

Re: PHP 7 Released

#293
post #62

Earlier quoted context omitted.

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.

So are Lua and Python and Ruby, but they're not "inconsistent".

That's a matter of perspective. Inconsistency is not objective and Lua has PLENTY of warts (46 max upvalues?)

Re: PHP 7 Released

#294
post #229

Earlier quoted context omitted.

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.

Yeah, I know there are two. I was under the impression that the original (memcache) was abandonware. How much difference is there between the two to migrate from php-memcache to php-memcached? edit: never mind, I'm going to figure this out by using the internet!!

This symfony bundle https://github.com/LeaseWeb/LswMemcacheBundle uses specifically the php-memcache extension. Thats why we need it

Re: PHP 7 Released

#295
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.

Tagging a PHP release doesn't mean finalising it. That's when the tarballs go up and the email goes out.

Re: PHP 7 Released

#296

Earlier quoted context omitted.

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.

Pretty much every job seeker website disagrees with this assertion...

...but to be fair, international sites may not reflect local conditions in your particular area.

In mine, I see virtually no php related jobs.

Still, stats show it as roughly 1/5 as 'in demand' as C# or java, generally.

Re: PHP 7 Released

#297

Earlier quoted context omitted.

> instead of playing to the language's advantages and using light-weight tools and libraries that would allow them to move faster. Depending on what you mean by "move faster", I may have to disagree. Besides a one-off script, I can't envision a scenario where using "tools and libraries" would allow you to move faster than using Laravel. Laravel comes with an unbelievable amount of stuff done for you, right out of the…

Until you hit something the framework wasn't design to do (which happens 100% of the time in my experience). Now you're working for the framework instead of it working for you. This guy said it better: “Frameworks invert control. They control the lifecycle of the app, and give you entry points where your code runs. You’re still responsible for the final code, but you’re not in control.” https://aerotwist.com/blog/the…

Can you give an example of something you would like to do that a framework like Laravel won't let you do or you feel like you have to fight against?

Re: PHP 7 Released

#298

Earlier quoted context omitted.

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

Pretty much every job seeker website disagrees with this assertion... ...but to be fair, international sites may not reflect local conditions in your particular area. In mine, I see virtually no php related jobs. Still, stats show it as roughly 1/5 as 'in demand' as C# or java, generally.

Probably large part of it is an America vs Europe thing.

Re: PHP 7 Released

#299

The one thing I'd love to see is a native concurrency story with PHP. I'd put my vote in specifically to have Communicating Sequential Processes. I think that feature alone would take the language to another level. I know they've got stream_select, et al. and I've really enjoyed pecl event, reactphp, and of course there's HackLang's Async / Await if you want to convert, but having some modern / native constructs woul…

PHP has pthreads which are slowly becoming a real thing. There are a few relatively non-minor stumbling blocks in the way, but I imagine that it'll be only 12-18 months between when it can be a priority and when it'll be part of PHP. I expect you'll be able to do true concurrency in PHP in the next ~3 years.

Ah yes, thanks for reminding me. I do recall coming across this project in the past, but never followed its progress. For some reason I decided against exploring further. I think it may have been disclaimers that stated it was still experimental (even though pecl had it listed as stable).

Re: PHP 7 Released

#300
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".

I live in Africa & $10 * 12 = $120/year is way too expensive --- when I say cheap, I'm talking about $3/month (shared, 20GB bandwidth, 1GB storage, MySQL / PgSql)

Hostgator, Godaddy...

Post reply on HN