This. Creating html nodes may be tedious and verbose. But it's actually very intuitive and readable. Just make a couple of functions to abstract common tag patterns once your codebase grows a little and your are golden
God I’m so glad I have the frameworks now. For years I had to do this work serverside the same… it was disgusting and hard to update. Still do on legacy code but if it breaks I’ll migrate each broken piece one at a time.
I literally have "senior" who ONLY writes his html like that. And he wrote like 80% of fairly big project that now I'm rewriting in React. This is painful on so many levels.
7
u/No-Ant2476 Dec 31 '22
Divs goes brrrrr......
19
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Dec 31 '22
Image Transcription: Code
[The two longest lines, the second and sixth beginning
html +=, are cut off in the image. In the latter of these,#2837b5is highlighted.]I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
17
u/Voltra_Neo Dec 31 '22
Dear lord have mercy
14
u/trevster344 depraved Dec 31 '22
God I’m so glad I have the frameworks now. For years I had to do this work serverside the same… it was disgusting and hard to update. Still do on legacy code but if it breaks I’ll migrate each broken piece one at a time.
1
u/kriminellart Jan 01 '23
You've never thought about Razor View Templating where you can output HTML with models using RazorViewEngine?
3
u/Minimum-Register-146 Dec 31 '22
I literally have "senior" who ONLY writes his html like that. And he wrote like 80% of fairly big project that now I'm rewriting in React. This is painful on so many levels.
1
u/Antonio0806 Jan 02 '23
That's some master level programmimg