News for hackers. Stuff that matters.
Re:PHP in 2019 by gwbas1c on Wednesday May 15, 2019 @11:31AM (#19920403)
The thing that I like about PHP is that I can mix HTML, code, and database queries into a single file.

This is incredibly useful when learning basic web development, even though it doesn't scale for more complicated applications.

It's also incredibly useful when trying to bang out a simple experiment.

Re:PHP in 2019 by zer00eyz on Wednesday May 15, 2019 @04:51PM (#19923649)
In the world of machining people will often build a tool for a job. Its a one off, or something that will rarely if ever be used again.

These features of PHP are still eminently useful if you have to do the dirty one off. You can eliminate a massive amount of time pressure (an emergency or time invested vs time saved) if you dont have a ton of overhead that comes with modern frameworks.

Re:PHP in 2019 by strictfp on Wednesday May 15, 2019 @12:11PM (#19920832)
It also allows you to utilize and extend the full http protocol, something which most "serious" frameworks hinder.
Re:PHP in 2019 by wyqydsyq on Wednesday May 15, 2019 @10:41PM (#19925699)
PHP doesn't have anything to do with the HTTP protocol, Apache/Nginx/etc handle HTTP and simply call your PHP script with some global variables set to values parsed from the HTTP request
Re:PHP in 2019 by strictfp on Saturday May 18, 2019 @04:16AM (#19946326)
No, but PHP does not get in your way unlike many other web frameworks.
Re:PHP in 2019 by juangacovas on Wednesday May 15, 2019 @12:10PM (#19920812)
And many of us took the jump and refused to do things that way. You're wrong, PHP scales and you CAN do separation of concerns and have pretty, maintanable code, using a framework or not: just a matter of knowing what you are doing
Re:PHP in 2019 by barbecue_sauce on Wednesday May 15, 2019 @02:06PM (#19922078)
It's pretty clear that he meant mixing HTML, code, and database queries into a single file was what didn't scale, not PHP itself.
Re:PHP in 2019 by munk-a on Wednesday May 15, 2019 @04:21PM (#19923341)
I think you're missing the point of the comment - when it comes to prototyping PHP is incredibly easy to whip out a buggy test thingy in minutes that breaks all best practices but still lets you prove a concept or prep a demo.