News for hackers. Stuff that matters.
Re:10 Years of Scala.js by AlexITC on Sunday February 05, 2023 @05:42PM (#34670519)
> 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=...

- Timer: https://pbs.twimg.com/media/FnlL1PjaMAEL-zJ?format=jpg&name=...

- ReCAPTCHA usage: https://pbs.twimg.com/media/FnvY_hAagAIjWF5?format=jpg&name=...

There are no comments on this comment yet.