Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 09 04:00
    notyy commented #222
  • Oct 09 03:59
    notyy closed #222
  • Oct 09 03:59
    notyy commented #222
  • Oct 08 20:28
    Atry commented #223
  • Oct 08 20:28

    Atry on master

    docs: fix typo Merge pull request #223 from Ja… (compare)

  • Oct 08 20:28
    Atry closed #223
  • Oct 08 20:20
    Jason-Cooke opened #223
  • Oct 07 03:30
    glmars commented #222
  • Oct 06 04:05
    notyy opened #222
  • Oct 04 11:29
    datalchemist commented #217
  • Oct 04 11:02
    datalchemist commented #217
  • Oct 04 06:58

    Atry on scalafmt

    (compare)

  • Oct 04 06:46

    Atry on master

    Run scalafmt Merge branch 'master' into scal… Merge pull request #221 from Th… (compare)

  • Oct 04 06:46
    Atry closed #221
  • Oct 04 06:46
    Atry synchronize #221
  • Oct 04 06:46

    Atry on scalafmt

    Update scalafmt to 2.0.1 Update sbt to 1.3.2 Merge pull request #215 from sc… and 2 more (compare)

  • Oct 04 06:06
    Atry commented #217
  • Oct 04 05:30
    glmars commented #217
  • Oct 04 05:09
    Atry closed #191
  • Oct 04 05:09

    Atry on master

    Update scalafmt to 2.0.1 Merge pull request #203 from sc… (compare)

Michele Sciabarra
@sciabarra
I will try
let's see what happens
thank you a lot
杨博 (Yang Bo)
@Atry
Never mind.
Michele Sciabarra
@sciabarra
works! :)
杨博 (Yang Bo)
@Atry
Have fun!
Michele Sciabarra
@sciabarra
is there any way to add an attribute without value?
<video controls ...>
because:

WRONG

<video controls="true" ...>

杨博 (Yang Bo)
@Atry
Try controls={true}
Michele Sciabarra
@sciabarra
so if I put controls={flag.bind} and set flag := false
the attribute disappear?
杨博 (Yang Bo)
@Atry
Yep
Michele Sciabarra
@sciabarra
let me guess, if I do something={s.bind} with s : String
setting s := null will remove the attribute?
s: Var[String] I mean
杨博 (Yang Bo)
@Atry
Usually s := "" for most of DHTML properties.
Michele Sciabarra
@sciabarra
I guess the behavior comes from scalajs dom api
Binh Nguyen
@ngbinh
Hi, I have a question regarding the scalability of Binding.scala compares to scala react.js . I am wondering what is the biggest project that uses Binding.scala?
Adam Hibble
@Algomancer_twitter
Hey Guys, throwing together a Play + Binding.scala template - https://github.com/Algomancer/Full-Stack-Scala-Starter
I know you guys have one, but I felt this this was a bit more traditional in terms of build set up from my experience. First time playing with binding.scala - let me know what you think.
Gonna be extending it into a SPA example most likely.
I am gonna be writing a few blogs about it, let me know if there are any points you'd like me to hit on. Would love a few quotes about 'Why Binding.scala'
Adam Hibble
@Algomancer_twitter
@Atry Do you mind if I use your Chinese post as a basis to build from? Google translate doesn't do it justice. I run the largest software student society in Australia - post will probably get a fair bit reads. Will link to your original post.
杨博 (Yang Bo)
@Atry
@Algomancer_twitter Of course. Go ahead!
You could also submit your template at http://lightbend.com/activator/template/contribute
Adam Hibble
@Algomancer_twitter
Already done :-) Just waiting for approval.
杨博 (Yang Bo)
@Atry
Cool!
Adam Hibble
@Algomancer_twitter
I have just started exploring it, but it appears to suit my use case pretty nicely. I plan to use it in production for my startup.
If it passes DD
杨博 (Yang Bo)
@Atry
Enjoy it. I will publish the rest Chinese articles about Binding.scala in couple of weeks on InfoQ.
Adam Hibble
@Algomancer_twitter
Regardless, Seems pretty nice - well done. I have yet to dig through the code base. But, what features are currently seeking contribution?
杨博 (Yang Bo)
@Atry
Recently, I myself is porting Binding.scala to JavaFX and FXML. I think it would be really good if you could create an Android port.
You can look into dom.scala, which is the Binding.scala DHTML intergration. It converts XML literals into binding expressions.
Adam Hibble
@Algomancer_twitter
Oh! Not a bad idea, would love to see a todo list / enhancement tag issues / road map for the project. Can't promise anything, but I tend to try and contribute to anything I use a lot. And if I decided to go with Binding.scala
(Y)
Whilst I play with it more. I might make some reusable components. Always nice to have.
What do you think is the best way to manage styles/css?
杨博 (Yang Bo)
@Atry
Yes, reusable components would be great.
I myself use SCSS and Bootstrap in our internal projects
With a sbt-sassify plugin
Adam Hibble
@Algomancer_twitter
I might see how ScalaCSS plays with it. https://github.com/japgolly/scalacss
杨博 (Yang Bo)
@Atry
IIRC @anthonyhoman have some expirences of using Binding.scala with ScalaCSS.
Adam Hibble
@Algomancer_twitter
Brilliant!
Adam Hibble
@Algomancer_twitter
@Atry if you had to give a one liner for the use case of scalajs-react vs Binding.scala - what would it be?
杨博 (Yang Bo)
@Atry
I guess it is "less concepts and more features"
Adam Hibble
@Algomancer
@Atry ha, my Full Stack Scala Starter is trending. https://github.com/trending/scala
杨博 (Yang Bo)
@Atry
Wow
Nikita Gazarov
@raquo
@Atry is it possible to use Bindings.scala without XML literals? I mean, similarly to how JSX's <div /> is equivalent to React.createElement(‘div’), is there an option to write Bindings.scala code using plain function calls instead of XML literals? I looked inside partialTransformXml in dom.scala… Seems like this would be quite complicated, right?
杨博 (Yang Bo)
@Atry
@raquo Yes. You can add a -Xprint:all flag to Scala compiler and see the equivalent plain expressions generated by Binding.scala