News for hackers. Stuff that matters.
Re:PHP Sucks by segmondy on Thursday June 16, 2016 @11:06AM (#11916619)
It's not hard to write structured elegant php, that is horseshit. Please look at code for symfony or laravel. Hell, my annoyance with writing good code in PHP is that it ends up looking like Java, which begs the question, why not just do it in java.

https://github.com/symfony/symfony/tree/master/src/Symfony

or you can look at simpler sample codes I wrote for a class in design patterns with php

https://github.com/segmond/phpThingz

Re:PHP Sucks by pstadler on Thursday June 16, 2016 @12:17PM (#11917099)
Symfony is the worst thing that could've happened to PHP. Dependency injection with varying degrees of XML/YAML madness everywhere. It's terribly slow and pretty much unusable w/o several caching layers in front. I can honestly say that I hate this framework with a passion, and the language too. PHP's core and a big part of the community is copying features and methodologies from Java, but they will never get close to its performance, nor its functionalities. I left the ecosystem when PHP 5.1 was around... I left for good.
Re:PHP Sucks by stiGGG on Thursday June 16, 2016 @01:34PM (#11917611)
This! Symfony is so wrong, i actually can't believe it. First version was kind of rails, replacing all that ruby awesomeness with PHP madness. Newer Versions suddenly want to be like Java only 1000times slower.
Re:PHP Sucks by segmondy on Friday June 17, 2016 @11:08AM (#11923056)
I won't say it's the worse thing, it did bring some good and really help drive plenty of new projects towards being OOP. I'm no fan of it either! My point is that the code is structured! Now is the framework architecture good? Whoops, that's another discussion, and I can't likewise stand the layering upon layering of components and configuration nightmare.
Re:PHP Sucks by syzer on Friday June 17, 2016 @05:15AM (#11921509)
I think that Symfony is SpringMVC for poor, and slower, and crappier.
Re:PHP Sucks by willejs on Thursday June 16, 2016 @11:17AM (#11916701)
Your right, its not hard, but it is on the scale of how easy it is to write bad php.