13 ms·
There's an analogy that describes PHP as a weird sort of toolbox. Everything's there, but they are all a little funky. The hammer is a double sided claw hammer
by jpswade 9y ago
There's an analogy that describes PHP as a weird sort of toolbox. Everything's there, but they are all a little funky.
The hammer is a double sided claw hammer, the pliers don't have serrated edges. They will do a job, but perhaps not the job that you expected.
Eventually it leads to everyone using this weird little toolbox ends up with a weird sort of house that might collapse at any moment.
Things have moved on quite a bit since then. Certainly in PHP 7, you're able to give it the same treatment as a "proper" programming language and people do.
My view is though, it's a little too late. I don't think new people are coming into PHP because the barrier to entry has become higher than other languages.
It has become almost impossible to write a PHP application to do even the simplest task without getting bogged down in all sorts of over engineering and so called "design patterns".
We all know PHP will be around for a while longer.
Yet in 2017, I wouldn't recommend learning about PHP. Go learn something else.
- revmoo 9y agoSpoken like somebody who is completely ignorant of the current state of PHP.
- muglug 9y ago> It has become almost impossible to write a PHP application to do even the simplest task without getting bogged down in all sorts of over engineering and so called "design patterns". That's rubbish. There's nothing that stops you creating a single script to return a value based on stdin or get parameters. Design pattern nerds exist in every language. PHP has them no better or worse.
- jpswade 9y agoSure, but then in your example, you're using PHP just to transpose data. Why?
- innocenat 9y agoNot parent but I have done this before. There was an old PHP code that utilise TCPDF to generate a very complex report. The main application is being rewritten (in JS), but the report is very complex and utilise many features of TCPDF that I cannot find in PDFKit or other nodejs pdf libraries. In the end, the PHP code that generate reports was wrapped to take JSON input from STDIN and output the resulting pdf to STDOUT.
- haburka 9y agoI seriously doubt you actually use php and the ecosystem if you feel that way. As long as you pick a reasonable framework and leverage composer, php is fine. Yes, the standard library has some weird functions in it. Don't use them. If that's what upsets you about a language then you clearly have no idea what working with a competent team is like.