3 ms·
It reduces development complexity. - No complex build set-up (just link the script & use it) - Less congitive load when reading the code. Especially if it's n
by max_ 3y ago
It reduces development complexity.
- No complex build set-up (just link the script & use it)
- Less congitive load when reading the code. Especially if it's not yours.
- Very decent learning curve.
- robertoandred 3y agoBut all it is is fancier fetch()s. It can't remotely approach the functionality of React, so it just shifts any complexity to different places.
- Xeamek 3y agoYes, it shifts complexity to the backend. Which will already have it anyway (because it has to), has better tools to manage it, you can use literally anything you want instead of being forced to use javascript, has (relatively) instant access to the authoritative source of truth, and isn't resource constrained (at least not the same way that the client is). so "just shifts it somewhere else" might be underselling it a little
- robertoandred 3y agoAnd waiting much longer than an instant for a million server requests every time a template changes on a page is not a good use of those resources.