logoalt Hacker News

Philip-J-Fryyesterday at 7:50 PM1 replyview on HN

LLMs change the calculus on DRY in some cases. I would say it's still very much a no-no on the frontend side of things. Code repetition is directly correlated with bad loading performance. When you're optimising for people on slow mobile connections, your HTML/JS/CSS being 500KB instead of 1.5MB matters a lot.


Replies

dlisboatoday at 2:02 AM

That only matters in context: if this repetition allows you to forego React and a zillion JS libraries you’re better off in the end performance wise.

I have never seen a single website where performance downgrade was caused by HTML.

However I’m not advocating for it, just making the case that it’s very hard to do worse than we’re currently doing with front end development.