2 Matching Annotations
- Oct 2020
-
www.zachgollwitzer.com www.zachgollwitzer.com
-
Declarative programming is an enabler of abstraction. Imperative programming is an inhibitor of abstraction. Declarative programming allows you to say “I want this and I don’t care how I get it” while imperative programming requires you to define each and every step.
Declarative programming, i.e. "build me a house, I don't care how", is an enabler of abstraction.
Imperative programming, i.e. "build walls, windows, a roof.", is an inhibitor of abstraction.
-
- Sep 2020
-
github.com github.com
-
detach, as an api, should be declarative (ensure the node is detached) instead of imperative (detach the node), allowing it to be called multiple times by performing a noop if the node is already detached. This way, it won't matter if the node is removed from the DOM from outside of svelte.
-