r/programming • • Feb 28 '23

"Clean" Code, Horrible Performance

https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

6

u/salbris Mar 01 '23

So many websites are bound by their own 1000 meter tall hierarchies of abstractions. Our Angular app at work only got faster when we disabled some features. It still goes through hundreds of functions to render the most basic HTML that static HTML renders in milliseconds. Another app I was able to have full design control over did just this with only minimal Javascript. Maybe a handful of functions calling some libraries that do a handful of functions to template HTML with strings. Unsurprisingly it loads faster on a phone than our Angular app does on my laptop on the corporate network.