Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Aren't templating languages like Blade or Twig designed to take away the hassle of doing this in vars? π€ (doesnt take away that indenting stuff like this is insane)
-
And then there was a time when we inlined asp/php/jsp so no useless whitespace characters were sent, wasting visitors bandwidths...
-
@ganjaman It doesn't require PHP to write bad code. You can do that in any language.
-
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
-
@Eversor Actually this function outputs this crap to some underlying _.js (underscore.js) templating thing..
Which it of course doesn't make good use of. -
C0D4681466yπ€what the fuck did I just stumble upon... php dev here and that’s a punch in the face offence.
-
@alexbrooklyn Lol this is PHP.. you can literally just write HTML into a PHP file and It's valid. This is someone incredibly misusing the language
-
@AlgoRythm I know that, but Twig or Blade are designed to make it nicer to use php in html with special tags etc.
If only there was some some kind of program that could automatically indent your code....
rant
indention from hell