17 ms·
The page loads, then, afterward, you tell some scripts in the footer to observe the presentation in this pristine state, then to go around and mess about with i
by brlewis 11y ago
The page loads, then, afterward, you tell some scripts in the footer to observe the presentation in this pristine state, then to go around and mess about with it.
This is why with React-style views[1] I feel like I'm finally learning how to write web applications. The DOM is always in a pristine state.
[1] Specifically I'm using Mithril, but the architecture is the same in React, and similar now in Ember.
- nvader 11y agoI just wanted to echo this sentiment. I also had a similar "aha" moment when a colleague introduce me to React, whereas prior to that I had invariably hacked interfaces together with very ad-hoc jQuery code. Since backend code is my bread and butter, my intuitions never had a chance to develop beyond "this feels error-prone and wrong" on their own. Further paralleling your own journey, I now reach for Mithril first too, and I can't recommend it enough.