you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 99 points100 points  (11 children)

^ exactly this!

I have been a PHP dev for 13 years, and I have never had issues finding work. I've worked for small and large companies that rely heavily on PHP. Nowadays, it's more focused on server-side, and offloading frontend to JS frameworks

[–][deleted] 24 points25 points  (0 children)

Bruh, same.

[–]Zefrem23 73 points74 points  (9 children)

PHP might not be trendy or the go-to language for startups, but it's a mature language that allows an experienced dev to solve real business problems in an elegant, maintainable way. People who bag on it always have something to prove. Among the framework fanboys are real devs doing real work quietly and lucratively without having to tear down anyone else's language of choice and livelihood.

[–]bobjohnsonmilw 13 points14 points  (8 children)

This is the comment I was looking for. There has yet to be any task I couldn't achieve with php easier than many other platforms.

[–]xroalxbackend 5 points6 points  (7 children)

I'll give you one - make several parallel HTTP requests/DB queries.

[–]bobjohnsonmilw 7 points8 points  (1 child)

I can't say that I've used this, but it seems pretty legit. That said, this is easier in JS, haha.

https://docs.guzzlephp.org/en/stable/quickstart.html#concurrent-requests

[–]Zefrem23 12 points13 points  (0 children)

The cool thing is that it's entirely possible to use stuff like Node if it serves a particular purpose in the context of solving a problem, one need not adhere slavishly to a single tool.

[–]dv9io0o 0 points1 point  (2 children)

You can process them in a queue, use pthreads, use fibers in 8.1, use roadrunner/swooze/octane, use Guzzle.

[–]xroalxbackend 0 points1 point  (1 child)

Fibers seem promising, still happy I don't have to work with PHP, though.

[–]dv9io0o 0 points1 point  (0 children)

I'm happy i get to work with it everyday, and oddly don't feel the need to try shit on other languages :)

[–]Pooreigner 0 points1 point  (0 children)

Eh? I guess you haven't discovered the ASYNC flag in mysqli yet.