Hacker News new | ask | show | jobs
by VincentOrback 2024 days ago
I mostly heard, yeah it’s not great but I’ve been doing it for so long..

But hey, I’ve been doing it for a while to, so how can I learn to write more beautiful php? And do you only use it for backend since you said “we don’t do php in html anymore”?

2 comments

I think the php in html thing has been replaced by templating tools where we write html templates with"template strings" that allow you to put dynamic data into the html, and all the php is concentrated in more well defined libraries.

The amount of logic we used to do with php inside otherwise html files has been shown to be bad software design.

I think you might have the wrong end of the stick.