Live data from Hacker News

What PHP 5.5 might look like

nikic.github.com

31–40 of 139 posts

Re: What PHP 5.5 might look like

#31

No matter how much PHP is improved upon, until there is a serious contender framework for it like Rails or Django, PHP will continue its route to extinction. Dinosaurs were once big and powerful. They dominated the landscape. They don't exist anymore.

No matter how much PHP is improved upon, until there is a serious contender framework for it like Rails or Django, PHP will continue its route to extinction. I'm not sure if you're serious, but there are plenty of frameworks on a par with Rails at least (nb: I have zero experience with Django). At the enterprise level, there's Symfony or Zend: http://symfony.com/ http://www.zend.com/ If Rails is your thing, CakePHP s…

Please don't recommend CodeIgniter. I'm not normally one for swathing "x is bad" judgements, but CI is simply not in the same league as the other frameworks you mentioned.

Re: What PHP 5.5 might look like

#32

17 years old and a PHP Internals tinkerer... Awesome work Nikita, keep it up!

Yes, indeed. I was blown away when I read his about page. So many people yap about their years of knowledge and that PHP has all these problems and can be fixed this way and that way, but when told to shut up and fork the language and do it. They say "I can't, because I don't know C', yet this 17 year old is doing just that.

Kudos.

Re: What PHP 5.5 might look like

#33
post #31

Earlier quoted context omitted.

No matter how much PHP is improved upon, until there is a serious contender framework for it like Rails or Django, PHP will continue its route to extinction. I'm not sure if you're serious, but there are plenty of frameworks on a par with Rails at least (nb: I have zero experience with Django). At the enterprise level, there's Symfony or Zend: http://symfony.com/ http://www.zend.com/ If Rails is your thing, CakePHP s…

Please don't recommend CodeIgniter. I'm not normally one for swathing "x is bad" judgements, but CI is simply not in the same league as the other frameworks you mentioned.

Please don't recommend CodeIgniter. I'm not normally one for swathing "x is bad" judgements, but CI is simply not in the same league as the other frameworks you mentioned.

I wouldn't have a few years ago, but the current version seems decent enough. Out of interest, what're your main complaints with it?

I'm not a huge fan of CI, but would prefer it to my personal bugbear, CakePHP.

Re: What PHP 5.5 might look like

#35
post #6

The introduction of list comprehensions is nice and should replace numerous functions. For example, I'm not sure why they're adding the array_column function into PHP 5.5 at the same time as list comprehensions as: $names = array_column($users, 'name'); // is the same as $names = [foreach ($users as $user) yield $user['name']]; The only possible reason would be due to a significant speed difference, but I'd suggest i…

I, for one, never understood why there was no "default" keyword available, but the python example is great as well. About the rest of the article : - the modified empty() is nice, while I still think this function accepts to much thing as empty, or at least should be more flexible. Getter/setter : finally. Now I don't get why there is no readonly keyword which would put the variable as readonly only for the class' ou…

The article clearly states that there are more features like a read-only keyword.

https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented

Re: What PHP 5.5 might look like

#36
post #26

Earlier quoted context omitted.

No matter how much PHP is improved upon, until there is a serious contender framework for it like Rails or Django, PHP will continue its route to extinction. I'm not sure if you're serious, but there are plenty of frameworks on a par with Rails at least (nb: I have zero experience with Django). At the enterprise level, there's Symfony or Zend: http://symfony.com/ http://www.zend.com/ If Rails is your thing, CakePHP s…

There's also Slim: http://www.slimframework.com/ ...which you could equate to something like Python's Flask (I think... I only have limited experience with Flask).

We used Slim to build a RESTful API for our product. It was a great experience. Really lightweight, yet the perfect amount of structure to make an easily extensible API.

Re: What PHP 5.5 might look like

#37
I think a standard password hash API is a good thing (there was a proposal for such a thing for Python recently on -ideas, though it was essentially rejected in favor of recommending/using passlib), but I'm wary of having default cost factors, that seems unwise: what are the defaults, how are they decided to be ok, and more importantly in what context are they updated over time (and based on what data)?

Re: What PHP 5.5 might look like

#39
post #31

Earlier quoted context omitted.

No matter how much PHP is improved upon, until there is a serious contender framework for it like Rails or Django, PHP will continue its route to extinction. I'm not sure if you're serious, but there are plenty of frameworks on a par with Rails at least (nb: I have zero experience with Django). At the enterprise level, there's Symfony or Zend: http://symfony.com/ http://www.zend.com/ If Rails is your thing, CakePHP s…

Please don't recommend CodeIgniter. I'm not normally one for swathing "x is bad" judgements, but CI is simply not in the same league as the other frameworks you mentioned.

Tell us why! With the low memory overhead, built-in cache, Active Record (+PDO support) and easy-to-understand MVC approach, I think it is the best framework for writing small to medium-sized web applications.

CI is not Zend, but nothing prevents you from using the Zend libraries with a small CI Library wrapper - I have done so many times in the past, and it works great.

Re: What PHP 5.5 might look like

#40

No matter how much PHP is improved upon, until there is a serious contender framework for it like Rails or Django, PHP will continue its route to extinction. Dinosaurs were once big and powerful. They dominated the landscape. They don't exist anymore.

No matter how much PHP is improved upon, until there is a serious contender framework for it like Rails or Django, PHP will continue its route to extinction. I'm not sure if you're serious, but there are plenty of frameworks on a par with Rails at least (nb: I have zero experience with Django). At the enterprise level, there's Symfony or Zend: http://symfony.com/ http://www.zend.com/ If Rails is your thing, CakePHP s…

I've found that Laravel is quite a bit nicer than most other frameworks in PHP. It uses some stuff from Symfony as well. I don't think it's contending with Django quite yet, but it's extremely nice to use and work with. I honestly don't feel like I'm writing PHP when using it.

http://laravel.com

Post reply on HN