News for hackers. Stuff that matters.
Re:Second-Guessing the Modern Web by mmis1000 on Monday May 11, 2020 @01:13AM (#23139103)
You end up dupe your layout page everywhere and have a hard time update all of them if designer changed their mind.

Or you could use some template system to do that… but if you need to use template, why not use react(or something like that) anyway?

Re:Second-Guessing the Modern Web by goatlover on Monday May 11, 2020 @02:17AM (#23139363)
Because Rails, Symphony, Django, Phoenix or whatever does the job in the preferred language of the developer/team and often has more batteries or better tooling included.
Re:Second-Guessing the Modern Web by mmis1000 on Friday May 15, 2020 @10:09PM (#23199851)
I bet those are not a Front end's preferred language and you end up need JavaScript anyway if you need some extra client form handling. Now you use two language to do one thing and made it more difficult to be maintained.
Re:Second-Guessing the Modern Web by grey-area on Monday May 11, 2020 @03:27AM (#23139683)
That problem was solved approx 20 years ago.

The alternatives are not react and templates vs writing html by hand.

Re:Second-Guessing the Modern Web by benibela on Monday May 11, 2020 @06:43PM (#23148019)
The browsers had support for XSL templates

You write your website in XML and the browser renders it using the template