Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jared White
    @jaredcwhite
    @jgaskins Nice work on Clearwater. It's exciting times for Rubyists who want to code front-end in Ruby. :) I'll see if I can get some time to try it out soon. I'm currently working on a project that uses Opal but I have my own home-grown framework in place at present.
    Jamie Gaskins
    @jgaskins
    @jaredcwhite Thanks! I'm working on a docs/blog site for it at the moment.
    I'd really like to get people to be able to see what it can do besides the minimal app I posted in the realm.
    readme*
    Piotr Solnica
    @solnic
    hola
    Jamie Gaskins
    @jgaskins
    Oh, sweet, @solnic's here. The fun can begin!
    Piotr Solnica
    @solnic
    depends how you define “fun”, ha-ha
    Jamie Gaskins
    @jgaskins
    :-)
    Jamie Gaskins
    @jgaskins
    Initial implementation of components in
    jgaskins/clearwater@5ec7f9b
    I'd like components to be a drop-in replacement for views/controllers if possible. Still working on how we'd do that. I extracted that from one of our apps at work that I ported over to Clearwater.
    The porting isn't complete (I'm not being paid to do it, I'm just doing it to explore use cases for Clearwater), but it's the kind of app that lends itself very well to components instead of view/controller because of how compartmentalized everything is, so I'll keep playing around with it.
    One of the problems at the moment (mentioned in the commit) is that events are piling up and never getting removed. I'm working on a solution for that.
    Forrest Chang
    @fkchang
    @jgaskins Don't remember where I saw you write something along the lines of "thinking about looking at using crystal for clearwater backend", but I played with it some and I'm quite impressed, so lemme know if you think about doing it, I'd like to put head together w/yours on that one
    I did some playing around where crystal turned out to be faster than golang w/smaller binaries, so I think it's promising
    Jamie Gaskins
    @jgaskins
    @fkchang Nice! I've been looking at Amethyst (also, there's one called Amatista, which is Amethyst in Spanish?). I might give it a serious try this weekend.
    Forrest Chang
    @fkchang
    @jgaskins I think the problem is we'll have to implement some form of asset pipeline to simulate development w/Ruby as the backend
    Jamie Gaskins
    @jgaskins
    @fkchang Yeah, I think we'll probably have to shell out to Ruby or something to get the Opal assets compiled.
    Forrest Chang
    @fkchang
    Forrest Chang
    @fkchang
    @jgaskins so it looks like events are inlined on html elements via your dsl ala input({ class_name: 'search-articles', onkeyup: method(:search) }) is that the only method to attach events?
    Also, any method to attach css via the component
    Jamie Gaskins
    @jgaskins
    @fkchang Yep, that's currently all there is for attaching events. It works similarly to how React does it. The primary difference is that Clearwater uses the browser events rather than synthetic events like React does.
    @fkchang Also, by "attach css via the component", do you mean something like this:
    input(
      style: {
        background_color: 'pink',
        color: 'red',
      },
      onkeyup: method(:search),
    )
    Because that is valid in Clearwater and will give you an input field with red text on a pink background. :-)
    Jamie Gaskins
    @jgaskins
    @/all By the way, I've forgotten to mention up until now, since the Clearwater repo moved from my own GitHub account, the gitter channel is now also moved: https://gitter.im/clearwater-rb/clearwater