apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p353: http://ruby-lang.org (Ruby 1.9.3-p484) || Paste >3 lines of text on http://gist.github.com || RubyConf 2013 at http://www.justin.tv/confreaks
robbyoconnor has quit [Ping timeout: 250 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
g-nee has joined #ruby-lang
sevvie has joined #ruby-lang
benkhicks has quit [Quit: Leaving.]
vlad_starkov has joined #ruby-lang
benkhicks has joined #ruby-lang
benkhicks has quit [Client Quit]
anulman has joined #ruby-lang
VTLob has quit [Quit: VTLob]
g-nee has quit [Remote host closed the connection]
makoto_ has joined #ruby-lang
DeProdigy has joined #ruby-lang
MrZYX is now known as MrZYX|off
tylersmith has joined #ruby-lang
makoto_ has quit [Ping timeout: 265 seconds]
DeProdigy has quit [Ping timeout: 264 seconds]
tharindu_ has joined #ruby-lang
tharindu has quit [Ping timeout: 246 seconds]
thmzlt has quit []
x0f_ has joined #ruby-lang
g-nee has joined #ruby-lang
x0f has quit [Ping timeout: 246 seconds]
bougyman has quit [Quit: Reconnecting]
bougyman has joined #ruby-lang
michaeldeol has joined #ruby-lang
coca_rails has joined #ruby-lang
cyndis has quit [Quit: No Ping reply in 180 seconds.]
cyndis has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 246 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
bin8me has joined #ruby-lang
Rylee has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
bin7me has quit [Ping timeout: 252 seconds]
benkhicks has joined #ruby-lang
houhoulis has joined #ruby-lang
jonahR has quit [Quit: jonahR]
benkhicks has quit [Ping timeout: 245 seconds]
nathanstitt has joined #ruby-lang
jonahR has joined #ruby-lang
wudofyr has quit [Ping timeout: 272 seconds]
g-nee has quit [Remote host closed the connection]
benkhicks has joined #ruby-lang
wudofyr has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
h0rrorvacui has joined #ruby-lang
benkhicks has quit [Client Quit]
tkuchiki has joined #ruby-lang
Rylee has joined #ruby-lang
lagging_troll has joined #ruby-lang
<lagging_troll> i have a question about some strange behavior with Hash.new([]) , anyone care to take a look?
<lagging_troll> apologies but my googling was too amateur to find the explaination
robbyoconnor has joined #ruby-lang
tkuchiki has quit [Ping timeout: 265 seconds]
DeProdigy has joined #ruby-lang
spinky has joined #ruby-lang
snsei has joined #ruby-lang
<whitequark> lagging_troll: you're using the same array for all values
<whitequark> check it with h[:a].object_id == h[:b].object_id
<whitequark> fix it with Hash.new { [] }
<lagging_troll> oh nice.. now i feel silly
<apeiros> note that Hash.new { [] } will not store the returned array in the hash
<apeiros> Hash.new { |hash,key| hash[key] = [] } # to also save it
<lagging_troll> apeiros: yes, that code works how I expected
<lagging_troll> makes much more sense now
<lagging_troll> thanks for the help
g-nee has joined #ruby-lang
g-nee has quit [Remote host closed the connection]
lagging_troll has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
iliketur_ has joined #ruby-lang
makoto_ has joined #ruby-lang
iliketu__ has joined #ruby-lang
iliketur_ has quit [Ping timeout: 250 seconds]
DeProdigy has quit [Read error: Connection reset by peer]
DeProdigy has joined #ruby-lang
dvorak has quit [Ping timeout: 246 seconds]
makoto_ has quit [Ping timeout: 252 seconds]
hhatch has quit [Ping timeout: 250 seconds]
dvorak has joined #ruby-lang
mistym has joined #ruby-lang
tkuchiki has joined #ruby-lang
marr has quit [Ping timeout: 265 seconds]
mistym has quit [Ping timeout: 250 seconds]
nertzy has joined #ruby-lang
bin8me has quit [Quit: Leaving]
nevill has joined #ruby-lang
spinky has quit [Ping timeout: 260 seconds]
tylersmith has quit [Remote host closed the connection]
michaeldeol has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby-lang
coca_rails has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
kitak_ has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 246 seconds]
kitak has joined #ruby-lang
DeProdigy has quit [Read error: Connection reset by peer]
DeProdigy has joined #ruby-lang
mannyt has joined #ruby-lang
anulman has quit [Quit: Leaving.]
mootpointer has quit [Ping timeout: 246 seconds]
nisstyre has joined #ruby-lang
arooni-mobile has joined #ruby-lang
momomomomo has joined #ruby-lang
snsei has quit [Quit: Leaving...I hear my mom calling...]
koopa_ has joined #ruby-lang
AKASkip has quit [Ping timeout: 246 seconds]
koopa_ has quit [Client Quit]
snsei has joined #ruby-lang
elia_ has quit [Read error: Connection reset by peer]
elia_ has joined #ruby-lang
benkhicks has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
benkhicks has quit [Read error: Operation timed out]
<micalexander> how can I copy hidden files in ruby?
g-nee has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
arooni-mobile__ has joined #ruby-lang
apeiros has quit [Ping timeout: 245 seconds]
arooni-mobile has quit [Ping timeout: 245 seconds]
hellome has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Read error: No route to host]
coca_rails has quit [Ping timeout: 245 seconds]
rushed has joined #ruby-lang
rixth has joined #ruby-lang
h0rrorvacui has quit [Quit: Leaving]
rixth has quit [Client Quit]
bzalasky has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 265 seconds]
snsei has quit [Quit: Leaving...I hear my mom calling...]
clamstar has joined #ruby-lang
hellome has quit [Read error: Connection reset by peer]
snsei has joined #ruby-lang
snsei has quit [Client Quit]
<micalexander> copy and paste dot files anyone
benkhicks has joined #ruby-lang
hellome has joined #ruby-lang
ccitizen has quit [Ping timeout: 264 seconds]
concernedcitizen has joined #ruby-lang
dvorak has quit [Ping timeout: 252 seconds]
Cakey has joined #ruby-lang
dvorak has joined #ruby-lang
makoto_ has joined #ruby-lang
benkhicks has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
Barrin6 has quit [Quit: Leaving]
g-nee has quit [Remote host closed the connection]
g-nee has joined #ruby-lang
mdedetrich has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
makoto_ has quit [Ping timeout: 250 seconds]
Tectonic has quit []
yxhuvud has quit [Ping timeout: 246 seconds]
yxhuvud has joined #ruby-lang
hellome has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 260 seconds]
benkhicks has joined #ruby-lang
hellome has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby-lang
michaeldeol has joined #ruby-lang
datanoise has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 260 seconds]
nathanstitt has joined #ruby-lang
tylersmith has joined #ruby-lang
g-nee has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
iliketu__ has quit [Quit: zzzzz…..]
dhruvasagar has joined #ruby-lang
tylersmith has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
g-nee_ has joined #ruby-lang
unrealhoang has joined #ruby-lang
retro|cz has quit [Ping timeout: 250 seconds]
|jemc| has quit [Ping timeout: 264 seconds]
nathanstitt has quit [Quit: I growing sleepy]
knu has quit [Ping timeout: 246 seconds]
benkhicks has quit [Quit: Leaving.]
robbyoconnor has joined #ruby-lang
coca_rails has joined #ruby-lang
kek has quit [Remote host closed the connection]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
iliketur_ has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
tharindu_ has quit [Read error: Connection reset by peer]
g-nee_ has quit [Read error: Connection reset by peer]
g-nee has joined #ruby-lang
coca_rails has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
nertzy2 has joined #ruby-lang
apeiros has quit [Ping timeout: 265 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
seanlinsley has quit [Quit: seanlinsley]
seanlinsley has joined #ruby-lang
hakunin_ is now known as hakunin
nertzy has quit [Ping timeout: 250 seconds]
makoto_ has joined #ruby-lang
guns has joined #ruby-lang
tylersmith has joined #ruby-lang
makoto_ has quit [Ping timeout: 246 seconds]
mannyt has quit []
unrealhoang has quit [Remote host closed the connection]
tylersmith has quit [Read error: Connection reset by peer]
seoaqua has joined #ruby-lang
tylersmith has joined #ruby-lang
seoaqua has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
unrealhoang has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
benkhicks has joined #ruby-lang
jonahR has quit [Quit: jonahR]
iliketur_ has quit [Quit: zzzzz…..]
fijimunkii has joined #ruby-lang
iliketur_ has joined #ruby-lang
michaeldeol has joined #ruby-lang
iliketur_ has quit [Ping timeout: 265 seconds]
anulman has joined #ruby-lang
michaeldeol has quit [Ping timeout: 264 seconds]
Tectonic has joined #ruby-lang
coca_rails has joined #ruby-lang
coca_rails has quit [Read error: Connection reset by peer]
guns has quit [Quit: guns]
coca_rails has joined #ruby-lang
DEac- has quit [Ping timeout: 260 seconds]
hogeo has joined #ruby-lang
bzalasky has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
g-nee has quit [Remote host closed the connection]
hogeo_ has joined #ruby-lang
hogeo has quit [Read error: Connection reset by peer]
sevvie has quit [Quit: leaving]
coca_rails has quit [Remote host closed the connection]
benkhicks has quit [Quit: Leaving.]
g-nee has joined #ruby-lang
CaptainJet has quit []
hogeo_ has quit [Ping timeout: 264 seconds]
g-nee has quit [Read error: Connection reset by peer]
g-nee has joined #ruby-lang
clamstar has quit [Quit: Textual IRC Client: www.textualapp.com]
iliketur_ has joined #ruby-lang
dvorak has quit [Ping timeout: 260 seconds]
Cakey has joined #ruby-lang
makoto_ has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
dvorak has joined #ruby-lang
anulman has quit [Ping timeout: 260 seconds]
fijimunkii has quit [Ping timeout: 245 seconds]
makoto_ has quit [Ping timeout: 260 seconds]
mistym has quit [Remote host closed the connection]
fijimunkii has joined #ruby-lang
g-nee has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
anulman has joined #ruby-lang
vsorlov has joined #ruby-lang
michaeldeol has joined #ruby-lang
DeProdigy has quit [Ping timeout: 245 seconds]
soba has joined #ruby-lang
nisstyre has quit [Remote host closed the connection]
michaeldeol has quit [Remote host closed the connection]
soba has quit [Ping timeout: 252 seconds]
Barrin6 has joined #ruby-lang
unrealhoang has quit [Remote host closed the connection]
vsorlov has quit [Read error: Operation timed out]
batchitcray has joined #ruby-lang
nevill has quit [Quit: nevill]
gianlucadv has joined #ruby-lang
Oak has joined #ruby-lang
coca_rails has joined #ruby-lang
DeProdigy has joined #ruby-lang
knu has joined #ruby-lang
wongon has quit [Quit: wongon]
DeProdigy has quit [Ping timeout: 250 seconds]
iliketur_ has quit [Ping timeout: 245 seconds]
bfleischer has quit [Read error: Operation timed out]
iliketur_ has joined #ruby-lang
jxpx777 has joined #ruby-lang
unrealhoang has joined #ruby-lang
iliketur_ has quit [Ping timeout: 260 seconds]
iliketur_ has joined #ruby-lang
arooni-mobile__ has quit [Ping timeout: 260 seconds]
Tectonic has quit []
michaeldeol has joined #ruby-lang
rushed has quit [Quit: rushed]
jxie has quit [Quit: leaving]
makoto_ has joined #ruby-lang
jxie has joined #ruby-lang
michaeldeol has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 250 seconds]
g-nee has joined #ruby-lang
bzalasky has joined #ruby-lang
fuhgeddaboudit has joined #ruby-lang
makoto_ has quit [Ping timeout: 260 seconds]
knu has quit [Ping timeout: 260 seconds]
rushed has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
DeProdigy has joined #ruby-lang
g-nee has quit [Read error: Connection reset by peer]
g-nee has joined #ruby-lang
g-nee has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
g-nee has joined #ruby-lang
dhruvasagar has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
DeProdigy has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby-lang
nevill has joined #ruby-lang
michaeldeol has joined #ruby-lang
gianlucadv has quit [Ping timeout: 260 seconds]
lun_ has quit [Read error: Connection reset by peer]
soba has joined #ruby-lang
g-nee has quit [Remote host closed the connection]
g-nee has joined #ruby-lang
lun_ has joined #ruby-lang
g-nee_ has joined #ruby-lang
g-nee has quit [Read error: Connection reset by peer]
michaeldeol has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
Elico has quit [Quit: Elico]
g-nee_ has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
michaeldeol has joined #ruby-lang
ylluminate` has joined #ruby-lang
vlad_starkov has joined #ruby-lang
ylluminate has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
hahuang65 has joined #ruby-lang
michaeldeol has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
dhruvasagar has quit [Quit: leaving]
<rue> micalexander: Just do it. What’s the problem you have?
hogeo has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
hogeo has joined #ruby-lang
ylluminate` has quit [Read error: Connection reset by peer]
ylluminate has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
mistym has joined #ruby-lang
anulman has quit [Quit: Leaving.]
vlad_starkov has joined #ruby-lang
g-nee has joined #ruby-lang
dhruvasagar has quit [Remote host closed the connection]
makoto_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Cakey has quit [Ping timeout: 246 seconds]
makoto_ has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby-lang
michaeldeol has quit [Read error: Connection reset by peer]
deol has joined #ruby-lang
g-nee has quit [Quit: Leaving...]
michaeldeol has joined #ruby-lang
deol has quit [Read error: Connection reset by peer]
dik_dak has joined #ruby-lang
DeProdigy has joined #ruby-lang
ylluminate has quit [Read error: Connection reset by peer]
ylluminate has joined #ruby-lang
mistym_ has joined #ruby-lang
DeProdigy has quit [Ping timeout: 250 seconds]
dhruvasa1ar has joined #ruby-lang
mistym has quit [Ping timeout: 260 seconds]
dingus_khan has joined #ruby-lang
ylluminate has quit [Ping timeout: 245 seconds]
houhoulis has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 264 seconds]
Lewix has joined #ruby-lang
Tearan has quit [Quit: Sleepy Badger....]
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
mucker has joined #ruby-lang
Tearan has joined #ruby-lang
Tearan has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
anulman has joined #ruby-lang
brianpWins has joined #ruby-lang
iliketu__ has joined #ruby-lang
DEac- has joined #ruby-lang
iliketur_ has quit [Ping timeout: 250 seconds]
coca_rails has quit [Remote host closed the connection]
anulman has quit [Ping timeout: 265 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
shiva_inu has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
bfleischer has joined #ruby-lang
bfleischer has quit [Ping timeout: 264 seconds]
fijimunkii has quit [Quit: leaving]
fijimunkii has joined #ruby-lang
fijimunkii has quit [Client Quit]
fijimunkii has joined #ruby-lang
tylersmith has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
fijimunkii has quit [Client Quit]
fijimunkii has joined #ruby-lang
tylersmith has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
greenboxal has joined #ruby-lang
<greenboxal> hi everyone
bjh13 has quit [Quit: leaving]
qjb__ has joined #ruby-lang
makoto_ has joined #ruby-lang
<greenboxal> there is some way to load or require a file without creating a new scope?
qjb__ has left #ruby-lang [#ruby-lang]
tylersmith has joined #ruby-lang
knu has joined #ruby-lang
ddd has quit [Ping timeout: 246 seconds]
arBmind has joined #ruby-lang
makoto_ has quit [Ping timeout: 252 seconds]
ddd has joined #ruby-lang
coca_rails has joined #ruby-lang
dagobah has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 252 seconds]
tylersmith has quit [Ping timeout: 250 seconds]
DeProdigy has joined #ruby-lang
nisstyre has joined #ruby-lang
DeProdigy has quit [Ping timeout: 245 seconds]
rue|w has joined #ruby-lang
AKASkip has joined #ruby-lang
knu has quit [Ping timeout: 260 seconds]
anulman has joined #ruby-lang
mdedetrich has joined #ruby-lang
anulman1 has joined #ruby-lang
anulman has quit [Read error: Connection reset by peer]
relix has joined #ruby-lang
vlad_starkov has joined #ruby-lang
anulman1 has quit [Ping timeout: 245 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Remote host closed the connection]
mdedetrich has quit [Quit: Computer has gone to sleep.]
michaeldeol has joined #ruby-lang
Cakey has quit [Ping timeout: 265 seconds]
Barrin6 has quit [Quit: Leaving]
michaeldeol has quit [Ping timeout: 245 seconds]
<manveru> greenboxal: eval(File.read("foo.rb"))
rriemann_ has joined #ruby-lang
batchitcray has quit [Ping timeout: 250 seconds]
h_kon has joined #ruby-lang
fijimunkii has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jsaak has quit [Ping timeout: 272 seconds]
marr has joined #ruby-lang
makoto_ has joined #ruby-lang
<Lewix> manveru: greenboxal : what do you mean by creating a new scope
heftig has quit [Ping timeout: 245 seconds]
<matti> Ohai manveru
lun_ has quit [Remote host closed the connection]
mistym_ has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
makoto_ has quit [Ping timeout: 266 seconds]
Eising has joined #ruby-lang
<manveru> matti: moin
<Eising> hi there. I'm stuck on an ancient server with an ancient ruby version. Any idea where I can find documentation for modules of old ruby versions? We're talking 1.8.4.
<manveru> Lewix: if you require or load it will be evaluated in a new scope, that's why local variables don't conflict between requires
dingus_khan has quit [Ping timeout: 250 seconds]
<Lewix> manveru: it makes sense
<manveru> that's 1.6 though :)
<manveru> anyway, you can get 1.8.4 docs from the 1.8.4 sources if you need something accurate
mnngfltg has joined #ruby-lang
<Eising> manveru: I'll see if I can find anything, thanks :)
DeProdigy has joined #ruby-lang
Cakey has joined #ruby-lang
heftig has joined #ruby-lang
<manveru> you probably can generate rdocs from that
michaeldeol has joined #ruby-lang
<Eising> manveru: thanks again :)
michaeldeol has quit [Read error: Connection reset by peer]
DeProdigy has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby-lang
apeiros has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Ping timeout: 264 seconds]
anulman has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
anulman has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby-lang
mikecmpbll has joined #ruby-lang
mbj_ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<Lewix> manveru: Is there a better solution to this https://gist.github.com/6ewis/4b7c15e8e7d2f0247d80?
charliesome has joined #ruby-lang
mbj has quit [Ping timeout: 246 seconds]
iliketu__ has quit [Quit: zzzzz…..]
coca_rails has joined #ruby-lang
dhruvasagar has joined #ruby-lang
solars has joined #ruby-lang
dhruvasa1ar has quit [Ping timeout: 264 seconds]
iliketur_ has joined #ruby-lang
mikecmpbll has quit [Quit: Computer has gone to sleep.]
barttenbrinke has joined #ruby-lang
coca_rails has quit [Ping timeout: 245 seconds]
michd is now known as MichD
workmad3 has joined #ruby-lang
bfleischer has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Forgetful_Lion has joined #ruby-lang
yfeldblum has joined #ruby-lang
rushed has quit [Quit: rushed]
joonty_ has quit [Quit: WeeChat 0.4.2]
kitak_ has joined #ruby-lang
charliesome has joined #ruby-lang
bfleischer has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
kitak has quit [Ping timeout: 245 seconds]
rriemann_ has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby-lang
joonty has joined #ruby-lang
nisstyre has quit [Quit: Leaving]
stardiviner has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
iliketu__ has joined #ruby-lang
iliketu__ has quit [Read error: Connection reset by peer]
kitak_ has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
kitak has joined #ruby-lang
kek has joined #ruby-lang
iliketur_ has quit [Ping timeout: 260 seconds]
kek_ has joined #ruby-lang
makoto_ has joined #ruby-lang
<ljarvis> moin
makoto_ has quit [Ping timeout: 265 seconds]
michaeldeol has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
relix has joined #ruby-lang
michaeldeol has quit [Ping timeout: 265 seconds]
Cakey has quit [Ping timeout: 250 seconds]
kitak_ has joined #ruby-lang
hogeo has joined #ruby-lang
<maloik_> ]o/
<maloik_> o/
kitak has quit [Ping timeout: 245 seconds]
knu has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
kitak has joined #ruby-lang
<ljarvis> sweet curses was removed from core
CoreData has quit [Ping timeout: 246 seconds]
anulman has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby-lang
kitak_ has quit [Read error: Connection reset by peer]
kitak has joined #ruby-lang
rushed has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby-lang
anulman has quit [Ping timeout: 264 seconds]
arBmind has joined #ruby-lang
<yorickpeterse> morning
<yorickpeterse> whitequark: re parser: location tracking wasn't the big issue from what I remember
wallerdev has quit [Quit: wallerdev]
<yorickpeterse> from what I remember it's the actual lexing phase
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
bastilian has quit [Quit: Leaving...]
kitak has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
<yorickpeterse> though it could be that if that happens in Parser::Lexer#lex it might skew profiling output
kitak_ has quit [Read error: Connection reset by peer]
kitak has joined #ruby-lang
coca_rails has joined #ruby-lang
<whitequark> it does not
vlad_starkov has joined #ruby-lang
<yorickpeterse> hm
<yorickpeterse> there was also some overhead in associating comments with nodes
jsaak has joined #ruby-lang
<yorickpeterse> Haven't looked very deeply in that yet though
<yorickpeterse> heh, of the 16k log actions only 255 failed
<yorickpeterse> notbad.jph
<yorickpeterse> * jpg
<yorickpeterse> where "log actions" == "spam website"
<yorickpeterse> welp, one run took 150 minutes
kitak_ has joined #ruby-lang
huma has quit [Read error: Connection reset by peer]
huma has joined #ruby-lang
kitak has quit [Ping timeout: 245 seconds]
greenboxal has quit [Read error: Connection reset by peer]
greenboxal has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
x0nic has quit [Ping timeout: 260 seconds]
erichmenge has quit [Ping timeout: 252 seconds]
ayumin has joined #ruby-lang
llakey_ has quit [Excess Flood]
makoto_ has joined #ruby-lang
nirix has quit [Ping timeout: 245 seconds]
llakey has joined #ruby-lang
nick_h has quit [Ping timeout: 245 seconds]
nick_h has joined #ruby-lang
nirix has joined #ruby-lang
hellome has quit [Read error: Connection reset by peer]
kitak_ has quit [Remote host closed the connection]
kitak has joined #ruby-lang
crazysim has quit [Read error: Operation timed out]
kitak_ has joined #ruby-lang
zastern has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 246 seconds]
hogeo has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
x0nic has joined #ruby-lang
kitak_ has joined #ruby-lang
kitak has quit [Read error: Connection reset by peer]
kitak_ has quit [Read error: Connection reset by peer]
lun_ has joined #ruby-lang
kitak has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
mistym has joined #ruby-lang
kitak_ has joined #ruby-lang
michaeldeol has joined #ruby-lang
lun_ has quit [Ping timeout: 264 seconds]
kitak has quit [Ping timeout: 245 seconds]
stardiviner has joined #ruby-lang
mistym has quit [Ping timeout: 264 seconds]
crazysim has joined #ruby-lang
zastern has joined #ruby-lang
erichmenge has joined #ruby-lang
coca_rails has quit [Ping timeout: 245 seconds]
DeProdigy has joined #ruby-lang
michaeldeol has quit [Ping timeout: 260 seconds]
bastilian has joined #ruby-lang
DeProdigy has quit [Ping timeout: 250 seconds]
MrZYX|off is now known as MrZYX
anulman has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
ldnunes has joined #ruby-lang
anulman has quit [Ping timeout: 265 seconds]
elia has quit [Ping timeout: 260 seconds]
mdedetrich has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
elia has joined #ruby-lang
<manveru> ljarvis: using two spaces instead of tab? :)
hogeo has joined #ruby-lang
<ljarvis> manveru: wrong person
<manveru> damn
<manveru> he's gone :(
<manveru> do we have ncurses in stdlib now?
h_kon has quit [Remote host closed the connection]
<r0bgleeson> manveru: didnt we always?
<manveru> kinda
dpyzhov has joined #ruby-lang
<manveru> the curses stdlib used the ncurses library but didn't provide the full ncurses api
<yorickpeterse> uuughghhhh code duplication
<yorickpeterse> same code now lives in 3 repositories
<yorickpeterse> can't Gemify it either because then other shit gets delayed
<r0bgleeson> manveru: ah, im not sure. the one-to-one map with C put me off all the time. i was much younger and less patient back then though.
<manveru> that's why i wrote ffi-ncurses :)
<r0bgleeson> ill check it out
<manveru> but then https://github.com/seanohalpin/ffi-ncurses came along and was way better
<manveru> anw, still 1:1 map to C, but with a bunch of helpers on top
h_kon has joined #ruby-lang
<manveru> since providing a performant abstraction of ncurses is kinda... hard
<r0bgleeson> ah
<r0bgleeson> i always thought a DSL would be cool for curses in ruby
<manveru> terminals are slow as hell if you redraw too much
sepp2k has joined #ruby-lang
bfleischer has joined #ruby-lang
<r0bgleeson> it would be awesome to have a lib to build powerful console apps :)
lele has quit [Ping timeout: 252 seconds]
nevill has quit [Quit: nevill]
lele has joined #ruby-lang
<r0bgleeson> id like to write a few things as curses app, i couldnt ever wrap my head around the curses API to do anything worthwhile
coca_rails has joined #ruby-lang
<manveru> i wrote a vim clone with it a long time ago
vondruch has joined #ruby-lang
<manveru> but ruby and my crappy programming turned out too slow to be useful
<manveru> so i wrote ffi-tk and rewrote it with that
<manveru> which turned out fine, but in the end what's the point of reimplementing vim :P
<manveru> just to get rid of vimscript...
<manveru> i'm really good at yak shaving
<gnufied> heh
<r0bgleeson> i might have used that, i used a console editor written in ruby a long time ago
bfleischer has quit [Ping timeout: 264 seconds]
<manveru> there's still diakonos
<yorickpeterse> r0bgleeson: how long have you been using Emacs as your OS?
<r0bgleeson> yorickpeterse: about 6 months
makoto_ has quit [Remote host closed the connection]
<yorickpeterse> r0bgleeson: must be hard
<yorickpeterse> :3
DouweM has joined #ruby-lang
<r0bgleeson> i love it :)
coca_rails has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
hogeo has quit [Remote host closed the connection]
mikecmpbll has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
ecnalyr has joined #ruby-lang
dpyzhov has quit [Ping timeout: 260 seconds]
dpyzhov has joined #ruby-lang
Onixs has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
barttenbrinke has quit [Remote host closed the connection]
h_kon has quit [Remote host closed the connection]
h_kon has joined #ruby-lang
dik_dak has quit [Quit: Leaving]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 264 seconds]
michaeldeol has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
<yorickpeterse> wohooo saving time by removing features
DeProdigy has joined #ruby-lang
michaeldeol has quit [Ping timeout: 260 seconds]
DeProdigy has quit [Ping timeout: 250 seconds]
hogeo has joined #ruby-lang
dvorak has quit [Ping timeout: 250 seconds]
Onixs has quit [Ping timeout: 246 seconds]
dpyzhov has quit [Quit: dpyzhov]
hogeo has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
dvorak has joined #ruby-lang
ecnalyr has joined #ruby-lang
anulman has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
dpyzhov has joined #ruby-lang
dhruvasagar has joined #ruby-lang
schaerli has joined #ruby-lang
joonty has quit [Ping timeout: 260 seconds]
anulman has quit [Ping timeout: 260 seconds]
joonty has joined #ruby-lang
h_kon has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
makoto_ has joined #ruby-lang
Oak has quit [Quit: Later guys... :) (me liking http://hexchat.github.io/ very much)]
barttenb_ has joined #ruby-lang
kek has quit [Remote host closed the connection]
makoto_ has quit [Ping timeout: 265 seconds]
elia has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby-lang
yfeldblum has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
coca_rails has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
CoreData has joined #ruby-lang
MrZYX is now known as MrZYX|off
mistym has joined #ruby-lang
rushed has joined #ruby-lang
mistym has quit [Ping timeout: 250 seconds]
DeProdigy has joined #ruby-lang
MrZYX|off is now known as MrZYX
DeProdigy has quit [Ping timeout: 250 seconds]
rushed has quit [Quit: rushed]
<yorickpeterse> So I flashed Android on my Peak
<yorickpeterse> going pretty well so far
anulman has joined #ruby-lang
<ljarvis> nou
<yorickpeterse> srsly, Firefox OS is a buggy pile of wat
kek_ has quit [Remote host closed the connection]
kek has joined #ruby-lang
amoli has quit [Ping timeout: 246 seconds]
ayumin has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
anulman has quit [Ping timeout: 252 seconds]
barttenb_ has quit [Remote host closed the connection]
makoto_ has joined #ruby-lang
unrealhoang has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 252 seconds]
hogeo has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
barttenbrinke has joined #ruby-lang
makoto_ has quit [Ping timeout: 252 seconds]
dpyzhov has quit [Quit: dpyzhov]
tbuehlmann has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby-lang
hogeo has quit [Ping timeout: 264 seconds]
CoreData has quit [Ping timeout: 245 seconds]
ayumin has joined #ruby-lang
benlovell has quit [Ping timeout: 250 seconds]
gianlucadv has joined #ruby-lang
elia has joined #ruby-lang
bfleischer has joined #ruby-lang
benlovell has joined #ruby-lang
h_kon has joined #ruby-lang
vpretzel has joined #ruby-lang
smashwilson has joined #ruby-lang
<manveru> it runs fine in firefox... but wouldn't put it on a phone yet :)
coca_rails has joined #ruby-lang
bfleischer has quit [Ping timeout: 264 seconds]
davidw has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<davidw> so.... to_pem changed from 1.9.2 to 1.9.3 for an RSA key....
Mon_Ouie has quit [Ping timeout: 252 seconds]
<chris2> bougyman: ping
makoto_ has joined #ruby-lang
soba has quit [Ping timeout: 250 seconds]
lele|w has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
schaerli has joined #ruby-lang
makoto_ has quit [Ping timeout: 245 seconds]
<michael_mbp> hmm
unrealhoang has joined #ruby-lang
<michael_mbp> anyways I can get every match rather than just the first without using scan?
<michael_mbp> %r{(\@\w+)}.match(text) only gives me the first and I want to replace the contents of each match using $1/$2 etc.
<manveru> gsub
<michael_mbp> manveru: ah the gsub via block...
tbuehlmann has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
michaeldeol has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
nertzy3 has joined #ruby-lang
benlovell has quit [Ping timeout: 245 seconds]
breakingthings has joined #ruby-lang
fallenhi1okiri has joined #ruby-lang
fallenhitokiri has quit [Ping timeout: 246 seconds]
nertzy2 has quit [Ping timeout: 246 seconds]
yxhuvud has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 250 seconds]
yxhuvud has joined #ruby-lang
michaeldeol has quit [Ping timeout: 252 seconds]
micalexander has quit [Ping timeout: 250 seconds]
<apeiros> michael_mbp: you can use $1, $2 etc. without a block too, via the escape sequences \1, \2 etc.
<apeiros> \0 is the full match btw., \' and \` pre- and postmatch (never remember which is which)
bzalasky has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
relix has quit [Read error: Connection reset by peer]
relix_ has joined #ruby-lang
anulman has joined #ruby-lang
nevill has joined #ruby-lang
<davidw> http://bugs.ruby-lang.org/issues/4421 - well there it is
<davidw> they fiddled with the output format
benlovell has joined #ruby-lang
kek_ has joined #ruby-lang
rushed has joined #ruby-lang
clamstar has joined #ruby-lang
kek_ has quit [Remote host closed the connection]
anulman has quit [Ping timeout: 252 seconds]
ayumin has quit [Remote host closed the connection]
ayumin has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
Eising has left #ruby-lang [#ruby-lang]
mikecmpbll has joined #ruby-lang
dwahyudi has joined #ruby-lang
dwahyudi has left #ruby-lang [#ruby-lang]
bfleischer has joined #ruby-lang
momomomomo has joined #ruby-lang
rushed has quit [Quit: rushed]
barttenb_ has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
nertzy3 has quit [Quit: This computer has gone to sleep]
barttenbrinke has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 260 seconds]
krasnus has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
scampbell has joined #ruby-lang
bfleischer has quit [Read error: Operation timed out]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
clamstar has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
ayumin has quit [Remote host closed the connection]
makoto_ has joined #ruby-lang
ayumin has joined #ruby-lang
makoto_ has quit [Ping timeout: 245 seconds]
ayumin has quit [Remote host closed the connection]
Guest92191 is now known as Caius
gianlucadv has quit [Ping timeout: 260 seconds]
ayumin has joined #ruby-lang
ledestin has quit [Ping timeout: 252 seconds]
symm- has joined #ruby-lang
bfleischer has joined #ruby-lang
mistym has joined #ruby-lang
crankharder has quit [Ping timeout: 240 seconds]
csaunders_ has quit [Remote host closed the connection]
csaunders has joined #ruby-lang
ayumin has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
ayumin has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
michaeldeol has joined #ruby-lang
micalexander has joined #ruby-lang
mistym has quit [Ping timeout: 264 seconds]
bfleischer has quit [Ping timeout: 264 seconds]
micalexander has quit [Read error: Connection reset by peer]
micalexander has joined #ruby-lang
coca_rails has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
cnivolle has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
fijimunkii has joined #ruby-lang
bjh13 has joined #ruby-lang
makoto_ has joined #ruby-lang
wudofyr has joined #ruby-lang
lfox has joined #ruby-lang
lele|w has joined #ruby-lang
Czupa has joined #ruby-lang
anulman has joined #ruby-lang
nathanstitt has joined #ruby-lang
kitak has joined #ruby-lang
dhruvasagar has joined #ruby-lang
nathanstitt has quit [Client Quit]
batchitcray has joined #ruby-lang
anulman has quit [Ping timeout: 264 seconds]
arooni-mobile__ has joined #ruby-lang
hogeo has joined #ruby-lang
kek_ has joined #ruby-lang
DeProdigy has joined #ruby-lang
huma has quit [Ping timeout: 245 seconds]
fuhgeddaboudit has joined #ruby-lang
kek_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
stardiviner has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
rue|w has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
nevill has quit [Quit: nevill]
scampbell has quit [Remote host closed the connection]
dhruvasa1ar has joined #ruby-lang
elia has joined #ruby-lang
diegoviola has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 251 seconds]
skade has joined #ruby-lang
ledestin has quit [Ping timeout: 264 seconds]
sross_work|2 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sross07 has joined #ruby-lang
perry has quit [*.net *.split]
lacrosse has quit [*.net *.split]
sindork has quit [*.net *.split]
meise_ has quit [*.net *.split]
ironcamel has quit [*.net *.split]
meise has joined #ruby-lang
dhruvasa1ar has quit [Ping timeout: 264 seconds]
lacrosse has joined #ruby-lang
jxie has quit [Quit: leaving]
ledestin has joined #ruby-lang
sindork has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
ironcamel has joined #ruby-lang
h_kon has quit [Remote host closed the connection]
Jaclyn has joined #ruby-lang
Jaclyn has quit [Client Quit]
perry has joined #ruby-lang
stardiviner has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 245 seconds]
Jaclyn has joined #ruby-lang
richardburton has joined #ruby-lang
AKASkip has quit [Ping timeout: 250 seconds]
<richardburton> hello—would anyone be happy to look over this method and give me some tips for refactoring it? https://gist.github.com/ricburton/d3e931af916f58937995
vpretzel has quit [Quit: Adios!]
<richardburton> It's got a large, nested if-else statement and I can't think of the best way to simplify it.
cannie has joined #ruby-lang
cannie has quit [Remote host closed the connection]
<richardburton> Any help would be very much appreciated!
Jaclyn has quit [Client Quit]
Jaclyn has joined #ruby-lang
<yorickpeterse> break that shit into different methods
<yorickpeterse> right now this one big blob is doing multiple things
<richardburton> yep
<ljarvis> dat cobol
Jaclyn has quit [Client Quit]
joast has quit [Quit: Leaving.]
<yorickpeterse> ljarvis: Ruby isn't that cool
tharindu has joined #ruby-lang
<richardburton> the if-else statement
<richardburton> where i have two dates
<richardburton> and want to pick the most recent
<ljarvis> richardburton: the if-else can be refactored entirely
<richardburton> i cant think of a nicer way to do that
hogeo has quit [Remote host closed the connection]
<ljarvis> also using empty strings for the last_ variables makes little sense if they're meant to represent dates
<ljarvis> maybe you want nil instead
<richardburton> thanks
cored has quit [Ping timeout: 245 seconds]
<richardburton> ljarvis: how would you recommend refactoring the big if-else?
vpretzel has joined #ruby-lang
<ljarvis> richardburton: I'm not sure I see the need to have 4 branches
tylersmith has joined #ruby-lang
<ljarvis> why not just check if chats.any? or mail.any? ... else ...
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
bzalasky has joined #ruby-lang
<ljarvis> you set the same stuff in the other branches anyway
<richardburton> .any is much clearer—thanks. if there's a chat and a mail
joast has joined #ruby-lang
<richardburton> i want the most recent
<richardburton> which is why it ended up getting messy
<ljarvis> sure, which you do on line 22
<ljarvis> and then you do it again in separate branches for them both
krasnus_ has joined #ruby-lang
krasnus_ has quit [Client Quit]
ayumin has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
DouweM has quit [Ping timeout: 252 seconds]
davidw has left #ruby-lang ["Ex-Chat"]
nathanstitt has joined #ruby-lang
michaeldeol has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<wnd> would I be trying to make it more complicated than is healthy if I'd make mails and chats comparable (by date), introduce NilMail and NilChat, and finally do latest = [chats.first || NilChat.new, mails.first || NilMail.new].sort.last?
elia has quit [Read error: Operation timed out]
krasnus has quit [Ping timeout: 245 seconds]
<yorickpeterse> bah, Null objects
<ljarvis> heh
bf4 has joined #ruby-lang
<yorickpeterse> I fully blame their existence on people chaining 25 method calls
<yorickpeterse> herp.derp.foo.just.like.jquery()
havenwood has quit [Ping timeout: 265 seconds]
<ljarvis> that's nicer than having lots of conditions..
<apeiros> wnd: you can also use the sorting gem (shameless plug there): https://github.com/apeiros/sorting
<yorickpeterse> or you can just write better code
<apeiros> your_array_with_nils.sort_by { |item| asc(item, :nils_last) } # e.g.
michaeldeol has quit [Ping timeout: 246 seconds]
<ljarvis> if something actually requires a lot of methods to be called on it, it doesn't matter how well you write your code
<ljarvis> you still need to call methods on an object
tkuchiki has joined #ruby-lang
Elico has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
fuhgeddaboudit has quit [Remote host closed the connection]
<ljarvis> whether you try and hide that fact for the sake of readability or not
mdedetrich has quit [Quit: Computer has gone to sleep.]
<wnd> I have no idea about jquery, but when I null objects were first introduced to me by Ben Orenstein's presentation, I kind of liked the idea
seanlinsley has quit [Quit: seanlinsley]
<apeiros> in a language where you can't inherit from Null (or NilClass here), I find it a bad idea
<apeiros> and even with rubys flexibility, you can't make a non-nil behave like nil. see conditional constructs like `if expr`, `while expr` etc.
anulman has joined #ruby-lang
<ljarvis> i think in general people dont really use null objects in place of a falsely value anyway
<ljarvis> they're generally meant to behave like another object
<ljarvis> but "do nothing"
<ljarvis> so maybe i should reword that to "response like another object" rather than behave like
<ljarvis> respond*
qjb has joined #ruby-lang
bantic has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
qjb has left #ruby-lang [#ruby-lang]
anulman has quit [Ping timeout: 260 seconds]
zerokarmaleft has joined #ruby-lang
jorge has joined #ruby-lang
bzalasky has joined #ruby-lang
coca_rails has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fijimunkii has quit [Quit: leaving]
fijimunkii has joined #ruby-lang
CaptainJet has joined #ruby-lang
relix_ has quit [Quit: Textual IRC Client: www.textualapp.com]
mistym has joined #ruby-lang
ayumin has joined #ruby-lang
<zzak> ljarvis: do you even respond_to? bro
makoto_ has quit [Remote host closed the connection]
zerokarmaleft has left #ruby-lang [#ruby-lang]
imperator has joined #ruby-lang
jonahR has joined #ruby-lang
jonahR has quit [Client Quit]
mistym has quit [Remote host closed the connection]
<ljarvis> zzak: no u
<yorickpeterse> herp derp Faraday doesn't even get its own shit
<yorickpeterse> you can configure proxies via a Hash, then it for w/e reason blows up
<yorickpeterse> pass in a string, works fine
rippa has joined #ruby-lang
<yorickpeterse> LOGIC!
unrealhoang has quit [Remote host closed the connection]
jorge has quit [Quit: leaving]
yfeldblum has quit [Remote host closed the connection]
unrealhoang has joined #ruby-lang
yfeldblum has joined #ruby-lang
vlad_starkov has joined #ruby-lang
ayumin has quit [Remote host closed the connection]
arooni-mobile__ has quit [Ping timeout: 250 seconds]
ngw has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
coca_rails has joined #ruby-lang
sonne has joined #ruby-lang
sonne has left #ruby-lang [#ruby-lang]
dhruvasagar has joined #ruby-lang
robbyoconnor has joined #ruby-lang
loincloth has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
wongon has joined #ruby-lang
bfleischer has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
mikecmpbll has joined #ruby-lang
elia has joined #ruby-lang
havenwood has joined #ruby-lang
michaeldeol has joined #ruby-lang
nigerianceo has joined #ruby-lang
bfleischer has quit [Ping timeout: 265 seconds]
<apeiros> yorickpeterse: you're in the intertubes. logic does not apply.
makoto_ has joined #ruby-lang
barttenb_ has quit [Ping timeout: 265 seconds]
havenwood has quit [Ping timeout: 250 seconds]
rob_ has left #ruby-lang [#ruby-lang]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
retro|cz has joined #ruby-lang
yfeldblum has joined #ruby-lang
hogeo has joined #ruby-lang
shinnya has joined #ruby-lang
TvL2386 has joined #ruby-lang
michaeldeol has quit [Ping timeout: 272 seconds]
DouweM has joined #ruby-lang
makoto_ has quit [Ping timeout: 264 seconds]
seanlinsley has joined #ruby-lang
serroft has joined #ruby-lang
hogeo has quit [Ping timeout: 245 seconds]
richardburton1 has joined #ruby-lang
richardburton has quit [Read error: Connection reset by peer]
<TvL2386> hi guys, I'm working on a project where I want to configure managed switch ports using the cli (ssh). First thing I want, is a parser that actually parses the current switch port configuration. The ports must adhere to standards I design. Would I use something like parslet for this, or should I build it myself with simple line/string parsing?
Oak has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
anulman has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
<TvL2386> been thinking and doing stuff on this a few times already, but I keep banging my head against the wall on how to approach this
MrZYX is now known as MrZYX|off
relix has joined #ruby-lang
robbyoconnor has quit [Excess Flood]
anulman has quit [Ping timeout: 264 seconds]
robbyoconnor has joined #ruby-lang
makoto_ has joined #ruby-lang
bin7me has joined #ruby-lang
heftig has joined #ruby-lang
DeProdig1 has joined #ruby-lang
<ljarvis> TvL2386: why dont you use an existing standard for configuration
<TvL2386> ljarvis, like what?
<ljarvis> TvL2386: well how are you storing config?
makoto_ has quit [Ping timeout: 264 seconds]
<TvL2386> well, the running config is retrieved through some service bus which is saved to disk. The config is of the switch and has all ports in there
<TvL2386> that's the backup mechanism
DeProdigy has quit [Ping timeout: 264 seconds]
<ljarvis> that tells me absolutely nothing
coca_rails has quit [Ping timeout: 245 seconds]
<TvL2386> I already have some parser that retrieves port names and some interesting things like: description and the vlan id. That's saved in a mysql database (rails backend)
iliketur_ has joined #ruby-lang
<TvL2386> Also every port has the config snippet for that port in the database
<ljarvis> im confused what your question is now
<TvL2386> me too :)
bzalasky has joined #ruby-lang
<TvL2386> *thinking*
sferik has joined #ruby-lang
<TvL2386> thanks ljarvis... it seems I should really think about what I want first, because I have no clue... then design and then start to program...
<TvL2386> doing it the wrong way around again
<cout> I prefer to just start coding and see what comes out
<apeiros> cowboy coder :D
<cout> more like lewis and clark
<cout> cowboys came later
<cout> it's an exploration
<ljarvis> TvL2386: :)
vlad_starkov has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
<TvL2386> cout, for tiny things that works for me, but for something greater, it's hard to keep it elegant and maintanable if I approach it like that
vlad_starkov has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Quit: Konversation terminated!]
<TvL2386> probably my limitation :-P
mbj_ is now known as mbj
wallerdev has joined #ruby-lang
<cout> TvL2386: I think of it this way. To get from A to Z I know I must to A and B. I have no idea what C is, but sometimes it becomes more obvious once I've done A and B. but if I sit and think about it and plan the whole thing out then I never get anything done.
<cout> TvL2386: but I was the student in english class that the teacher said I don't have to write an outline because I write better papers when I don't
kurko_ has joined #ruby-lang
iliketur_ has quit [Ping timeout: 265 seconds]
ayumin has joined #ruby-lang
<TvL2386> cout :)
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
MaddinX__ has joined #ruby-lang
imperator has quit [Ping timeout: 260 seconds]
itsraining has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
__butch__ has joined #ruby-lang
MaddinXx_ has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 260 seconds]
makoto_ has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
kek has quit [Remote host closed the connection]
makoto_ has quit [Ping timeout: 245 seconds]
ecnalyr has quit [Remote host closed the connection]
MaddinXx_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
MaddinX__ has quit [Ping timeout: 246 seconds]
arooni-mobile__ has quit [Ping timeout: 246 seconds]
<ljarvis> I call that the herp derp approach to software development
solars has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby-lang
serroft has quit [Quit: Leaving.]
vlad_starkov has joined #ruby-lang
tbuehlmann has quit [Quit: Konversation terminated!]
hahuang65 has quit [Ping timeout: 240 seconds]
unrealhoang has quit []
vlad_starkov has quit [Read error: Connection reset by peer]
nigerianceo has quit []
sepp2k has quit [Quit: Konversation terminated!]
mistym has quit [Remote host closed the connection]
vsorlov has joined #ruby-lang
amoli has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
michaeldeol has joined #ruby-lang
anulman has joined #ruby-lang
DouweM has quit [Ping timeout: 252 seconds]
unrealhoang has joined #ruby-lang
iliketur_ has joined #ruby-lang
Lewis has joined #ruby-lang
anulman has quit [Ping timeout: 240 seconds]
riffraff has joined #ruby-lang
bastilian has quit [Quit: Linkinus - http://linkinus.com]
ecnalyr has joined #ruby-lang
mnngfltg has quit [Remote host closed the connection]
pkrnj has joined #ruby-lang
unrealhoang has quit [Read error: No route to host]
coca_rails has joined #ruby-lang
shinnya has quit [Ping timeout: 260 seconds]
mistym has joined #ruby-lang
batchitcray has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby-lang
DeProdig1 has quit [Ping timeout: 250 seconds]
coca_rails has quit [Ping timeout: 245 seconds]
jerrytgarcia has quit [Quit: WeeChat 0.4.2]
rriemann_ has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
symm- has quit [Ping timeout: 264 seconds]
benlovell has quit [Ping timeout: 264 seconds]
DeProdigy has joined #ruby-lang
vpretzel has quit [Quit: Adios!]
brianpWins has quit [Quit: brianpWins]
vpretzel has joined #ruby-lang
sferik has joined #ruby-lang
tylersmith has joined #ruby-lang
pglombardo has joined #ruby-lang
iliketur_ has quit [Quit: zzzzz…..]
<cschneid> is $! actually a global, or is it scoped down further? ie, if I use it in a rescue block, can another thread stomp on it before I have a chance?
lun_ has quit []
schaerli has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
<apeiros> cschneid: I think it's one of those "magical" globals
<apeiros> like $1-$9 etc.
<cschneid> apeiros: yeah, I vaguely remember that it might be thread scoped or something similar
<cschneid> it's surprisingly hard to google for :)
wallerdev has quit [Quit: wallerdev]
marr has quit [Ping timeout: 250 seconds]
hahuang65 has joined #ruby-lang
pglombar_ has joined #ruby-lang
richardburton has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
pglombardo has quit [Ping timeout: 240 seconds]
<workmad3> cschneid: it's thread safe
<cschneid> workmad3: do you have a reference handy for how it's really scoped?
<cschneid> this is a corner of ruby magic I've not dug into
<workmad3> cschneid: I don't
<yxhuvud> cschneid: it is a thread local variable.
bastilian has joined #ruby-lang
<cschneid> cool. Do you have a list of which of the perlvars are true globals vs thread local
<cschneid> $/ for instance is probably really global
<cschneid> $: similarly
richardburton1 has quit [Ping timeout: 265 seconds]
<yxhuvud> afraid not. they are probably listed in pickaxe, but I havn't seen a handy table over them
<cschneid> time to go experiment & write a blog post :)
makoto_ has joined #ruby-lang
sevvie has joined #ruby-lang
<cschneid> "And associated global" -> $!. I'm unconvinced.
<cschneid> eh, it'll be a fun thing to go dive into
<cschneid> thanks guys
mistym has quit [Read error: Connection reset by peer]
benkhicks has joined #ruby-lang
makoto_ has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
arooni-mobile has joined #ruby-lang
saarinen has joined #ruby-lang
kek has joined #ruby-lang
itsraining has quit [Ping timeout: 250 seconds]
AKASkip has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
bfleischer has joined #ruby-lang
sepp2k has joined #ruby-lang
VTLob has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 272 seconds]
schaerli has joined #ruby-lang
elia has quit [Ping timeout: 246 seconds]
mistym has joined #ruby-lang
bfleischer has quit [Ping timeout: 272 seconds]
mbj has quit [Ping timeout: 260 seconds]
lfox has quit [Quit: ZZZzzz…]
pr0ton has joined #ruby-lang
serroft has joined #ruby-lang
tbuehlmann has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
anjen has joined #ruby-lang
anjen has quit [Read error: Connection reset by peer]
Tearan has joined #ruby-lang
anulman has joined #ruby-lang
wallerdev has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
sevvie has quit [Ping timeout: 272 seconds]
DouweM has joined #ruby-lang
lfox has joined #ruby-lang
anulman has quit [Ping timeout: 272 seconds]
iliketur_ has joined #ruby-lang
benkhicks has quit [Read error: Connection reset by peer]
tharindu has quit [Ping timeout: 264 seconds]
ecnalyr has quit [Ping timeout: 245 seconds]
Oak has quit [Ping timeout: 245 seconds]
mbj has joined #ruby-lang
Oak has joined #ruby-lang
solars has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
batchitcray has joined #ruby-lang
cored has quit [Ping timeout: 246 seconds]
arBmind has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
Oak has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
ayumin has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
gianlucadv has joined #ruby-lang
michaeldeol has quit [Remote host closed the connection]
anulman has joined #ruby-lang
michaeldeol has joined #ruby-lang
rickhull1 has joined #ruby-lang
itsraining has joined #ruby-lang
Oak has joined #ruby-lang
deol has joined #ruby-lang
michaeldeol has quit [Read error: Connection reset by peer]
Oak has quit [Ping timeout: 272 seconds]
Nilium has joined #ruby-lang
makoto_ has joined #ruby-lang
momomomomo has joined #ruby-lang
ecnalyr has joined #ruby-lang
makoto_ has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 272 seconds]
Oak has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
kek has quit [Remote host closed the connection]
gianlucadv has quit [Ping timeout: 260 seconds]
solars has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
A124 has quit [Remote host closed the connection]
A124 has joined #ruby-lang
Tearan has quit [Quit: Badger digs a burrow...]
Oak has quit [Ping timeout: 272 seconds]
mistym_ has joined #ruby-lang
mistym_ has quit [Disconnected by services]
nisstyre has joined #ruby-lang
chabill has joined #ruby-lang
cnivolle has joined #ruby-lang
Oak has joined #ruby-lang
solars has joined #ruby-lang
vsorlov has quit [Read error: Operation timed out]
io_syl has joined #ruby-lang
schaerli has joined #ruby-lang
cored has quit [Ping timeout: 248 seconds]
cored has joined #ruby-lang
schaerli has quit [Ping timeout: 246 seconds]
benlovell has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
rickhull1 has quit [Quit: Leaving.]
lfox has quit [Ping timeout: 272 seconds]
yfeldblu_ has quit [Quit: Leaving...]
heftig has quit [Quit: Quitting]
rickhull1 has joined #ruby-lang
ayumin has joined #ruby-lang
Thanatermesis has quit [Read error: Connection reset by peer]
arooni-mobile__ has quit [Ping timeout: 246 seconds]
heftig has joined #ruby-lang
yfeldblum has joined #ruby-lang
alekst has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 260 seconds]
ayumin has quit [Ping timeout: 272 seconds]
lcdhoffman has joined #ruby-lang
vlad_starkov has joined #ruby-lang
igitur has joined #ruby-lang
postmodern has joined #ruby-lang
<igitur> hi all. I have an enumerable and I want to humanize the name property. How do I do that?
<igitur> I currently have:
<igitur> but it's failing
<igitur> Region.all.map{ |r| {:name => r.name.humanize, :id => r.id }}
<apeiros> gaudeamus?
<igitur> ;) yup
<apeiros> igitur: I assume you talk about an ActiveRecord model
<igitur> yes
<apeiros> note that it's not self-understood when you come to #ruby-lang and not #rubyonrails
<apeiros> map will just return an array. it does not modify your AR instances, and even less so your DB.
<igitur> ok, sorry, though it's a generic ruby question
<apeiros> use .each, and .update_attributes!
<igitur> thought*
<apeiros> not really, no :)
<apeiros> note that you maybe also don't want to use .all - depends on how many records Region has
<igitur> i don't want to modify the underlying DB. the DB is populated externally with all upper case text, so i just want to humanize it on the front-end
<apeiros> ok
<apeiros> that'll be troublesome
<apeiros> everytime it reloades a record, it'll be "dehumanized" again
<apeiros> better you just create what rails calls a facade
vsorlov has joined #ruby-lang
<igitur> it's just ~20 records, so for this case I'm not really worried about performance
fijimunk1i has joined #ruby-lang
Thanatermesis has joined #ruby-lang
<igitur> is there anything wrong with my current .map approach? the exception thrown is "undefined method `name' for [:name, "A3"]:Array"
priodev has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 0.4.2]
makoto_ has joined #ruby-lang
priodev has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fijimunkii has quit [Ping timeout: 264 seconds]
jinesh has joined #ruby-lang
<apeiros> the error is odd, I mean that you have an array without a hash in it
<apeiros> as said, .map will just return an array with the return value of the block as its values.
<apeiros> so you should get an array of hashes.
gianlucadv has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
makoto_ has quit [Ping timeout: 246 seconds]
jinesh has quit [Client Quit]
MichD is now known as michd
schaerli has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
pkrnj has quit [Quit: Computer has gone to sleep.]
deryl has joined #ruby-lang
bfleischer has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
mistym is now known as mistym_lunch
snsei has joined #ruby-lang
alekst has quit [Quit: Computer has gone to sleep.]
iliketur_ has quit [Quit: zzzzz…..]
pr0ton has quit [Quit: pr0ton]
wongon has quit [Quit: wongon]
schaerli has joined #ruby-lang
bfleischer has quit [Ping timeout: 240 seconds]
anjen has joined #ruby-lang
havenwood has joined #ruby-lang
sferik has joined #ruby-lang
momomomomo has joined #ruby-lang
deol has quit [Remote host closed the connection]
pr0ton has joined #ruby-lang
anjen has quit [Client Quit]
arooni-mobile__ has joined #ruby-lang
sferik has quit [Client Quit]
pr0ton has quit [Client Quit]
marr has joined #ruby-lang
pr0ton has joined #ruby-lang
mistym has joined #ruby-lang
sferik has joined #ruby-lang
igitur has left #ruby-lang ["ISON jaalto"]
sferik has quit [Client Quit]
retro|cz has quit [Ping timeout: 246 seconds]
bf4 has quit [Read error: Operation timed out]
Czupa has quit [Remote host closed the connection]
GaelanAintAround is now known as Gaelan
havenwood has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
havenwood has joined #ruby-lang
vsorlov has quit [Ping timeout: 246 seconds]
chrisledet has joined #ruby-lang
MaddinXx_ has quit [Quit: Leaving...]
ddd has quit [Quit: leaving]
deryl is now known as ddd
hahuang65 has joined #ruby-lang
havenwood has quit [Ping timeout: 248 seconds]
chrisledet has quit [Quit: Textual IRC Client: www.textualapp.com]
znz_jp has quit [Ping timeout: 245 seconds]
dingus_khan has joined #ruby-lang
chrisledet has joined #ruby-lang
alekst has joined #ruby-lang
ecnalyr has joined #ruby-lang
guns has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
rickhull1 has quit [Quit: Leaving.]
znz_jp has joined #ruby-lang
soahccc has quit [Ping timeout: 246 seconds]
soahccc has joined #ruby-lang
pr0ton has quit [Ping timeout: 272 seconds]
pkrnj has joined #ruby-lang
Gaelan is now known as GaelanAintAround
r0bgleeson has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby-lang
chrisledet has quit [Quit: Textual IRC Client: www.textualapp.com]
pr0ton has joined #ruby-lang
serroft has quit [Quit: Leaving.]
diegoviola has joined #ruby-lang
pr0ton has quit [Read error: Connection reset by peer]
makoto_ has joined #ruby-lang
pr0ton has joined #ruby-lang
mistym_ has joined #ruby-lang
benkhicks has joined #ruby-lang
richardburton has left #ruby-lang [#ruby-lang]
makoto_ has quit [Ping timeout: 246 seconds]
mistym has quit [Ping timeout: 246 seconds]
<Lewis> apeiros: what am I forgetting here https://gist.github.com/6ewis/cf52cd8fecaad85a4ec9
<apeiros> can you be a liiiittle bit more descriptive?
<drbrain> Lewis: oh dear, mixed tabs and spaces
<apeiros> and that
<Lewis> thats train programming
nofxx has joined #ruby-lang
benkhicks1 has joined #ruby-lang
<Lewis> apeiros: I m trying to figure out why an instance of my class return nil on irb
<apeiros> can you gist the pry/irb lines too?
mistym_ has quit [Remote host closed the connection]
benkhicks has quit [Ping timeout: 246 seconds]
serroft has joined #ruby-lang
benkhicks1 has quit [Read error: Connection reset by peer]
benkhicks has joined #ruby-lang
<Lewis> apeiros: done. same link
benkhicks has quit [Client Quit]
<apeiros> Lewis: that's not nil it returns
<apeiros> it's an empty string
alekst has quit [Quit: Leaving...]
RickHull has joined #ruby-lang
<apeiros> you inherit from String
<Lewis> apeiros: shouldn't it run the last statement
<apeiros> it does
<apeiros> you basically do String.new("")
<Lewis> and return it*
<apeiros> PersistentString.new('filgitgtihgtihgtgte_1.out').class will return PersistentString
gianlucadv has quit [Ping timeout: 260 seconds]
<Lewis> apeiros: How to i get it to return the instance object
<apeiros> it *does*
<apeiros> your instance's .inspect is `""`
<apeiros> I don't see why you're inheriting from String if you don't use it
<Lewis> apeiros: I see. I wanted to compare the instances
<Lewis> anyways. thanks I think i get it now
<apeiros> you can set the value of the current instance using String#replace
<Lewis> String.new("dede") => "dede"
<Lewis> not => "" though
<apeiros> yes
<apeiros> because you do String.new("")
<apeiros> you never call super
<apeiros> you never set the value of self
kek has joined #ruby-lang
<apeiros> *you never call super in initialize
<apeiros> I don't think you should inherit from String, though.
solars has quit [Ping timeout: 272 seconds]
<ljarvis> holy mother of indentation
elia has joined #ruby-lang
<apeiros> I'd figure out how to do it correctly with inheriting - just to understand ruby better - and then move to has-a instead of is-a (i.e. not inherit from String)
<ljarvis> also, no need to split and then join your strings when checking for palindromes
AKASkip has quit [Ping timeout: 240 seconds]
mistym_lunch is now known as mistym
benkhicks has joined #ruby-lang
ddd_ has joined #ruby-lang
ddd_ is now known as deryl
<Lewis> apeiros: thanks. what do you mean by has-a and is-a
<apeiros> inheritance means "is-a"
<Lewis> ljarvis: I know that indentation is scary
<apeiros> `class Foo < String` this says Foo's are Strings
<apeiros> has-a is: def initialize; @data = somestring; end
<RickHull> anyone use ActiveResource a fair bit? I'm having trouble seeing how to map its default URL construction to our URL scheme
<apeiros> your class "has a" String, it isn't one
<ljarvis> Lewis: srsly
<ljarvis> rickhull: didn't that get rhrown in the trash?
<RickHull> oh, I dunno
Forgetful_Lion has quit [Remote host closed the connection]
ddd has left #ruby-lang [#ruby-lang]
<RickHull> has commits this week https://github.com/rails/activeresource
<ljarvis> ah must have been something else
<RickHull> it looks to me like instead of negotiating content-type, it uses http://a.com/path/to/foo.json
<RickHull> whereas we serve according to content-type
<Lewis> apeiros: I see. I want to compare my instance object and I thought that inheriting from String will make it easier without me having to include the module Comparable
chabill has quit [Quit: Zzz]
<RickHull> also, i need to somehow tell it where our collections live
mbj has quit [Ping timeout: 248 seconds]
ldnunes has joined #ruby-lang
<RickHull> ah, #include_format_in_path looks like #1
<Lewis> ljarvis: and as for the split.join it's in case the string as \n
<Lewis> has*
nisstyre has quit [Quit: Leaving]
batchitcray has quit [Ping timeout: 240 seconds]
DeProdigy has quit [Ping timeout: 248 seconds]
pr0ton has quit [Quit: pr0ton]
thmzlt has joined #ruby-lang
<Lewis> is it possible to overwrite '=' with def =? or something
<apeiros> no
<apeiros> = is syntax. only with obj.foo= it's a method (foo=)
closer has quit [Ping timeout: 252 seconds]
schaerli has quit [Remote host closed the connection]
chabill has joined #ruby-lang
closer has joined #ruby-lang
<Lewis> apeiros: do you know if there's a language that makes it possible. Out of curiosity
mdedetrich has joined #ruby-lang
pr0ton has joined #ruby-lang
ylluminate has joined #ruby-lang
Oak has quit [Ping timeout: 241 seconds]
DeProdigy has joined #ruby-lang
ayumin has joined #ruby-lang
ayumin has quit [Ping timeout: 248 seconds]
<Mon_Ouie> I know C++ allows it — but the semantics of '=' are very different there
pr0ton has quit [Quit: pr0ton]
<Mon_Ouie> (In Ruby, it changes the object that the variable refers to; in C++ it will cause a copy)
DeProdigy has quit [Ping timeout: 248 seconds]
dingus_khan has quit [Remote host closed the connection]
ayumin has joined #ruby-lang
<ljarvis> Lewis: how does having a \n make any difference?
lfox has joined #ruby-lang
machuga is now known as machuga|away
pr0ton has joined #ruby-lang
ayumin has quit [Ping timeout: 260 seconds]
momomomomo has quit [Quit: momomomomo]
makoto_ has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
io_syl has quit []
nisstyre has joined #ruby-lang
serroft has quit [Quit: Leaving.]
makoto_ has quit [Ping timeout: 246 seconds]
lcdhoffman has joined #ruby-lang
momomomomo has joined #ruby-lang
zoo-zed has joined #ruby-lang
thmzlt has quit [Remote host closed the connection]
sepp2k1 has joined #ruby-lang
serroft has joined #ruby-lang
sepp2k has quit [Ping timeout: 260 seconds]
clamstar has joined #ruby-lang
wongon has joined #ruby-lang
iliketur_ has joined #ruby-lang
rriemann_ has quit [Read error: Operation timed out]
GaelanAintAround is now known as Gaelan
amoli has quit [Ping timeout: 248 seconds]
io_syl has joined #ruby-lang
iliketur_ has quit [Client Quit]
Gaelan is now known as GaelanAintAround
fijimunkii has joined #ruby-lang
fijimunk1i has quit [Ping timeout: 240 seconds]
bf4 has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
arBmind has quit [Quit: Leaving.]
smashwilson has quit [Quit: Leaving]
serroft has quit [Quit: Leaving.]
serroft has joined #ruby-lang
dingus_khan has joined #ruby-lang
iliketur_ has joined #ruby-lang
deryl has quit [Disconnected by services]
deryl1 has joined #ruby-lang
DeProdigy has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 248 seconds]
tenderlove has joined #ruby-lang
cored has quit [Ping timeout: 248 seconds]
RickHull has quit [Quit: Leaving.]
deryl1 has quit [Client Quit]
Lewis has quit [Remote host closed the connection]
deryl has joined #ruby-lang
cored has joined #ruby-lang
kurko_ has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
deryl is now known as ddd
ddd has quit [Client Quit]
batchitcray has joined #ruby-lang
ddd has joined #ruby-lang
riffraff has quit [Quit: This computer has gone to sleep]
thmzlt has joined #ruby-lang
arooni-mobile__ has quit [Ping timeout: 248 seconds]
retro|cz has joined #ruby-lang
riffraff has joined #ruby-lang
bfleischer has joined #ruby-lang
thmzlt has quit [Ping timeout: 240 seconds]
dingus_khan has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
riffraff has quit [Client Quit]
fijimunkii has quit [Ping timeout: 248 seconds]
|jemc| has joined #ruby-lang
TvL2386 has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
skade has joined #ruby-lang
batchitcray has quit [Ping timeout: 246 seconds]
batchitcray has joined #ruby-lang
serroft has quit [Quit: Leaving.]
makoto_ has joined #ruby-lang
mistym_ has joined #ruby-lang
mistym__ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
makoto_ has quit [Ping timeout: 272 seconds]
mistym_ has quit [Ping timeout: 240 seconds]
mistym_ has joined #ruby-lang
kuja has joined #ruby-lang
mistym__ has quit [Ping timeout: 240 seconds]
mistym_ has quit [Disconnected by services]
tbuehlmann has quit [Remote host closed the connection]
mistym_ has joined #ruby-lang
mistym_ has quit [Disconnected by services]
chabill has quit [Ping timeout: 246 seconds]
chabill has joined #ruby-lang
RickHull has joined #ruby-lang
RickHull has quit [Client Quit]
RickHull has joined #ruby-lang
comboy has joined #ruby-lang
havenwood has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
zoo-zed has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby-lang
havenwood has joined #ruby-lang
benkhicks has quit [Quit: Leaving.]
bin7me has quit [Quit: Leaving]
mbj has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
nathanstitt has quit [Quit: I growing sleepy]
styped has joined #ruby-lang
styped__ has joined #ruby-lang
hellome has joined #ruby-lang
lcdhoffman has joined #ruby-lang
DeProdigy has quit [Ping timeout: 248 seconds]
apeiros has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
bf4 has quit [Ping timeout: 272 seconds]
elia has joined #ruby-lang
thmzlt has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
seanlinsley has quit [Quit: seanlinsley]
lfox has quit [Quit: ZZZzzz…]
apeiros has joined #ruby-lang
breakingthings has quit []
thmzlt has quit [Ping timeout: 248 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Remote host closed the connection]
bfleischer has quit [Ping timeout: 248 seconds]