meh` changed the topic of #opal to: http://opalrb.org - Ruby runtime and library on top of Javascript | 1.0.0 is near | This channel is logged at https://botbot.me/freenode/opal/
dimaursu16 has quit [Ping timeout: 240 seconds]
ryanstout has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
meh`_ has joined #opal
meh` has quit [Ping timeout: 264 seconds]
RoxasShadowRS has quit [Quit: Leaving]
e_dub has joined #opal
meh`_ has quit [Ping timeout: 252 seconds]
Liothen has quit [Quit: System of a down……]
Liothen has joined #opal
Steve445 has joined #opal
Steve445 has quit [Quit: Steve445]
ryanstout has quit [Quit: ryanstout]
dimaursu16 has joined #opal
ryanstewart has quit [Read error: Connection reset by peer]
ryanstewart has joined #opal
dimaursu16 has quit [Ping timeout: 240 seconds]
RoxasShadowRS has joined #opal
dimaursu16 has joined #opal
elia has joined #opal
kludge` has quit [Ping timeout: 272 seconds]
kludge` has joined #opal
dimaursu16 has quit [Ping timeout: 265 seconds]
dimaursu16 has joined #opal
Liothen has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
dimaursu16 has quit [Ping timeout: 240 seconds]
meh` has joined #opal
dimaursu16 has joined #opal
dimaursu16 has quit [Ping timeout: 248 seconds]
e_dub has quit [Quit: It's a hard knock life]
fkchang has joined #opal
Liothen has joined #opal
ryanstout has joined #opal
dimaursu16 has joined #opal
e_dub has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
DrShoggoth has joined #opal
ylluminate has joined #opal
e_dub has quit [Quit: ZZZzzz…]
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
ryanstout has quit [Quit: ryanstout]
e_dub has joined #opal
elia has joined #opal
DrShoggoth has quit [Ping timeout: 245 seconds]
DrShoggoth has joined #opal
ryanstout has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
<ryanstout> adambeynon: how's it going? have you had time to work on that experimental branch much?
<ryanstout> adambeynon: the one where method names were the same in JS and opal
<adambeynon> hi ryanstout: not played with it too much for a week or so. The problem of method clashing it too much. We would have to special case about 12 arrays methods, same on string and numeric as well. then there is the problem of not being able to call methods on nil
<adambeynon> I think it has potential as a coffeescript style language, but not so much as a opal style with a ruby corelib
<ryanstout> yea
<ryanstout> oh well, it was an interesting idea
<ryanstout> probably better to prefer ruby compatibility
<adambeynon> ryanstout: yeah. maybe come back to it when I have some more time
<adambeynon> ryanstout: how do you handle formatting in voltrb
<adambeynon> say, a model attr into a currency
<adambeynon> or does the reactor stuff do that in itself
<ryanstout> in most cases the reactive stuff will handle it
<ryanstout> so if you had a method like this:
<ryanstout> def dollars(number) ; return '$' + number.to_s ; end
<ryanstout> that would work fine
<ryanstout> but things like string interpolation don't return another reactive
<ryanstout> so there's a few gotchya's
<ryanstout> usually though anything interacting with a reactive value produces a new reactive value with the dependencies tracked
<ryanstout> and from bindings, all method calls go to the controllers, so you could just include a "helpers" module in the controller
<ryanstout> I'm planning on doing some of those number formatting, time, etc.. out of the box
<adambeynon> yeah, would be nice to have a default set in there
<ryanstout> yea
<adambeynon> also good to know the reactive stuff should be able to handle the helper things
<ryanstout> I really think there's some cool stuff you could do with reactive time values
<ryanstout> like having it where you can make a reactive time, then say .live_minutes or something, and have it issue a changed value every minute, to automatically create a countdown timer or something
<ryanstout> so times handle their own updating
<ryanstout> {some_time.in_minutes.strftime('....')}
<ryanstout> ^live_minute, not in minutes
<ryanstout> adambeynon: how does it work in vienna with helpers?
<ryanstout> I haven't really put a ton of thought into it for volt yet
<adambeynon> ryanstout: kinda struggling with it. at the moment, I dont really use a reactor style approach, but more of a simple observer
<adambeynon> like cocoa/ember
<adambeynon> so, you have to do something like:
<adambeynon> <div data-bind="amount | format_currency"></div>
<adambeynon> so when it updates, it runs each formatter in turn (which are either global or methods on the view class)
<ryanstout> cool, yea I've seen that style a lot
<adambeynon> batman.js uses it as well (the more I read on batman, the more I like it)
<adambeynon> just glad I dont have to have lots of get() and set () methods :)
<ryanstout> yea, the get/set stuff is a pain
<ryanstout> I think thats part of the reason angular is winning over ember
dleedev has joined #opal
DrShoggoth has quit [Quit: Leaving]
dleedev has quit [Ping timeout: 252 seconds]
elia has quit [Quit: Computer has gone to sleep.]