These are chat archives for ThoughtWorksInc/Binding.scala

27th
Mar 2017
jargalbaatar
@gijan
Mar 27 2017 01:14
Hi. all
<script>{loading}</script> error
杨博 (Yang Bo)
@Atry
Mar 27 2017 01:15
Hi, @gijan , this room focuses on development of Binding.scala. General questions should be asked on StackOverflow.
Thank you
jargalbaatar
@gijan
Mar 27 2017 02:54
Thank you
Felix Dietze
@fdietze
Mar 27 2017 15:06
Probably interesting for everyone: I think we have a bit too many reactive dom libraries with the same goals: scala-js/scala-js#2843 What do you think?
杨博 (Yang Bo)
@Atry
Mar 27 2017 15:13
@fdietze What do you think?
Felix Dietze
@fdietze
Mar 27 2017 15:18
I tried many of the mentioned libraries and every library has important innovative features, that I'm missing from the others.
杨博 (Yang Bo)
@Atry
Mar 27 2017 15:18
What's the missing part in Binding.scala?
Felix Dietze
@fdietze
Mar 27 2017 15:23
Binding was the first library I tried. At that time I was missing the monadic context of the reactive programming part. That's why I moved on to monadic-html and then to scalatags-rx
杨博 (Yang Bo)
@Atry
Mar 27 2017 15:23
@fdietze You must forget to read Binding.scala's Scaladoc
You can use Scalaz MonadOps with Binding.scala
Felix Dietze
@fdietze
Mar 27 2017 15:25
The second thing was that I like more to write scalatags instead of XML (this is probably personal taste)
I see now that I overlooked your monadic features :)
杨博 (Yang Bo)
@Atry
Mar 27 2017 15:27
For the second thing. Could you do me a favor?
To fight with those guys who always want everything become tags: ThoughtWorksInc/Binding.scala#42
So, if you use Scalaz syntax, you can use Binding.scala as a library-based reactive framework. Right?
Felix Dietze
@fdietze
Mar 27 2017 15:33
To tell you that, I would have to investigate more. For example if binding handles the diamond-case efficiently. Does it already do that? I mentioned the case here: lihaoyi/scala.rx#79
杨博 (Yang Bo)
@Atry
Mar 27 2017 15:37
Scala.rx choose a wrong algorithm for diamond-case. There are only two correct libraries in Scala.js. Binding.scala and monadic-html.
Felix Dietze
@fdietze
Mar 27 2017 15:38
Scala.rx works correctly, when I don't use flatMap
That's what's written in the issue
xml-tags vs scalatags: I still think it's a personal taste. No fight is necessary.
杨博 (Yang Bo)
@Atry
Mar 27 2017 15:38
The case you posted is too simple to break Scala.rx
I had a talk with lihaoyi one years ago about this problem.
Felix Dietze
@fdietze
Mar 27 2017 15:40
monadic-html also didn't work for my case, that's why I moved on to scalatags.rx...
But you encourage me to have another look at Binding :)
杨博 (Yang Bo)
@Atry
Mar 27 2017 15:47
I don't know much about monadic-html. If you find memory leaks in your test case for Binding.scala, feel free to raise an issue.
and their solution OlivierBlanvillain/monadic-html#5
Felix Dietze
@fdietze
Mar 27 2017 15:53
I tried monadic-html this year and had too many updates. I have to dig out my test-case again and report it...
杨博 (Yang Bo)
@Atry
Mar 27 2017 16:01
Good luck