Re:Q&A: PHP Creator Rasmus Lerdorf (2002)
by muglug on Sunday September 03, 2017 @10:03AM
(#15161453)
> 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.
Re:Q&A: PHP Creator Rasmus Lerdorf (2002)
by jpswade on Sunday September 03, 2017 @10:35AM
(#15161603)
Sure, but then in your example, you're using PHP just to transpose data. Why?
Re:Q&A: PHP Creator Rasmus Lerdorf (2002)
by innocenat on Sunday September 03, 2017 @02:02PM
(#15162834)
Not 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.
Re:Q&A: PHP Creator Rasmus Lerdorf (2002)
by haburka on Sunday September 03, 2017 @11:44AM
(#15162015)
I 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.
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.