4 ms·
> This makes it hard to sell Scala.js to this audience, but I still encourage JS devs to try other statically typed languages, maybe you'll like them much more.
by AlexITC 4y ago
> This makes it hard to sell Scala.js to this audience, but I still encourage JS devs to try other statically typed languages, maybe you'll like them much more.
Actually, I have had some success onboarding js devs into sjs, until now, all of them have mentioned that it is hard to go back to js/ts because the type-safety just can't be compared (I even presented this at a conference last December).
These are some comparisons on js vs sjs code on top of react (js on the left, sjs on the right):
- Hello World: https://pbs.twimg.com/media/FngeaoraAAAr2r0?format=jpg&name=900x900 https://pbs.twimg.com/media/FngeaoraAAAr2r0?format=jpg&name=...
- Timer: https://pbs.twimg.com/media/FnlL1PjaMAEL-zJ?format=jpg&name=small https://pbs.twimg.com/media/FnlL1PjaMAEL-zJ?format=jpg&name=...
- ReCAPTCHA usage: https://pbs.twimg.com/media/FnvY_hAagAIjWF5?format=jpg&name=900x900 https://pbs.twimg.com/media/FnvY_hAagAIjWF5?format=jpg&name=...