3 ms·
> Would like to see a write up on how it's even possible to achieve that when PCs from 20-30 years ago had no issue with such task. At a guess, by something in
by ben_w 2y ago
> Would like to see a write up on how it's even possible to achieve that when PCs from 20-30 years ago had no issue with such task.
At a guess, by something in the UI framework turning an O(n) task into an O(n^2) task. Seen that happen in person, the iPhone app was taking 20 minutes(!) to start up in some conditions, the developer responsible insisted the code couldn't possibly be improved, the next day I'd found the un-necessary O(n^2) op and reduced that to a few hundred milliseconds.
The over-abstraction of current programming is, I think, a mistake — I can see why the approach in React and SwiftUI is tempting, why people want to write code that way, but I think it puts too much into magic black-boxes. If you change your thinking just a bit, the older ways of writing UI are not that difficult, and much more performant.
I have a bunch of other related opinions about e.g. why VIPER is slightly worse than an entire pantheon of god classes combined with a thousand lines inside an if-block: https://benwheatley.github.io/blog/2024/04/07-21.31.19.html https://benwheatley.github.io/blog/2024/04/07-21.31.19.html