Hacker News new | ask | show | jobs
by stephen82 2024 days ago
I used to dislike PHP because I was young, naive, and ignorant.

When Laravel came out, it had introduced me to Symfony and at that time I have decided to give it a second chance.

I haven't regretted it ever since.

Are there ugly parts in it? Yep, like every single programming language out there.

But here's the good thing: I have applied SOLID principle thanks tto Symfony and Laravel, which is (at least to me): hide the ugly parts behind a friendlier code base and deal with your newly designed interface.

Not only it makes your code clearer, it makes it extremely easy to follow your logic, plus it motivates you to write more projects just for fun.

About WordPress...yeah, it has its countless quirks, but trust me; it's getting there.

Eventually, it will become a nicer platform for the end-user, especially now that adopts more JavaScript in both back and front end.

All the legacy code is getting upgraded slowly but steady with modern PHP standards, even Composer is being used at some code bases now, plus with modern tools we automate lots of procedures that used to be considered chore.

Now about writing code that can deal with high traffic...you can do that with modern PHP, yes, but you have an extra option nowadays: Swoole!

If Baidu and other Chinese companies are using PHP exclusively, they deal with MILLIONS of people on a daily basis, and contribute back in the language itself (core / swoole extension), what else do you want?!

Is it dead?

Not even close, especially now with the release of PHP 8.0 that gets closer to enterprise standards!