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/
<e_dub> elia one useful/helpful thing: they created a node wrapper around oniguruma for Atom, for parsing the textmate bundles, so that should be easy enough to just wrap again
<elia> noted, thanks :)
<elia> lol, if they were using ruby as the basic lang that would have come for free…
<meh`> elia, Ruby is not hip anymore
<elia> awright, that baically means I'm old enough
DrShoggoth has quit [Quit: Leaving]
<elia> meh`, have you read recent tweets about js by tenderlove?
elia has quit [Quit: Computer has gone to sleep.]
harrow has quit [Ping timeout: 264 seconds]
harrow has joined #opal
<ryanstout> if anyone's interested, I did another volt video demoing validations and a few other things: https://www.youtube.com/watch?v=c478sMlhx1o
<ryanstout> and I updated the todo example video for all of the changes I've made: https://www.youtube.com/watch?v=6ZIvs0oKnYs
<ryanstout> if anyone watches it, feedback would be much appreciated :-)
adambeynon has quit [Ping timeout: 246 seconds]
lectrick__ has quit [Ping timeout: 246 seconds]
antonishen has quit [Ping timeout: 246 seconds]
lacrosse has quit [Ping timeout: 255 seconds]
adambeynon has joined #opal
lacrosse has joined #opal
antonishen has joined #opal
lectrick__ has joined #opal
lectrick__ has quit [Ping timeout: 246 seconds]
lacrosse has quit [Ping timeout: 246 seconds]
antonishen has quit [Ping timeout: 255 seconds]
adambeynon has quit [Ping timeout: 246 seconds]
lectrick__ has joined #opal
antonishen has joined #opal
lacrosse has joined #opal
adambeynon has joined #opal
e_dub has quit [Quit: It's a hard knock life]
meh` has quit [Ping timeout: 264 seconds]
skofo has joined #opal
<ryanstout> anyone here going to MWRC this week?
e_dub has joined #opal
Steve445 has joined #opal
Steve445 has quit [Client Quit]
skofo has quit [Ping timeout: 252 seconds]
e_dub has quit [Quit: ZZZzzz…]
e_dub has joined #opal
ryanstout has quit [Quit: ryanstout]
Steve445 has joined #opal
e_dub has quit [Ping timeout: 240 seconds]
e_dub has joined #opal
Steve445 has quit [Quit: Steve445]
e_dub has quit [Ping timeout: 264 seconds]
e_dub has joined #opal
Steve445 has joined #opal
Steve445 has quit [Quit: Steve445]
elia has joined #opal
kludge` has quit [Ping timeout: 246 seconds]
DouweM has quit [Ping timeout: 246 seconds]
kludge` has joined #opal
DouweM has joined #opal
_elia has joined #opal
elia has quit [Ping timeout: 240 seconds]
dimon_ has quit [Ping timeout: 246 seconds]
dimon_ has joined #opal
meh` has joined #opal
_elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
<e_dub> meh` looking a lot better, imo: https://gist.github.com/edubkendo/9602432#file-atom-rb if you spot anything else please let me know. Really appreciate the help.
<e_dub> gotta leave for the office like, ten minutes ago though.
e_dub has quit [Quit: It's a hard knock life]
DrShoggoth has joined #opal
DrShoggoth has quit [Quit: Leaving]
ch007m has joined #opal
<ch007m> What should be the syntax to be used to add several keys, values using Opal.hash2 ?
ryanstout has joined #opal
<adambeynon> hi ch007m: are your keys all strings/symbols?
<ch007m> Here is an example --> Opal.hash2(['attributes'], {'attributes': ['notitle!']}).
<adambeynon> so, multiple key/value pairs should be like:
<ch007m> What should I do if I would like to add more keys/values to attributes ?
<adambeynon> $hash2(["key1", "key2"], {"key1": "val1", "key2": "val2"})
<ch007m> or to add a new key = ['options']
<adambeynon> or, a nicer syntax is: $hash("key1, "val1", "key2", "val2")
<ch007m> Thx.
e_dub has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
ch007m has quit [Ping timeout: 246 seconds]
ch007m has joined #opal
ch007m has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has quit [Quit: Computer has gone to sleep.]
Kilo`byte has quit [Read error: Connection reset by peer]
Kilo`byte has joined #opal
DouweM has quit [Ping timeout: 252 seconds]
elia has joined #opal
elia has quit [Ping timeout: 255 seconds]
<meh`> e_dub, can you relink the gist?
<meh`> I had a comment but I don't remember what it was
<meh`> right
<meh`> #position= and #size= can be alias_native'd
<meh`> and in #window_dimensions= you shouldn't use .map
<meh`> use #{dimension.to_n}
<e_dub> ah, missed that .map. yeah, did not realize to_n would actually unbox those hashes so nicely until I was playing with it this morning . With the alias_native for size and position, I didn't know how to tell it how many args those take, but now I'm realizing it doesnt matter because `javascript`
<e_dub> do you just leave the args off completely then? `alias_native :size` full stop ?
<meh`> alias_native :size, :setSize
<meh`> documentation wise, if you're using YARD you can use the @!method macro
<meh`> alias_native just uses the magic Native(`obj`) uses for method dispatching
<meh`> so it can be a method, a function, a whatever
<meh`> it will do the right thing™
dimon_ has quit [Ping timeout: 255 seconds]
<e_dub> beautiful work
<e_dub> these shortcuts will make wrapping this stuff so much simply, and in the process, I'm finally learning how to use it effectively
<ryanstout> has anyone seen a bug where instance variables go to nil for no reason?
<meh`> ryanstout, no
<ryanstout> trying to isolate it now, just wanted to see if anyone else had seen anything like it
<ryanstout> adambeynon: are you around by chance?
<ryanstout> humm, maybe this is a chrome bug
<ryanstout> so I'm having an instance variable come back as nil, but if I do: console.log(this); the instance variable is in there in the console. What's really weird is if I do console.log(this.variable_name); I get the nil class (which is up in the prototype chain)
<ryanstout> this is the weirdest thing I've seen in years
<ryanstout> anyone have any ideas?
<ryanstout> why would console show anything different
<ryanstout> I'm literally doing: console.log(this, this.variable_name); and its returning the one further up, even though if I look at the this, its there in main object