e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
cpup has quit [Ping timeout: 245 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 272 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
nickpassarella has joined #opal
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 276 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 272 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 276 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
boberetezeke1 has quit [Ping timeout: 240 seconds]
cpup has quit [Ping timeout: 246 seconds]
cpup has joined #opal
meh` has quit [Ping timeout: 244 seconds]
cpup has quit [Ping timeout: 256 seconds]
nickpassarella has quit [Read error: Connection reset by peer]
nickpassarella has joined #opal
boberetezeke has joined #opal
cpup has joined #opal
boberetezeke has quit [Ping timeout: 240 seconds]
e_dub has quit [Quit: e_dub]
e_dub has joined #opal
cpup has quit [Ping timeout: 245 seconds]
nickpassarella has quit [Ping timeout: 272 seconds]
nickpassarella has joined #opal
cpup has joined #opal
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 246 seconds]
cpup has joined #opal
boberetezeke has joined #opal
boberetezeke has quit [Ping timeout: 240 seconds]
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 264 seconds]
cpup has joined #opal
godd2 has quit [Ping timeout: 264 seconds]
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
boberetezeke has joined #opal
e_dub has quit [Read error: Connection reset by peer]
e_dub has joined #opal
boberetezeke has quit [Ping timeout: 240 seconds]
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
nickpassarella has quit [Quit: nickpassarella]
cpup has quit [Ping timeout: 245 seconds]
cpup has joined #opal
elia has joined #opal
_elia has joined #opal
cpup has quit [Ping timeout: 256 seconds]
_elia has quit [Read error: Connection reset by peer]
elia has quit [Ping timeout: 264 seconds]
cpup has joined #opal
elia has joined #opal
boberetezeke has joined #opal
cpup has quit [Ping timeout: 265 seconds]
boberetezeke has quit [Ping timeout: 255 seconds]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
cpup has joined #opal
elia has quit [Client Quit]
jlebrech has joined #opal
<jlebrech>
hi
<jlebrech>
I would be interested in opal if i could access a rails resource as if it were a class in the client. does that make sense?
cpup has quit [Ping timeout: 256 seconds]
elia has joined #opal
cpup has joined #opal
<elia>
adambeynon, morning! :)
cpup has quit [Ping timeout: 272 seconds]
<jlebrech>
hi elia
<elia>
hey
<jlebrech>
i have an idea for something using opal
<jlebrech>
remote objects
<jlebrech>
say you have a model in rails, you can turn it into a remote object, and that object is made accessible as a class in the frontend
cpup has joined #opal
<adambeynon>
morning elia
<adambeynon>
jlebrech: that is what I have played with recently. You create a whitelist of rails models you want to appear client side, and then opal auto-generates them
<adambeynon>
some parts work great, others are a bit awkward
<adambeynon>
the async nature of saving/updating/creating makes it difficult
<elia>
adambeynon, you saw my scheming from last night? :P
<adambeynon>
elia: of course ;)
<adambeynon>
makes sense
<adambeynon>
updating my apps to the rc1 now
<elia>
still wanted your approval and final check :)
<adambeynon>
ohhh, just noticed the spockets manifest stuff
<jlebrech>
adambeynon: say i have a angularjs app, rather then code an ajax call i just use a js object which does that ajax call for me and returns outputs of public methods
<adambeynon>
niceeee
<jlebrech>
that would be the idea
<jlebrech>
it would need a gem to autowire the baseurl when the library is loaded etc.
<elia>
adambeynon, sometimes you just need to wait to find a solution :)
cpup has quit [Ping timeout: 256 seconds]
boberetezeke has joined #opal
cpup has joined #opal
e_dub has quit [Quit: e_dub]
boberetezeke has quit [Ping timeout: 255 seconds]
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
<jlebrech>
does opal need dependency injection?
cpup has quit [Ping timeout: 256 seconds]
elia has quit [Read error: Connection reset by peer]
cpup has joined #opal
elia has joined #opal
cpup has quit [Read error: Connection reset by peer]
cpup has joined #opal
<jlebrech>
my app setup will go from: rails <- json -> angularjs to: rails <- yaml -> opal eventually
<jlebrech>
i want to go further and bypass the rails routing and resources all together for an RPC syste,
<jlebrech>
system*
elia has quit [Read error: Connection reset by peer]
boberetezeke has joined #opal
boberetezeke1 has joined #opal
boberetezeke has quit [Ping timeout: 255 seconds]
boberetezeke1 has quit [Ping timeout: 255 seconds]
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
cpup has quit [Ping timeout: 256 seconds]
cpup has joined #opal
elia has joined #opal
<elia>
jlebrech, what do you mean by "does opal need dependency injection?"?
<jlebrech>
elia: if we have all the ruby ways of including stuff, DI is kind of a different way of achieving that?
<elia>
jlebrech, you can totally do DI in Ruby, afaik
<jlebrech>
of course :D
<jlebrech>
i just mean the way it's done in js
<jlebrech>
ruby removes the need for the weirdness
<elia>
jlebrech, my bad, maybe I need a JS example
<jlebrech>
like how requirejs or angularjs does includes
<elia>
oh, I see, something like: `my_copy_of_stringio = require 'stringio'`?
<jlebrech>
yeah that kinda stuff
<jlebrech>
over thinking
<elia>
Not sure it's a good idea switching to that style…
<elia>
the infinite tree of deps you get in node for example has its downsides when it comes to passing around objects
<jlebrech>
in js it makes sense because you have to be really strict to stop code bleeding into each other
<jlebrech>
am i right?
<elia>
oh, well, not sure what's the concrete example for "code bleeding" :)
<elia>
anyway if you want to experiment in that direction I think it's possible to define classes & modules into local variables inside closures and have a register from which you can fetch them
<elia>
that, I guess, would work for both Opal and CRuby
<elia>
jlebrech, ^^^
<jlebrech>
ah, good idea. if dependency is needed
cpup has joined #opal
<adambeynon>
jlebrech: out of interest, have you seen volt? it doesnt use rails, but is built on Opal and does remove that middle layer between client and server
<jlebrech>
volt is like rails for the frontend
<jlebrech>
i'd like to see something that's like volt+rails
<jlebrech>
model (backend), view (frontend), controller (not sure)
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
cpup has quit [Ping timeout: 264 seconds]
boberetezeke has joined #opal
cpup has joined #opal
boberetezeke has quit [Ping timeout: 264 seconds]
jlebrech has quit [Remote host closed the connection]
cpup has quit [Ping timeout: 256 seconds]
e_dub has joined #opal
cpup has joined #opal
cpup has quit [Ping timeout: 245 seconds]
GitHub48 has joined #opal
<GitHub48>
[opalrb.org] adambeynon pushed 1 new commit to master: http://git.io/F1a6
<GitHub48>
opalrb.org/master 5fdac2c Adam Beynon: Remove blue border from code samples
GitHub48 has left #opal [#opal]
GitHub115 has joined #opal
<GitHub115>
[opalrb.org] adambeynon pushed 1 new commit to gh-pages: http://git.io/F1VY
GitHub115 has left #opal [#opal]
<GitHub115>
opalrb.org/gh-pages 2d3d1e4 Adam Beynon: Site updated to 5fdac2c
cpup has joined #opal
GitHub92 has joined #opal
GitHub92 has left #opal [#opal]
<GitHub92>
[opal] adambeynon pushed 1 new commit to master: http://git.io/F16b
<GitHub92>
opal/master 82e3275 Adam Beynon: Fix variable name to prevent error
cpup has quit [Ping timeout: 256 seconds]
jlebrech has joined #opal
travis-ci has joined #opal
<travis-ci>
opal/opal#2266 (master - 82e3275 : Adam Beynon): The build passed.