by radicalethics · 10mo ago · 0 comments
<for i=0; i<1; i++> <html> </html> </for>
Better question, why don't we upgrade XML to do that?
But if you disagree with this, or somehow work around this statement by replacing your for element with some "for-loop" custom element (it is valid HTML to add custom tags with dashes in their names), my stronger argument is at https://news.ycombinator.com/item?id=46743219#46743554
XSLT which is an application of XML allows you to do a for-each: https://developer.mozilla.org/en-US/docs/Web/XML/XSLT/Refere...
Nobody uses PHP this way any more though — people treat it like Python or Node and write the entire codebase inside a big <? block
JSP is similar with different syntax again — nobody uses JSP either
I think ASP too but I never used that
> Nobody uses PHP this way any more though
Well… I have bad news.
I do, for one :-)
(2) It's easy to add if conditions that test $_GET, $_POST or $_REQUEST display different things depending on what was submitted
(3) Not often (but have in the past, and will probably have to soon in a personal project). What issue are you anticipating?
There still needs to be something like HTML even when you have PHP: PHP is something you run on the server and it still needs to output something to the client in some format, and HTML is adequate for this.
The heck we are doing with HTML is taking it for building client apps. But even then, you now have UI toolkits that mimic this model: QML, whatever XML format Android has to design UIs, etc.
Do nothing so I can make websites that are accessible, secure, static and fast. HTML is the full solution unlike PHP or JS. With CSS it’s Turing complete.