3 ms·
"I hate people advocating for a tool by bringing up the problem it was used to solve. Just keep your app so simple that you don't need the tool." A better solu
by schwartzworld 5y ago
"I hate people advocating for a tool by bringing up the problem it was used to solve. Just keep your app so simple that you don't need the tool."
A better solution is to emulate the react strategy. Create a state object, on user input you can rewrite sections DOM based on the state. You probably don't need React's diffing algorithm until you run into performance problems. Then you have to limit which parts of the Dom you update to keep it snappy. Then you might as well just use react.
- edem 5y agoThen you end up rewriting a buggy under-performing version of React. No, thanks. If size is really a concern use Preact.
- mattgreenrocks 5y agoThe beautiful thing about React is not React itself, but rather how much it pushed functional idioms into mainstream programming. We can do better from here, mostly by hewing more to the functional core/imperative shell idea. Redux is a popular approach that shows the power of this. In more modern languages with ADTs you don’t even need a library/framework once you fully understand how to structure things well.
- pjmlp 5y agoAnd me thinking .NET did it first with Rx.
- mattgreenrocks 5y agoRx never got the attention it deserved IMO. It was the right thing but never really had the ergonomics. It’s entirely possible I wasn’t able to appreciate it at the time, too.
- pjmlp 5y agoIt is part of Angular and everywhere on Android and iOS, it is plenty of attention.
- cxr 5y ago> "I hate people advocating for a tool by bringing up the problem it was used to solve. Just keep your app so simple that you don't need the tool." Casually dismissing others by strawmanning them with fake quotes is against the rules. Even outside of that, it's just generally the kind of thing that is neither respectful or respectable. Please don't do it.
- schwartzworld 5y agoIt's not a fake quote. It's a statement of what I perceive his statement to mean. A translation. Did you actually think I was trying to attribute that quote to op?
- benbristow 5y agoAnd so you just recreate React but worse and make it harder to onboard new developers and can't use any of the great React libraries/components already created by the community.