News for hackers. Stuff that matters.
Re:Udash – Scala and Scala.js Reactive Web Framework by fknop on Sunday February 11, 2018 @04:58PM (#16355058)
It looks really verbose only to render simple html.

I had one really bad experience with Scala.js. When I used it, I noticed Scala was just not designed for the web (front end) and it just didn't work well for things really simple in JS.

Re:Udash – Scala and Scala.js Reactive Web Framework by realusername on Monday February 12, 2018 @02:09AM (#16357062)
I'm going to go against the HN current opinion but I hate Scala. I worked for a few months on some Scala projects, the language is way too complex (the opposite of Go, they add whatever feature they think is cool) is poorly documented and readability is difficult as well. It looks like a mix of Perl and functional languages.
Re:Udash – Scala and Scala.js Reactive Web Framework by fknop on Monday February 12, 2018 @04:34AM (#16357558)
I hate it as well. I think it's a poorly designed language. The syntax is a mess (underscore...), the operator overloading make people overload silly operators which make code unreadable from an outside programmer. I could go on...

I prefer Kotlin which imho fix almost every bad design decisions from Scala.

Re:Udash – Scala and Scala.js Reactive Web Framework by mbo on Monday February 12, 2018 @06:38AM (#16358016)
If underscores and operator overloading are the biggest criticisms you have of Scala, then we're doing pretty well. For what it's worth, I think Scala has quite a large grammar that means it takes a while to learn, but once that's over it's not particularly difficult to read or to write.

Can you elaborate as to what Kotlin fixes compared to Scala?

Re:Udash – Scala and Scala.js Reactive Web Framework by threeseed on Sunday February 11, 2018 @07:58PM (#16355766)
Scala.js is not really designed for simple websites.

It's designed for bigger ones especially in which you want to share models and validations between front and back end.

Re:Udash – Scala and Scala.js Reactive Web Framework by th1nkdifferent on Monday February 12, 2018 @04:34AM (#16357555)
Could you cite an example of how Scala is unsuitable for the web? Between Scala and JavaScript, I would pick Scala in a heartbeat for one reason alone - it's strongly typed. Both of them offer OO & FP.
Re:Udash – Scala and Scala.js Reactive Web Framework by fknop on Monday February 12, 2018 @04:38AM (#16357576)
Strongly typed was one of the problem I found. TypeScript offers a better alternative to typing on the web because it keeps the compatibility with javascript and also have a real any type when it's really necessary. Typescript now can import raw js without types definitions unlike Scala.
Re:Udash – Scala and Scala.js Reactive Web Framework by lmm on Monday February 12, 2018 @05:50AM (#16357856)
I believe Scala can use javascript libraries either dynamically or with type definitions in exactly the same way as TypeScript?

I tried to use TypeScript but the type system just wasn't good enough; when you've been working in a strongly-typed language like Scala for a while, a language without nominal types or HKT just isn't going to cut it.

Re:Udash – Scala and Scala.js Reactive Web Framework by th1nkdifferent on Tuesday February 13, 2018 @02:25AM (#16365344)
Could you illustrate, preferably with an example, how weak type system would have worked better than a strongly typed system?
Re:Udash – Scala and Scala.js Reactive Web Framework by fknop on Monday February 12, 2018 @04:40AM (#16357588)
You can do FP in any OO language. OO is an extension on top of FP.