3 ms·
> 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 ca
by 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.