Hacker News new | ask | show | jobs
by schwartzworld 1799 days 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.

3 comments

> "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.

It'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?

Then you end up rewriting a buggy under-performing version of React. No, thanks. If size is really a concern use Preact.
The 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.

And me thinking .NET did it first with Rx.
Rx 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.

It is part of Angular and everywhere on Android and iOS, it is plenty of attention.
And 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.