|
|
@pcwalton | |||||
|
TIL (h/t @RichFelker): React’s vDOM is pretty much the same thing curses(3) was in 1980. Only difference is that React is on the Web.
|
||||||
|
||||||
|
|
Patrick Walton
@pcwalton
|
25. sij |
|
curses: functional reactive programming before it was cool
|
||
|
|
||
|
Rich Felker
@RichFelker
|
25. sij |
|
And it's hideous for exactly the same reasons - optimizing the utterly wrong thing, spending expensive resources to save dirt-cheap ones.
|
||
|
|
||
|
Niklas B
@_niklasb
|
25. sij |
|
In the DOM world, node reuse is actually required in some cases though, for example to not lose selection state of input fields. Maybe a difference to the terminal world?
|
||
|
|
||
|
Artur Tamborski
@arturtamborski
|
25. sij |
|
ELI5, how's that's the same thing? (I've never used curses, nor react)
|
||
|
|
||