5 ms·
I have a multiplayer game client using Svelte for the UI [1]. Svelte Cubed looks awesome for this, but... Is declarative easier to reason about for complex pr
by EarthLaunch 5y ago
I have a multiplayer game client using Svelte for the UI [1]. Svelte Cubed looks awesome for this, but...
Is declarative easier to reason about for complex projects, or does it become necessary to go imperative? I can imagine the advantage of imperative is being able to use normal engineering practices, but this isn't something I've thought about before.
Are there examples where a declarative approach was phased out as complexity grew? The only example I can think of is when a company I worked for tried to use Flex (declarative Flash), which we later converted into pure ActionScript for larger projects.
1: https://github.com/Suncapped/babs https://github.com/Suncapped/babs
- brundolf 5y agoBroadly speaking the advantage of imperative is usually in performance, not being easy to reason about at scale
- EarthLaunch 5y agoInteresting, thanks. Optimization for example, makes sense.