PHP has a reputation as a language that makes dead easy to write very ugly sphagetti code. As far as I learned a lot has chaned since last time I was using PHP - something like 5 years ago. Is there any good book or other resource which describes modern PHP with best practices, parts to avoid, etc?
>> PHP has a reputation as a language that makes dead easy to write very ugly sphagetti code. I believe that programmers ability to write poor code is quite language agnostic.
PHP 5.5.8 Released
41–50 of 66 posts
Re: PHP 5.5.8 Released
#42Ruby 2.1.0 is out.
Grayed out means down voted, right? But why?! First good comment on the thread: no bitching, no need to click the link to find ~20 fixes, here's the alternative, never look back. Period.
Re: PHP 5.5.8 Released
#43Since anything PHP-related on HN is bound to spur the usual PHP hate, here's something that might confuse the haters: PHP is actually faster than Go in many cases (according to http://www.techempower.com/benchmarks/#section=data-r8&hw=i7... ).
Re: PHP 5.5.8 Released
#44PHP has a reputation as a language that makes dead easy to write very ugly sphagetti code. As far as I learned a lot has chaned since last time I was using PHP - something like 5 years ago. Is there any good book or other resource which describes modern PHP with best practices, parts to avoid, etc?
>> PHP has a reputation as a language that makes dead easy to write very ugly sphagetti code. I believe that programmers ability to write poor code is quite language agnostic.
The big problem with PHP is that it grew to popularity as it grew into a turing-complete templating language, and the major paradigm for it was more or less the idea that documents are programs. That actually encouraged mixture of logic and presentation concerns.
There are some other warts possibly worth railing at, but that's really the main place it gets its probably deserved reputation for having more spaghetti code, even though pros working in have long since moved on from that paradigm.
FWIW, this is also its strength: it's a very short distance with a gentle curve from authoring documents to authoring dynamic documents. I don't think anything else matches it.
Of course, the curve from there to a larger application, that can be a different story, depending on what kind of guidance one has (and most likely, without guidance, ontology will recapitulate philology, as they say).
Re: PHP 5.5.8 Released
#45PHP has a reputation as a language that makes dead easy to write very ugly sphagetti code. As far as I learned a lot has chaned since last time I was using PHP - something like 5 years ago. Is there any good book or other resource which describes modern PHP with best practices, parts to avoid, etc?
I recently moved from CodeIgniter 2.x over to Laravel, and it was like breathing fresh new air at the top of a mountain. Everything is cutting edge, organized, and fun to code again. Sounds like hyperbole, but for real it reinvigorated my programming efforts.
Check it out here: http://laravel.com/
Re: PHP 5.5.8 Released
#46Re: PHP 5.5.8 Released
#47PHP has a reputation as a language that makes dead easy to write very ugly sphagetti code. As far as I learned a lot has chaned since last time I was using PHP - something like 5 years ago. Is there any good book or other resource which describes modern PHP with best practices, parts to avoid, etc?
If I were you, and I wanted to see how elegant and great PHP can be, I would just go check out and learn Laravel 4. I recently moved from CodeIgniter 2.x over to Laravel, and it was like breathing fresh new air at the top of a mountain. Everything is cutting edge, organized, and fun to code again. Sounds like hyperbole, but for real it reinvigorated my programming efforts. Check it out here: http://laravel.com/
Re: PHP 5.5.8 Released
#48PHP has a reputation as a language that makes dead easy to write very ugly sphagetti code. As far as I learned a lot has chaned since last time I was using PHP - something like 5 years ago. Is there any good book or other resource which describes modern PHP with best practices, parts to avoid, etc?
That is modern PHP done right.
Re: PHP 5.5.8 Released
#49How does this compare to the latest HHVM?
It looks like this is mostly bug fixes. So I imagine this will have little impact on HHVM
Re: PHP 5.5.8 Released
#50Aaaaaaand cue 250+ comments complaining about PHP, mostly centered around issues that were much bigger in 2009 than they are in 2014...