Live data from Hacker News

PHP Sucks

evertpot.com

91–100 of 297 posts

Re: PHP Sucks

#91

Earlier quoted context omitted.

That, and I've noticed that the typical legacy PHP codebase is worse than the legacy codebase in other stacks.

It is far worse I would say. Legacy PHP code is some of the worst code I have seen in my life. Everyone with HTML/JS knowledge could also do PHP and they did . There are many production systems (banks, insurance etc included) running old style php with html mixed with php mixed with JS. And it runs fine, but if you need to fix something that broke or had to be changed...

[deleted]

Re: PHP Sucks

#92
post #7

I hate PHP too, but I write it almost every day at work. There's something to be said for how stable it is. I spent a large amount of my career doing .net development and deployed very rarely. It was a big day when I deployed. I would say to my wife, probably going to late tonight, we're deploying. Because something always went wrong when deploying. Here, I deploy every other morning. Usually, while my coffee is gett…

I understand what you are saying about easy-deployment. I work in PHP and .NET, and the difference I think comes down to deploying a few updated files to a PHP environment versus having to deploy your whole compiled application in .NET. Tools like Octopus and Visual Studio features mitigate the problem in .NET, but I totally know what you mean when I have to work without those tools and spend an hour trying to find some missing dependency or web.config entry in our project that often happens in .NET.

I still prefer .NET and C# for the cleanliness, correctness, and the fact that it's easy to write code that works the first time, but it is nice when I just need to update one PHP file and drop it on the server without any downtime to recompile on our WAMP server.

Re: PHP Sucks

#93
post #85

I started freelancing in my area doing Ruby on Rails, and found it far harder to maintain a project. I also found it harder to acquire clients in my area for new RoR development. More work was available locally with PHP. Clients were more willing to pay. I've done a ton of things in WordPress that shouldn't have been, "to save money". And I've done greenfield development with CodeIgniter, Laravel (v3 and v5), and a c…

Amen to the above

Re: PHP Sucks

#95
I don't think that PHP sucks, I think that lot of PHP projects sucks, because exists lot of newbie developers without any minimum knowledge about programming, making mess in lot of project just because is so easy to use PHP.

Re: PHP Sucks

#96
post #85

I started freelancing in my area doing Ruby on Rails, and found it far harder to maintain a project. I also found it harder to acquire clients in my area for new RoR development. More work was available locally with PHP. Clients were more willing to pay. I've done a ton of things in WordPress that shouldn't have been, "to save money". And I've done greenfield development with CodeIgniter, Laravel (v3 and v5), and a c…

Currently working on a PHP7 project with Slim 3. I can confirm, it's the bee's knees

Re: PHP Sucks

#97
post #85

I started freelancing in my area doing Ruby on Rails, and found it far harder to maintain a project. I also found it harder to acquire clients in my area for new RoR development. More work was available locally with PHP. Clients were more willing to pay. I've done a ton of things in WordPress that shouldn't have been, "to save money". And I've done greenfield development with CodeIgniter, Laravel (v3 and v5), and a c…

> And in my opinion, it has fewer ways to sabotage your own project than any language with monkey patching.

It's not like rails is the only alternative.

Re: PHP Sucks

#98
to op: glad you're taking time to check out golang. I too have worked mainly as PHP dev since 1999 or so, and recognize most of what you are saying. I loved the new era of php with the composer ecosystem, but after investing too many hours into Laravel, i finally had enough when I realized I could not even use the backtraces to debug some issue I was having after upgrading. So I decided to never touch it again.

Coming from php to golang is insane, you will be very impressed by all the mature and insanely fast tooling.

For example I now have test suite running in about 0.3 seconds, where my last PHP (laravel) app took about 20 minutes testing similar stuff.

Re: PHP Sucks

#99

I worked at a PHP-based company and after a year of intense interviewing, we finally decided to switch core languages and tech stacks because we weren't attracting strong enough candidates. What we found is that most good programmers didn't want to work in php and most php developers were designers that learned how to code php. But they didn't understand CS fundamentals or even a decent idea how to code. They could c…

Ah, so PHP doesn't suck, it's just that PHP devs suck. Alrighty then.

Re: PHP Sucks

#100
post #10

"The 2016 StackOverflow Survey puts PHP developers as the least paid" - which is very unfair. I think PHP developers should actually get paid more as compensation for having to put up with PHP on a day-to-day basis, but that's just me unfortunately...

I think the low salaries are more a reflection of the fact that there are a lot of inexperienced developers writing PHP and that there is a lot of unimportant software written in PHP than it is that a given developer would make less by using PHP. A highly talented developer working on business critical software will make a lot more than an untalented developer working on low value software regardless of whether each piece of software is in PHP or Java; it's just that the first scenario is more common in Java than in PHP and the second scenario is more common in PHP than in Java.
Post reply on HN