<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?
<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