lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
havenn has joined #ruby-lang
blacktulip has joined #ruby-lang
havenn has quit [Read error: No route to host]
dc5ala has joined #ruby-lang
<yorickpeterse>
namidark: http://joshrendek.com/2012/11/sidekiq-vs-resque/ not sure if you wrote this but you might want to rephrase "As of 1.9 the GIL (Global Interpreter Lock) is gone! But it’s only been renamed to the GVL "
<yorickpeterse>
It implies the GVL is something entirely different but the concept is still the same
fsvehla has quit [Quit: fsvehla]
<yorickpeterse>
Also, your example of the GC being "broken" isn't because it's broken
<yorickpeterse>
it's because you're storing data in an array and never cleaning it up
<yorickpeterse>
Nor does the GC know to clean it up itself since the context doesn't change and thus the variable remains valid
<yorickpeterse>
Let me just write this in the comments as well
Serial_Killer_C has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
mwjcomputing has joined #ruby-lang
vlad_starkov has joined #ruby-lang
voker57 has quit [Read error: Connection reset by peer]
lun__ has quit [Remote host closed the connection]
vlad_sta_ has quit [Read error: Connection reset by peer]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
lun_ has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
rub has joined #ruby-lang
lun_ has quit [Ping timeout: 246 seconds]
sailias has joined #ruby-lang
rippa has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 246 seconds]
lun_ has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
jxie has quit [Quit: leaving]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
sailias has quit [Quit: Leaving.]
imperator has joined #ruby-lang
nofxx has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 252 seconds]
<imperator>
good morning
erichmenge has joined #ruby-lang
<ddd>
morning
kurko_ has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
erichmenge has quit [Quit: Be back later]
dekroning has quit [Ping timeout: 265 seconds]
wyhaines has joined #ruby-lang
<andrewvos>
Anyone know a site that accepts emails to *@site.com and has an api you can access the emails with? Want to use it for integration testing.
dekroning has joined #ruby-lang
* imperator
does not
cored has quit [Ping timeout: 244 seconds]
<ddd>
not i
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
runeb has joined #ruby-lang
rippa has quit [Ping timeout: 264 seconds]
dekroning has quit [Ping timeout: 260 seconds]
dekroning has joined #ruby-lang
ddv has quit [Ping timeout: 240 seconds]
<tsou>
andrewvos: think it's faster to set up your own than find one
ddv has joined #ruby-lang
johndoy_ has quit [Ping timeout: 276 seconds]
<charliesome>
andrewvos: i wrote a dirt simple smtp server to do that
<charliesome>
i don't have the code on my at the moment, but it's basically a matter of listening on a socket
<charliesome>
reading in lines from the client, and sending back appropriate responses
dr_bob has joined #ruby-lang
anannie has quit [Remote host closed the connection]
herpless_ is now known as herpless
judofyr has quit [Remote host closed the connection]
<andrewvos>
charliesome: Yeah I would rather I don't have to write a whole new service.
<andrewvos>
charliesome: Something free would be nice.
<charliesome>
you could write a dirt simple smtp server in as many lines as it'd take to integrate into some 3rd party service
<charliesome>
also, if you can avoid actually sending the mail do that
<andrewvos>
charliesome: But then I need to deploy it somewhere etc.
<andrewvos>
charliesome: No I can't do that. The application I'm testing is not under my control.
<charliesome>
just run it in another thread in your test process
<charliesome>
ah
<charliesome>
yeah similar situation with mine
<andrewvos>
Oh well
<charliesome>
i just have my test runner create a new thread and listen there
mytrile has quit [Remote host closed the connection]
<andrewvos>
imperator: Just realised I also can't change the SMTP server.
<charliesome>
that's no fun!
<charliesome>
i wonder if you could set the MX record of some subdomain to 127.0.0.1
<andrewvos>
Programming is never fun, unless of course you're doing it at home alone.
dhruvasagar has quit [Ping timeout: 240 seconds]
Uranio has quit [Remote host closed the connection]
<andrewvos>
Naked.
* ddd
looks down at his boxers. "What? I'm not naked enough? Damn!"
bmaland has quit [Quit: leaving]
wyhaines has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
<imperator>
heya wyhaines
goyox86 has joined #ruby-lang
<imperator>
andrewvos, and now in colorado, i can do it while getting stoned too!
<andrewvos>
imperator: Is it legal there?
gmci has quit [Quit: Computer has gone to sleep.]
<imperator>
andrewvos, yeah, amendment 64 passed
<ddd>
there and washington
<andrewvos>
cool
<ddd>
imperator: aren't they the only two states to make it legal? (even though the federal gov still has it as a schedule 1 drug so it'll be interesting to see how the states in question handle *that*)
gmci has joined #ruby-lang
<imperator>
so far as i know, yes
<imperator>
yes, as our governor (John Hickenlooper) says, "That said, federal law still says marijuana is an illegal drug so don’t break out the Cheetos or gold fish too quickly."
<ddd>
i hope the feds decriminalize weed sometime this decade. I can see coke, meth, herin, and stuff, but weed? I mean when was the last time you read about someone knocking oveer an ATM to get their munchy on?
<ddd>
hahah gold fish
rub has quit [Ping timeout: 245 seconds]
goyox86 has quit [Remote host closed the connection]
<ddd>
s/herin/heroin/
<imperator>
i think it's more about how weed tends to become a lifestyle
lake has quit [Quit: WeeChat 0.3.7]
<imperator>
saw a bunch of kids fuck up their college careers doing nothing but smoking weed all day
mfn has joined #ruby-lang
<mfn>
hi
<imperator>
howdy mfn
gmci has quit [Client Quit]
<ddd>
it was first made illegal to 'stop the black man from ravaging our white women. they go crazy on mary jane'. talk about so late 1800s
<ddd>
imperator: yeah but thats due to lack of self control, not due to the drug itself unless you get shit weed that just knocks you out all day
<imperator>
"lack of self control" - that's kinda all drugs isn't it?
gmci has joined #ruby-lang
<imperator>
and college kids and self control don't really mix too well
<imperator>
but, we'll see how it goes
<ddd>
ehh, i can agree with that
<imperator>
i think basically it's come down to money - the state doesn't want to waste time enforcing and prosecuting, plus they can now tax it
<ddd>
that is going to be interesting. a single solitary non-sterile seed gets out, their tax plans go to shit
dc5ala has quit [Quit: Ex-Chat]
<yorickpeterse>
imperator: if that were true all of The Netherlands would be crack addicts by now
<wmoxam>
imperator: I don't know anyone who smoked less/didn't smoke weed because it was illegal
<wmoxam>
:p
<ddd>
i can't say i don't know people who won't smoke because its illegal.
<ddd>
then again i think those folks are nuts ;)
<wmoxam>
heh
<imperator>
yorickpeterse, different culture
<imperator>
i predict kids will go apeshit at first for a while, then we'll settle down
<ddd>
imperator: yeah thats exactly what I need
<yorickpeterse>
The only reason it's different here is because we did it a while ago
<yorickpeterse>
and the only reason it's not going to shit is because people learned to control it themselves instead of the government saying "NO!"
<yorickpeterse>
So yes, the sale of pot will grow but don't expect mass anarchy
<wmoxam>
I dunno
gmci has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby-lang
dfanjul has joined #ruby-lang
<wyhaines>
Morning imperator.
gmci has joined #ruby-lang
<imperator>
if mass anarchy happens i'll just throw cheetos and goldfish at them
<yorickpeterse>
clearly you need cops with pepperspray
<imperator>
tasty tasty pepperspray
<imperator>
back to ruby, did anyone here go to rubyconf?
<andrewvos>
whitequark: Sigh. I wish it was that easy. I need it hosted somewhere externally.
<andrewvos>
whitequark: And I'm not paying for an ec2 box.
<whitequark>
well, if you're that greedy (I assume that testing doesn't last longer than a bunch of days), then there are free VPS's on the net
Serial_Killer_C has quit [Remote host closed the connection]
<yorickpeterse>
andrewvos: I have a server for you, just sign this very vague contract that doesn't mention something about selling souls and anything at all :>
<whitequark>
virtualmaster.cz was one iirc
<andrewvos>
yorickpeterse: I would likely get fired for using "some guys server on the internet" :)
<whitequark>
andrewvos: if it's that important, get the one who needs that app to pay for a ec2 instance. no?
rippa has joined #ruby-lang
Serial_Killer_C has joined #ruby-lang
<yorickpeterse>
andrewvos: hey now, I'm a very trustworthy "guy on the internet"
<yorickpeterse>
Just give me your bank details first
dous has quit [Remote host closed the connection]
kurko_ has quit [Quit: Computer has gone to sleep.]
gnufied has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Uranio has joined #ruby-lang
<andrewvos>
:)
<andrewvos>
whitequark: Big companies tend to take a while with these things.
<andrewvos>
whitequark: I'll probably create a simple website that does it at some point. For now, I think i'm going to give up.
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
guns has quit [Quit: guns]
runeb has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
runeb has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
senekis has joined #ruby-lang
sn0wb1rd_ has joined #ruby-lang
d3vic3 has quit [Ping timeout: 245 seconds]
Spakman has quit [Quit: leaving]
tbuehlmann has joined #ruby-lang
d3vic3 has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
sn0wb1rd has quit [Ping timeout: 276 seconds]
sn0wb1rd_ is now known as sn0wb1rd
erichmenge has quit [Quit: Be back later]
apeiros_ has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
vlad_starkov has joined #ruby-lang
yanovitchsky has quit [Quit: yanovitchsky]
qwerxy has joined #ruby-lang
yanovitchsky has joined #ruby-lang
agarcia has quit [Quit: Konversation terminated!]
<yorickpeterse>
"Hack: remove this....." One year later
<yorickpeterse>
God I hate code like that
<yorickpeterse>
It's like a rotting corpse except people still try to make use of it
senekis has quit [Read error: Operation timed out]
blacktulip has quit [Ping timeout: 240 seconds]
blacktulip has joined #ruby-lang
<masterkorp>
ahahah
<FiXato>
whenever you add such comments, you should also include a date check at the same place; raising an exceptions if the code is still there a year later :P
<masterkorp>
#TODO: Fix this
<mfn>
lol
jimmy1980 has joined #ruby-lang
* FiXato
imagines that a year after people start using that approach, most Ruby-based websites suddenly go down :P
senekis has joined #ruby-lang
<whitequark>
better delete the file
krohrbaugh has quit [Quit: Leaving.]
<whitequark>
suicide by todos.
<yorickpeterse>
The best one:
<yorickpeterse>
TODO: remove this
<whitequark>
not entirely unlike death by a thousand papercuts
mytrile has quit [Remote host closed the connection]
<FiXato>
#Not sure why this works, but leave it in.
<yorickpeterse>
hnnnggg, 3 more weeks and this madness is over
<FiXato>
PANIIIIIIIIIIIIIIIIIIIIIIIC
<andrewvos>
If I ever write code like that I always include at least a paragraph of explanation and I put my name and date at the bottom.
<yorickpeterse>
shut up andrew
<yorickpeterse>
don't mock my old doc style
<andrewvos>
:(
<andrewvos>
yorickpeterse: Oh lordy I just saw your paste. Scary.
<yorickpeterse>
Personally I feel I go a bit over the top sometimes
<andrewvos>
yorickpeterse: A while ago I went over to support this team who were writing an api in java. There was this one model class that just had a huge amount of properties on it. At the top of the file there was a 5 step process to add a new property. Like, there were comments explaining how to add a property to the class.
<yorickpeterse>
ha
<yorickpeterse>
Step 1: open your editor
<yorickpeterse>
step 1.a: make sure that X is installed
<apeiros_>
alias is indeed a keyword, and unlike what the article misses is that alias can also be used to alias global variables
<apeiros_>
(not that you actually should do that)
<apeiros_>
(since you shouldn't be using globals in the first place)
<apeiros_>
and other than alias being convenient in that you don't need to write a : nor a , to use it, there's no reason I'm aware of to use it instead of alias_method
andrewhl has joined #ruby-lang
<banisterfiend>
apeiros_: you can use it defensively against some freak show that replaces alias_method with loop { puts "lol" }
alvaro_o has joined #ruby-lang
<apeiros_>
but you're not safe against a custom preprocessor which replaces alias with something insane!
<andrewvos>
def alias_method; puts "NOEP LOL"; end
<yorickpeterse>
wat
bastilian has quit [Quit: Leaving...]
gmci has joined #ruby-lang
gmci has quit [Max SendQ exceeded]
krohrbaugh has joined #ruby-lang
gmci has joined #ruby-lang
gmci is now known as Guest25517
dfanjul has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
krohrbaugh has quit [Client Quit]
krz has quit [Quit: krz]
banisterfiend has quit [Ping timeout: 245 seconds]
rue has joined #ruby-lang
dfanjul has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 276 seconds]
dpatel has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
blazes816 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<andrewvos>
I have a class in front of my eyes that takes a "browser" as a parameter in initialize. It then goes on to use this browser object one billion times. Thinking of using method_missing to forward on any calls this class makes to the browser object. Should I just not do that and go home?
<apeiros_>
the latter
<apeiros_>
magic--
<andrewvos>
Yeah I agree. TIME TO GO PICK UP MY NEW MACBOOK AIR FROM UPS!!
<whitequark>
oh, yes, also global variables.
imperator has quit [Quit: Leaving]
siyusong has joined #ruby-lang
sush24 has joined #ruby-lang
ryanlecompte has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
retro|cz has quit [Ping timeout: 244 seconds]
fsvehla has joined #ruby-lang
fsvehla has quit [Remote host closed the connection]
fsvehla has joined #ruby-lang
dekroning has joined #ruby-lang
bpuzzled has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
cultureulterior_ has quit [Read error: Connection reset by peer]
runeb has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
methods has joined #ruby-lang
__butch__ has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
jmeeuwen has quit [Ping timeout: 244 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
jmeeuwen has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 246 seconds]
cschwartz has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
wwalker has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
krz has joined #ruby-lang
cschwartz has quit [Ping timeout: 268 seconds]
ryanlecompte has quit [Remote host closed the connection]
ryanlecompte has joined #ruby-lang
erichmenge has joined #ruby-lang
<wwalker>
vim colorscheme? syntax/ruby.vim exposes 90+ element types, yet most color schemes lump them all into about 7 colors. anyone using a scheme that is dark background and uses more colors (not 90, but maybe 10 to 15 differentiating some more stuff?
blacktulip has quit [Remote host closed the connection]
array_ has joined #ruby-lang
darix- has joined #ruby-lang
darix- has quit [Changing host]
darix- has joined #ruby-lang
woollyams has joined #ruby-lang
<tsou>
tockitj_: why would you compare classes with === and not with == ?
KnowTheLedge has quit [Read error: Connection reset by peer]
Rizzle has quit [Read error: Connection reset by peer]
wnd has quit [Excess Flood]
kith has quit [Ping timeout: 264 seconds]
array has quit [Ping timeout: 264 seconds]
darix has quit [Ping timeout: 264 seconds]
bcardarella has quit [Ping timeout: 264 seconds]
nitti_ has joined #ruby-lang
darix- is now known as darix
KnowTheLedge has joined #ruby-lang
bcardarella has joined #ruby-lang
kith_ has quit [Ping timeout: 244 seconds]
<tockitj_>
thou, i'm using case to determine class type
<tockitj_>
tsou
<tsou>
not even Hash === Hash is true, not sure why though ;)
nitti has quit [Ping timeout: 252 seconds]
<tockitj_>
{} === Hash
<bluepojo>
> {a: 'b'} === Hash
<bluepojo>
=> false
nitti_ has quit [Remote host closed the connection]
<tockitj_>
try other way around
<apeiros_>
tsou: because Hash is not an instance of Hash
<tockitj_>
Hash === {}
<apeiros_>
which is what Class#=== tests
<bluepojo>
=> true
<bluepojo>
{}.kind_of? Hash
<bluepojo>
;)
<tsou>
apeiros_: thanks ;)
<tockitj_>
apeiros_, say you want to handle each of possible 10 types of given parameter class individually - how would you do it ?
<apeiros_>
I wouldn't. that sounds like a horrible code smell.
<apeiros_>
case obj; when KlassA …; when KlassB …; …
siyusong has joined #ruby-lang
<tockitj_>
apeiros_, thanks
<tockitj_>
why does it sound like that ?
<apeiros_>
because it most likely means that you're having a method that does by far too much
<apeiros_>
and/or discriminates by type instead of behavior
nitti has joined #ruby-lang
<tockitj_>
i have recurrent hash structure i want to process (if nested object is array or hash, need to go deeper into recurrence)
<tockitj_>
also i'd like to handle several leaf nodes specially.. therefore i need this case
<tockitj_>
do you know a way to do this more elegantly ?
sailias has joined #ruby-lang
<tockitj_>
its very concrete 20 line method
lun_ has quit [Remote host closed the connection]
<apeiros_>
well, since those are core classes, no. normally you'd add methods to the classes and have them use the same name. then just call that method.
thinkdevcode has quit [Remote host closed the connection]
methods has joined #ruby-lang
<tockitj_>
something like composite pattern ?
methods has quit [Client Quit]
methods has joined #ruby-lang
Austin__1 has quit [Quit: Leaving.]
yanovitchsky has quit [Quit: yanovitchsky]
<tockitj_>
so is it still bad code or not ?
<bluepojo>
seems reasonable
<zenspider>
tockitj_: sure sounds like a case for proper object orientation...
<zenspider>
you're using hashes and arrays when you should be using real classes/instances
<tockitj_>
sent_hil, that definition seems problematic
<tockitj_>
however, question is can these functions be self called
<tockitj_>
to have 'inline' recursive block/lambda/whatever
<zenspider>
*tap tap* is this thing on?
<zenspider>
block/lambda/whatever are _closures_
<tockitj_>
whatever is closure ? :)
<zenspider>
oh... is google down again?
* amerine
grabs some popcorn
<tockitj_>
besides, there is example on previous SO page on recurrent block
nitti has quit [Remote host closed the connection]
outoftime has quit [Quit: Leaving]
kjr has quit [Quit: kjr]
<tockitj_>
however, i'd like it to be anonymous.. in that example it was given name
jmeeuwen has quit [Read error: Connection reset by peer]
jmeeuwen has joined #ruby-lang
<zenspider>
assigning a lambda to a local variable is not considered giving a method a name
<TTilus>
tockitj_: why do you not wanna assign it to a var?
<tockitj_>
of course not, lambda != method
<tockitj_>
TTilus, why would i ?
<tockitj_>
for same reason blocks are not given names
wyhaines_ has joined #ruby-lang
<TTilus>
tockitj_: you wouldnt need a combinator to do what you are aiming at :)
benanne has quit [Quit: kbai]
<tockitj_>
is there a way to reference an executing proc, from within a proc
<TTilus>
no
wyhaines has quit [Read error: Connection reset by peer]
<zenspider>
blocks have names. whether YOU know the name, it still has them.
headius has joined #ruby-lang
<tockitj_>
this is trivial to dispute :S
Gordian has quit []
<tockitj_>
how to reference a block from block itself ?
<andrewvos>
YAY new macbook
<andrewvos>
Mountain Lion is a bit hard to get running with though.
<TTilus>
tockitj_: if you want to recursively call proc without writing an assignment, use combinator
<tockitj_>
TTilus, what is combinator ?
<zenspider>
andrewvos: you got a new macbook and downgraded it? heh
<zenspider>
which one did you get?
<TTilus>
tockitj_: function combining functions
<andrewvos>
zenspider: Wait, isn't Mountain Lion the new one?
<zenspider>
google is down AGAIN? wow
<andrewvos>
zenspider: Got the 11 inch
<zenspider>
andrewvos: *sigh* yes... yes it is. I need more coffee
<TTilus>
zenspider: :) they have loads of problems today
<zenspider>
andrewvos: how do you like the 11? my hands are huge and the top row bugs me
chrismcg is now known as zz_chrismcg
<banisterfiend>
andrewvos: what specs did u get
<andrewvos>
zenspider: I can never remember what the new one is with these stupid names. When people talk about "mountain lion this snow leopard that" I just kind of go to a happy place.
<andrewvos>
banisterfiend: Got highest specs I could except for the storage, which is 256.
<banisterfiend>
cool
<andrewvos>
It's soo small :)
Serial_Killer_C has quit [Remote host closed the connection]
<zzak>
shoulda go a 13
<zzak>
better battery
Kingy has joined #ruby-lang
<banisterfiend>
huge differnece in portability between 13 and 11
<banisterfiend>
and 5 hour battery isnt bad
<banisterfiend>
at least it hasn't bugged me yet
<zenspider>
andrewvos: mmmm kitties
<andrewvos>
zzak: Yeah I know, the battery on this sucks. Thing is, I'm always plugged in.
<zenspider>
13's battery is AMAZING
<zenspider>
I fucking love this laptop...
<andrewvos>
banisterfiend: zenspider: Exactly. I could almost put this thing in my pocket.
<zenspider>
prolly could with cargo pants
<andrewvos>
Yeah, I've still got a 13 around if I take a flight or something. Honestly don't think I'll notice the battery life though.
<zenspider>
they should make that... I'd do it
<andrewvos>
Yeah, but then I have a new problem ;)
<zzak>
apple pants (tm)
<zenspider>
I'm almost never plugged in, so that's the big difference
<andrewvos>
hehehe
<zzak>
ipants rather
<zenspider>
I generally don't even take my power adapter with me on a daily basis
<andrewvos>
zenspider: Either that sounds cool, or you just are in too many meetings :/
herpless has quit [Remote host closed the connection]
herpless_ has joined #ruby-lang
<zenspider>
tenderlove has an 11" so the pants would be ideal for him... but he is almost always wearing hipster pants so I doubt he'd buy them
havenn has quit [Remote host closed the connection]
<TTilus>
tockitj_: look ma! no assignments!
<banisterfiend>
zenspider: do u have the maxed out 2012 model?
<andrewvos>
zenspider: Oh wow. Guess you don't run VirtualBox then :)
bfreeman has quit [Read error: Connection reset by peer]
sebastianb has joined #ruby-lang
havenn has joined #ruby-lang
<tockitj_>
TTilus, thanks - that looks good
<zenspider>
banisterfiend: yeah
bfreeman has joined #ruby-lang
<banisterfiend>
cool
<TTilus>
tockitj_: but it is obviously way simplier just to assign the recursed block to var
<zenspider>
andrewvos: hah. no. I can't even figure out virtual box for that matter... I've stuck to vmware for the UI, but I don't use it much
<banisterfiend>
next gen mbas are likely getting retinas
<tockitj_>
though.. would be better if proc could just reference self somehow
<andrewvos>
Oh, one thing I immediately noticed is the ESC key is frikkin tiny.
<banisterfiend>
probably 2013 :)
sent_hil has left #ruby-lang [#ruby-lang]
* zzak
waits
__butch__ has quit [Quit: Leaving.]
<zenspider>
andrewvos: exactly
<zenspider>
banisterfiend: I highly doubt it
<zenspider>
airs are the consumer level laptops... replacing the ibook
<andrewvos>
zenspider: Yeah at my previous role it was all about vagrant/virtualbox and lately I've been running the Android emulator. Basically my battery lasts an hour max while working.
<zenspider>
retina will prolly remain a pro level feature
<zenspider>
andrewvos: hah
<TTilus>
tockitj_: if you are gonna use that in a real life app, DONT!
<andrewvos>
zenspider: A bit scared when I go in to work tomorrow and try use vim with this little ESC key. Might map CAPSLOCK to ESC or something :/
<zenspider>
is android that bad?
<andrewvos>
zenspider: No just the emulator uses a lot of battery.
alexkira has quit [Remote host closed the connection]
<tockitj_>
TTilus, its just y combinator ;)
<zenspider>
I wonder why... what's the processor in an android?
havenn_ has joined #ruby-lang
<andrewvos>
zenspider: I think it's ARM and something else. That's the choice you get in the emulator.
<apeiros_>
damn, wtf did they mutilate Object#inspect ?
<apeiros_>
and how do I get it back? :(
<TTilus>
tockitj_: thets the exact reason :)
<zenspider>
apeiros_: ??
<apeiros_>
zenspider: Object#inspect is now #to_s
<andrewvos>
What, in 2?
<apeiros_>
and to_s does not show the ivars in the object
<apeiros_>
no, in 1.9.3
<andrewvos>
What?
<tockitj_>
TTilus, if Enumerator methods could reference self, they could process recursive structures that simply implement Enumerator
<tockitj_>
instead of just dealing with flat lists & hashes
<tockitj_>
thats way more powerful
<TTilus>
apeiros_: dont believe u
havenn has quit [Ping timeout: 240 seconds]
<zenspider>
apeiros_: I see ivars across all my versions
<zenspider>
multiruby -e 'o = Object.new; o.instance_variable_set :@a, 42; p o'
<zenspider>
or am I still needing coffee?
<zenspider>
hrm... I should do that.
<andrewvos>
Holy shit multiruby. Damn
<apeiros_>
zenspider: hrm, maybe something in irbrc is messed up then…
<TTilus>
tockitj_: i just cant see hows that not possible right now
<tockitj_>
TTilus, i don't
<apeiros_>
zenspider: def o.to_s; "hi"; end
<apeiros_>
now o.inspect is fucked up
<tockitj_>
TTilus, can we settle on not using both y-combinators and double negation ?
qwerxy has joined #ruby-lang
<apeiros_>
and Object.instance_method(:to_s).bind(o).call is fucked up too, no ivars
<TTilus>
tockitj_: agreed
<tockitj_>
ok.. how to do better than y combinator ?
<tockitj_>
need proc to reference self
<apeiros_>
seriously, this is odd behavior…
datanoise has quit [Ping timeout: 255 seconds]
<TTilus>
tockitj_: sorry, need sleep, its past 1am for me
* TTilus
zzleeps
<tockitj_>
how to saayy.. use .map on tree-like structure stored in nested hashes ??
<tockitj_>
without defining method
<TTilus>
tockitj_: dont use nested hash, do proper oo and ruby loves you
nitti has joined #ruby-lang
<tockitj_>
TTilus, they are part of _life_. Lets face it.
<zenspider>
apeiros_: all versions default to to_s.