orbyt_ has quit [Read error: Connection reset by peer]
elphe has joined #ruby
genpaku has quit [Ping timeout: 246 seconds]
Spitfire has quit [Ping timeout: 250 seconds]
genpaku has joined #ruby
salasrod has quit [Quit: /quit]
salasrod has joined #ruby
hurricanehrndz has joined #ruby
Spitfire has joined #ruby
Inside has quit [Disconnected by services]
elphe has quit [Ping timeout: 252 seconds]
hurricanehrndz has quit [Read error: Connection reset by peer]
eddof13 has quit [Quit: eddof13]
d10n-work has quit [Quit: Connection closed for inactivity]
jcarl43 has quit [Quit: WeeChat 2.3]
mochiyoda has quit [Remote host closed the connection]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
orbyt_ has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
cow[moo] has joined #ruby
<JJonah>
apeiros: yes, i was wondering if you could make the Enumerator work without iteration. It looks like it calls next internally as `'JJonah'.each_char.cycle.lazy.drop(42_000_000).first` pauses a couple seconds before returning.
<apeiros>
you can't. that's how the enumerator works. by enumerating. hence the name.
<apeiros>
it's based entirely on .each.
bootstrappm has quit [Quit: Leaving]
<JJonah>
yeah, i figured. just wanted to make sure.
hurricanehrndz has joined #ruby
alicef has joined #ruby
elphe has joined #ruby
roshanavand has quit [Remote host closed the connection]
orbyt_ has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
alicef has quit [Client Quit]
jenrzzz has quit [Ping timeout: 268 seconds]
roshanavand has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
roshanavand has quit [Remote host closed the connection]
G has quit [Remote host closed the connection]
elphe has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
cthulchu_ has quit [Ping timeout: 268 seconds]
apeiros has quit [Ping timeout: 252 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<warrshrike>
the result should be a complete traversal of the tree but only the root is printed
apeiros has quit [Ping timeout: 245 seconds]
jasmith has joined #ruby
<baweaver>
warrshrike: what have you tried in debugging it?
<warrshrike>
i ran it
<warrshrike>
mentally
<warrshrike>
in my mind
<baweaver>
Well run it
<baweaver>
literally
<baweaver>
in a repl
<warrshrike>
i know the issue is
<warrshrike>
yeah i did
<warrshrike>
the if condition that checks if left is nil
<baweaver>
Yeah, it's always nil
<warrshrike>
yup. however i cant figure out why
<warrshrike>
for the life of me...
<warrshrike>
hence
<havenwood>
warrshrike: you're not checking the node's #left
<warrshrike>
i have arrived for Aid
<baweaver>
How do instance variables work?
<havenwood>
warrshrike: you're checking an undefined instance variable
<havenwood>
>> @left #=> nil
<baweaver>
you're not in the class with those methods now are you?
<ruby[bot]>
havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<warrshrike>
oh yeah
<warrshrike>
God
<warrshrike>
how could i be such a dumbass
_whitelogger has quit [Remote host closed the connection]
_whitelogger has joined #ruby
<warrshrike>
its quite annoying when you never hear back from a company you really want to work at. like, its still honorable when you fail an interview
apparition has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
zwliew has joined #ruby
cabotto has joined #ruby
cabotto has quit [Client Quit]
warrshrike has quit [Quit: Page closed]
ta_ has joined #ruby
phaul has joined #ruby
dachi has joined #ruby
TheBloke has joined #ruby
reber has joined #ruby
jamied has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
xfbs has joined #ruby
moei has joined #ruby
xfbs has quit [Quit: afk]
Wojnar has joined #ruby
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
jetchisel has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
c0ncealed4 has quit [Remote host closed the connection]
c0ncealed4 has joined #ruby
bkxd has joined #ruby
bkxd has quit [Client Quit]
jetchisel has joined #ruby
zwliew has quit [Quit: Connection closed for inactivity]
MyMind has quit [Read error: Connection reset by peer]
petemoore has quit [Ping timeout: 250 seconds]
MyMind has joined #ruby
dellavg_ has joined #ruby
petemoore has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
jetchisel has quit [Ping timeout: 246 seconds]
Yungfil has joined #ruby
xfbs has joined #ruby
lxsameer has joined #ruby
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ShekharReddy has joined #ruby
Yungfil has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
venmx has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
apparition has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
DD_Trump has joined #ruby
<DD_Trump>
I love ruby and want to help!
ta_ has quit [Ping timeout: 252 seconds]
conta has joined #ruby
RougeR has quit [Ping timeout: 252 seconds]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
MoritaShinobu has joined #ruby
RougeR has joined #ruby
roshanavand has quit [Remote host closed the connection]
elphe has joined #ruby
despai has joined #ruby
rippa has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
despai has quit [Client Quit]
despai has joined #ruby
despai has quit [Client Quit]
elphe has quit [Ping timeout: 272 seconds]
venmx has quit [Remote host closed the connection]
AJA4350 has joined #ruby
desperek has joined #ruby
exchgr has quit [Read error: Connection reset by peer]
exchgr has joined #ruby
za1b1tsu has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 268 seconds]
Shorty6 has joined #ruby
apparition has quit [Quit: Bye]
m0nty0ne has quit [Quit: Leaving]
despai has joined #ruby
k0mpa has joined #ruby
despai has quit [Ping timeout: 252 seconds]
elphe has joined #ruby
despai has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
kapil____ has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
rippa has joined #ruby
elphe has joined #ruby
rippa has quit [Client Quit]
InfinityFye has joined #ruby
clemens3 has joined #ruby
za1b1tsu has joined #ruby
clemens3 has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 272 seconds]
elphe has joined #ruby
roshanavand has joined #ruby
fluxAeon has joined #ruby
despai has quit [Quit: ...]
RougeR has quit [Ping timeout: 245 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
raulp has quit [Ping timeout: 272 seconds]
bak1an has joined #ruby
despai has quit [Ping timeout: 246 seconds]
thinkpad has quit [Ping timeout: 268 seconds]
thinkpad has joined #ruby
elphe has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
habnabit has joined #ruby
_habnabit has quit [Ping timeout: 276 seconds]
ellcs has quit [Ping timeout: 252 seconds]
ricer2 has quit [Ping timeout: 268 seconds]
ricer2 has joined #ruby
<kspencer>
I'm subclassing TCPSocket to add irc commands and such, since the IRC frameworks I usually use have bugs I want to avoid, and so I was wondering what the best way to encapsulate the while True ... data = @sock.sysread(...) # run code on data ... end
z64 has quit [Ping timeout: 250 seconds]
<al2o3-cr>
kspencer: which irc frameworks have you been using?
<kspencer>
cinch mostly, which when the bot gets opered it hangs
<phaul>
kspencer: never inherit from classes you don't own. never inherit if the child class is not a "TCPSocket" for every property of TCPSocket
<phaul>
delegate
<phaul>
btw Im using cinch...
<phaul>
in rubydoc
<al2o3-cr>
phaul: how you going with the eval plugin?
za1b1tsu has joined #ruby
<phaul>
I did it that night
elphe has joined #ruby
<kspencer>
should I extend TCPSocket then
<phaul>
it's sitting in a github pull request
jetchisel has quit [Ping timeout: 252 seconds]
<al2o3-cr>
oh, maybe apeiros hasn't seen it yet
<al2o3-cr>
kspencer: cinch does this just perfectly fine.
<kspencer>
like i said, when cinch gets opered and modes are added to it, it hangs
<kspencer>
If it didn't hang on oper I'd be using it
<al2o3-cr>
it never did when i used cinch. double check your code just to be on the safe side.
<kspencer>
did it get server notice masks added to it?
<al2o3-cr>
kspencer: from what i remember yes.
dionysus69_ has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
za1b1tsu has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
dionysus69_ is now known as dionysus69
<al2o3-cr>
kspencer: you'd be better of asking in #cinch you'll probably get an answer your looking for.
<al2o3-cr>
yeah, he's still there.
<kspencer>
<dominikh> nobody is fixing anything, for Cinch has no maintainer
<al2o3-cr>
ljarvis isn't either :(
<phaul>
going back to extending classes. delegation. have an instance var pointing to the instance and define the methods relevant to you forwarding them to the instance variable...
<al2o3-cr>
phaul: take that with a pinch of salt. must be at least two years ago i messed with that.
<phaul>
al2o3-cr: sure. np
<phaul>
kspencer: that's a better design
<al2o3-cr>
&ri UN
<rubydoc>
Found no entry that matches class UN
<kspencer>
and then what would the best way of encapsulating the socket loop be
<rubydoc>
Found no entry that matches class UN
<phaul>
&list UN
<al2o3-cr>
phaul: whats going on?
<phaul>
what's UN?
<al2o3-cr>
are you using yard or parsing html?
<phaul>
parsing the downloaded html from ruby-doc.org
<al2o3-cr>
ah, thought so.
<phaul>
parsing the index from it only
<phaul>
bot only talks to prebaked DB
<phaul>
what's UN though? :)
<phaul>
kspencer: you are not writing a Socket library. change your mindset to IRC. now that your class is not neceseraly a socket, you are free to design IRC-ish interface