These are chat archives for ThoughtWorksInc/Binding.scala

11th
Dec 2016
jfilali
@jfilali
Dec 11 2016 11:15
@Atry Binding.scala look great, Congratulations. You are on something really innovative. When I see the quantity of library and setup to get , scala-react, material-ui facades, material-ui js dependencies, diode, js bundle, js dependencies, i'm wonder if it really worth it. Please would you point us to some roadmap and more precisely, would you tell us if you are going to support custom tags as XHTML literal ?
杨博 (Yang Bo)
@Atry
Dec 11 2016 11:19
There are multiple approaches to support custom tags
At the moment, you can use the implicit conversion workaround mentioned in ThoughtWorksInc/Binding.scala#4
In the future, Binding.scala will support FXML syntax, so that you can provide custom tags via JavaBeans. The FXML support will be released in 2017 January if everything goes well
jfilali
@jfilali
Dec 11 2016 11:38
Wow, that is incredible, You have done a very great job ! I would like to contribute, let me knows if you need help on something specific and where to get started. Where is the roadmap ?
杨博 (Yang Bo)
@Atry
Dec 11 2016 13:52
I guess you can start from sharing the experiences when you learn Binding.scala, maybe some articles or blogs
And when you use Binding.scala to create complicated web application, you may find some of your work could be built as reusable components, which might useful for others if you open-source them.
philip andrew
@PhilAndrew
Dec 11 2016 14:27
Hello, how can you suggest to communicate to-from the server while using binding.scala?
杨博 (Yang Bo)
@Atry
Dec 11 2016 14:29
@PhilAndrew You can convert a Future or a Promise to a Binding, see https://thoughtworksinc.github.io/Binding.scala/#9
philip andrew
@PhilAndrew
Dec 11 2016 14:30
hmm ok. This example shows fetching some data and rendering in the Future, nice to know
杨博 (Yang Bo)
@Atry
Dec 11 2016 14:30
You can use any library that creates Future, autowire for example
The FutureBinding acts like remote data-binding
philip andrew
@PhilAndrew
Dec 11 2016 14:31
autowire seems good
杨博 (Yang Bo)
@Atry
Dec 11 2016 14:31
It refresh data from remote whenever the pre-condition changes
philip andrew
@PhilAndrew
Dec 11 2016 14:33
I looked at UDash, it seems to have a server rpc system integrated into it but I prefer the idea of Binding.js dom nodes
So then I was thinking how to do the rpc, so autowire ok perhaps that's ok - or Akka.js
I'm confused haha
ok but did you use anything yourself before @Atry ?
杨博 (Yang Bo)
@Atry
Dec 11 2016 14:35
I haven't tried Akka.js yet. I myself only have experiences using autowire.
philip andrew
@PhilAndrew
Dec 11 2016 14:36
ok good :smile:
杨博 (Yang Bo)
@Atry
Dec 11 2016 14:36
It would be greate if you write some blogs about integrating akka.js with Binding.scala
philip andrew
@PhilAndrew
Dec 11 2016 14:37
ya let me look into it
thanks!
杨博 (Yang Bo)
@Atry
Dec 11 2016 14:38
Another approach is creating asynchronous handlers for Futures, then updating Var or Vars in these handlers.
@Algomancer demonstrated this approach in https://github.com/Algomancer/Full-Stack-Scala-Starter