<shevy>
I understand that "almost sinatra" is terse like mad, ok, but to make use of .. rather than () or {} that just seems like deliberate obfuscation
<volty>
>> %w how can that be
<eval-in__>
volty => /tmp/execpad-0910744a95e0/source-0910744a95e0:2: unterminated string meets end of file ... (https://eval.in/215697)
<pontiki>
i use {} for those percenty things most of the time
<volty>
yes, but you can %x which rake (with trailing space)
<Nilium>
Did not know that.
<Nilium>
Would never work for me since my editor strips trailing spaces.
<volty>
ops, %x ls , or %x which\ rake
pdtpatrick_ has quit [Quit: pdtpatrick_]
alvaro_o has quit [Quit: Ex-Chat]
robustus has joined #ruby
<volty>
it could work with the other space, unicode high one, i can't remember the code now
<pontiki>
if i had to maintain such code i would be cursing the coder and their ancestry back 10 generations
<shevy>
hehe
<Nilium>
I have to maintain code using named arguments that don't have names.
<Nilium>
In Obj-C.
<shevy>
hahaha
<Nilium>
Most people don't know you can do that.
kireevco has quit [Quit: Leaving.]
byprdct has joined #ruby
<Nilium>
It's undocumented behavior and it's part of our SDK.
jasooon has joined #ruby
<Nilium>
Either way, nothing to do about it now that it's done.
D9 has joined #ruby
o0oo0o has joined #ruby
jasooon has quit [Ping timeout: 244 seconds]
o0oo0o has quit [Ping timeout: 246 seconds]
volty has quit [Quit: Konversation terminated!]
byprdct has quit []
cashnguns has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
chipotle has joined #ruby
KC9YDN has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: i've nodded off.]
sinequanon has joined #ruby
Scotteh_ has joined #ruby
jasooon has joined #ruby
red_horned_rihno has quit [Ping timeout: 265 seconds]
red_horned_rihno has joined #ruby
oo_ has joined #ruby
ephemerian has quit [Quit: Leaving.]
echevemaster has joined #ruby
Scotteh__ has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
sinequanon has quit [Ping timeout: 245 seconds]
D9 has quit [Quit: Leaving]
mikepack has joined #ruby
aewffwea has joined #ruby
levity_island has quit [Quit: levity_island]
eka has joined #ruby
ghr has joined #ruby
cleopatra has joined #ruby
nonks has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
Deele has quit [Ping timeout: 260 seconds]
linojon has quit [Quit: linojon]
Pupeno_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 265 seconds]
dorei has quit []
jenrzzz has quit [Ping timeout: 265 seconds]
Darryl_ has quit [Quit: Connection closed for inactivity]
jasooon has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
patric100e99 has joined #ruby
jottr has joined #ruby
jasooon has joined #ruby
byprdct has joined #ruby
VanillaGoat_ has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
sinkensabe has joined #ruby
GodPuppet has quit [Remote host closed the connection]
patric100e99 has quit [Ping timeout: 244 seconds]
<porfa>
hello i was looking for some tips i was told here yesterday, so i looked in the public log, but the stuff isn?t there.. did anything ahppend to the public log?
<gizmore>
text: let us just use: 'planck seconds since bigbang'
Abhijit has joined #ruby
<gizmore>
it solves a lot of problems
<gizmore>
especially movies that were recorded by dinosaurs
<aiguu>
don't even get me started on time and time zones :p
<gizmore>
that´s a different topic :)
<Abhijit>
pushest start button.
<gizmore>
wanna see my private ruby project in action?
<gizmore>
join #shadowlamb
kaspergrubbe has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 264 seconds]
<gizmore>
it is a modular chatbat... you can also talk to it via icq or netcat
<gizmore>
it is 100% plugin driven, the plugin api is the best i have seen so far when it comes to chatbots... it has some funny plugins already "rss feeds" ... erm yes
<gizmore>
we should code more useful plugins
luminor has joined #ruby
<gizmore>
there are over 100 plugins already... but none is cool :P
<aiguu>
write one that waits for GitHub commit pushes and then talks about them in irc
<gizmore>
lame
<gizmore>
the bot can checkout svn and git projects
<aiguu>
it can bash bad commit messages
<gizmore>
and show you diffs on webrick
<gizmore>
you can also search repo
<gizmore>
and manage pubkeys
<gizmore>
most stuff undone tho
<gizmore>
checkout works
<gizmore>
and announce
<gizmore>
the webrick stuff is todo, and tricky
Channel6 has quit [Quit: Leaving]
<gizmore>
i have no better idea than using webrick to show diffs :(
<gizmore>
i am open for ideas there
<aiguu>
webrbick bahhh
<gizmore>
you spell it wrong
<gizmore>
it is called WE BRICK
<aiguu>
:p
<gizmore>
if you don´t join #shadowlamb soon, i will spawn my bot here
<gizmore>
coward :)
<gizmore>
*kiddings ;)
krishnaprasad has joined #ruby
Lewix has quit [Remote host closed the connection]
krishnaprasad has quit [Client Quit]
kp666 has quit [Quit: Leaving]
kp666 has joined #ruby
_5kg has quit [Ping timeout: 244 seconds]
rshetty has joined #ruby
muzik has joined #ruby
ghr has joined #ruby
anarang has joined #ruby
gsd has joined #ruby
bbloom has quit [Read error: Connection reset by peer]
aiguu has left #ruby ["WeeChat 1.0.1"]
phutchins has quit [Ping timeout: 245 seconds]
bbloom has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
Jarboe has quit []
tlarevo has joined #ruby
patric100e99 has joined #ruby
f3r has quit []
govg has joined #ruby
doug1 has quit [Ping timeout: 250 seconds]
phutchins has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
patric100e99 has quit [Ping timeout: 240 seconds]
phutchins has quit [Ping timeout: 250 seconds]
nonks has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
jshultz has quit [Quit: Connection closed for inactivity]
<drizz>
m/win 22
<drizz>
er.
<gizmore>
i´ll quote that for further emberassment
<gizmore>
actually that´s african english, but thank you for ignoring culture
sigurding has joined #ruby
<gizmore>
it was worth a try to invent this story... you can stop googleing for it
<gizmore>
12 out of 14 ruby developers say that rails suck... why?
<shevy>
hehehe
<gizmore>
i know there are plenty of reasons.... but without rails it does not get better? :P
<shevy>
well
<shevy>
that is too short sighted
abuzze has quit [Ping timeout: 272 seconds]
<shevy>
because you focus only on "ok we have rails" versus "ok we don't have rails"
<shevy>
so obviously you have good things when you do have rails - it is/was popular, it attracted new people (to ruby, at least a few)
<gizmore>
nah... current problem
<shevy>
they placed ruby onto the web-radar
<gizmore>
i have active record migrations i wanna execute
<shevy>
but there are also not so good things!
<shevy>
rails overshadows a LOT
<gizmore>
but i don´t want to use generators in my gem
shredding has joined #ruby
<gizmore>
hmm maybe i should use generators
<shevy>
projects like ramaze got bulldozered over (though also because rack came up, which eliminated one reason why ramaze existed; sinatra also went in for the kill here)
<shevy>
then you also have a lot more line noise and newcomers asking questions where it shows that they never bothered to invest much into learning ruby the language itself - they only wanted to become rails experts
cpruitt has joined #ruby
<gizmore>
the biggest rails problem is the overhead, and the rails are too tight and bloaty
<shevy>
due to rails being so large, a lot of resources are diverted or influence the ecosystem - see the rise of bundler; also see additions like new hash syntax foo: 'bar'
<shevy>
and I think HashWithIndifferentSyntax or whatever was the name, also came from the rails ecosystem
<gizmore>
activerecord is huge pile of bloat too
irk has quit [Ping timeout: 244 seconds]
<gizmore>
it´s so slow, you almost feel no difference between cache hit and miss
nyanz has quit [Ping timeout: 245 seconds]
Abhijit has quit [Ping timeout: 250 seconds]
Abhijit has joined #ruby
<shevy>
lol
<gizmore>
on the other hand it´s nice to be able reading inserts slowly :)
mostlybadfly has quit [Quit: Connection closed for inactivity]
jasooon has joined #ruby
<shevy>
well
<shevy>
if it abstracts away manual work from me
<shevy>
then it's fine
klaut has joined #ruby
<gizmore>
yeah... we don´t want users anyway
<shevy>
oh I know one more thing
irk has joined #ruby
<shevy>
gizmore it is hard to say but I think with so much focus on the web, other things got less attention
freezey has quit [Remote host closed the connection]
<shevy>
and when people are no longer enthusiastic about the language they use
<shevy>
you will see what happens
<shevy>
they will use javascript!!!
freezey has joined #ruby
<gizmore>
at least javascript is so weird in prototyping that nobody knows whats going on under the hood
<gizmore>
except the guy who created 8bit strings
Insanity133 has quit [Remote host closed the connection]
<gizmore>
there is probably a hidden promise in javascript core.... promise { will_fix(); }
<shevy>
isn't there a linux kernel module for javascript too?
<gizmore>
yes, iptables, why?
<gizmore>
kiddings
<gizmore>
there is? Oo
<gizmore>
make menuconfig
red_horned_rihno has quit [Ping timeout: 245 seconds]
<gizmore>
it sounds more like a redmond decision though
<gizmore>
less kernel switches :)
klaut has quit [Ping timeout: 245 seconds]
red_horned_rihno has joined #ruby
jasooon has quit [Ping timeout: 240 seconds]
<gizmore>
i think the biggest flaw in programming languages is the missing mix between fpu and integer variables
<aewffwea>
gizmore: I know what's going under the hood in JavaScript...
freezey has quit [Ping timeout: 245 seconds]
<gizmore>
you can think that every program needs both, and if the language chose carefully, it wouldn´t pollute either of the registers too much
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<gizmore>
it all boils down to bad gcc optimizations!
<gizmore>
i´ll file a flamereport
HolyWinner has joined #ruby
<gizmore>
aewffwea: also in IE7?! OO
<aewffwea>
gizmore: In a proper implemented JavaScript...
<gizmore>
so libv8
<gizmore>
i will hit the sheets :)
<gizmore>
enough trolling for a man
<gizmore>
<%='good night'%>
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crazydiamond has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
mikepack has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
alem0lars|away is now known as alem0lars
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
klaut has joined #ruby
noop has joined #ruby
Insanity133 has joined #ruby
jottr has joined #ruby
_1_yunior has joined #ruby
jgrevich has quit [Quit: jgrevich]
shredding has quit [Quit: shredding]
_1_yunior has quit [Remote host closed the connection]
_5kg has joined #ruby
shredding has joined #ruby
cnj has quit [Ping timeout: 258 seconds]
jottr has quit [Ping timeout: 244 seconds]
cnj has joined #ruby
charliesome has quit [Quit: zzz]
govg has quit [Ping timeout: 256 seconds]
psy_ has quit [Ping timeout: 240 seconds]
muzik has quit [Quit: This computer has gone to sleep]
rshetty has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
mfmfmfmfmfmf has quit [Remote host closed the connection]
mfmfmfmfmfmf has joined #ruby
charliesome has joined #ruby
mfmfmfmfmfmf has quit [Ping timeout: 245 seconds]
rahult has joined #ruby
starkhalo has quit [Ping timeout: 265 seconds]
o0oo0o has joined #ruby
govg has joined #ruby
o0oo0o has quit [Ping timeout: 246 seconds]
Zettam has joined #ruby
Axy has quit [Read error: Connection reset by peer]
exadeci has quit [Quit: Connection closed for inactivity]
nonks has quit [Remote host closed the connection]
anaeem1 has joined #ruby
freezey has joined #ruby
Zettam has quit [Ping timeout: 255 seconds]
mostlybadfly has joined #ruby
freezey has quit [Ping timeout: 245 seconds]
<shevy>
you will shit the hits?
<shevy>
oh he is gone
abuzze has joined #ruby
jasooon has joined #ruby
abuzze has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
sinkensabe has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
andrewlio has joined #ruby
yfeldblum has joined #ruby
ndrei has joined #ruby
ghr has joined #ruby
psy_ has joined #ruby
blackmesa has joined #ruby
User458764 has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
shredding has quit [Quit: shredding]
patric100e99 has joined #ruby
ozzloy has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
patric100e99 has quit [Ping timeout: 255 seconds]
sevenseacat has joined #ruby
psy_ has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
shredding has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
NakatA has joined #ruby
NakatA has left #ruby [#ruby]
ozzloy has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Jackneill has joined #ruby
freezey has joined #ruby
Mia has quit [Ping timeout: 258 seconds]
cpruitt has quit [Quit: cpruitt]
phutchins has joined #ruby
Xiti` has joined #ruby
Insanity133 has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
Vezz has joined #ruby
Vezz has quit [Max SendQ exceeded]
Axy has quit [Read error: Connection reset by peer]
Xiti has quit [Ping timeout: 244 seconds]
freezey has quit [Ping timeout: 264 seconds]
phutchins has quit [Ping timeout: 258 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
sigurding has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jrdnull has joined #ruby
exadeci has joined #ruby
Insanity133 has joined #ruby
pyon has quit [Ping timeout: 244 seconds]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cya]
jenrzzz has quit [Ping timeout: 264 seconds]
jottr has joined #ruby
jenrzzz has joined #ruby
pyon has joined #ruby
bruno- has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jottr has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
Mia has quit [Read error: Connection reset by peer]
dseitz has quit [Quit: night]
timonv_ has joined #ruby
narendraj9__ has joined #ruby
narendraj9__ has quit [Read error: Connection reset by peer]
doug1 has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
Mia has joined #ruby
bluOxigen has joined #ruby
Abhijit_ has joined #ruby
spider-mario has joined #ruby
rshetty has joined #ruby
anarang has quit [Ping timeout: 256 seconds]
doug1 has quit [Ping timeout: 250 seconds]
Soda has quit [Remote host closed the connection]
Abhijit has quit [Ping timeout: 245 seconds]
kp666 has quit [Remote host closed the connection]
timonv_ has quit [Read error: Connection reset by peer]
nrsk has joined #ruby
timonv_ has joined #ruby
anarang has joined #ruby
moritzschaefer has joined #ruby
timonv_ has quit [Remote host closed the connection]
rahult has joined #ruby
freezey has joined #ruby
nfk has joined #ruby
o0oo0o has joined #ruby
freezey has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
o0oo0o has quit [Ping timeout: 246 seconds]
noop has quit [Ping timeout: 256 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
red_horned_rihno has quit [Ping timeout: 244 seconds]
red_horned_rihno has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
red_horned_rihno has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
rahult has joined #ruby
red_horned_rihno has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
psy_ has joined #ruby
red_horned_rihno has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
red_horned_rihno has joined #ruby
Spami has joined #ruby
Pupeno has joined #ruby
sigurding has quit [Quit: sigurding]
Abhijit_ is now known as Abhijit
jasooon has joined #ruby
anaeem1 has quit [Remote host closed the connection]
moritzschaefer has quit [Remote host closed the connection]
rahult is now known as rahult_
jasooon has quit [Ping timeout: 250 seconds]
red_horned_rihno has quit [Ping timeout: 255 seconds]
mikepack has joined #ruby
AndChat| has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
Pupeno has quit [Remote host closed the connection]
william3 has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
dwhatmuff has joined #ruby
pumba1 has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
pumba1 has left #ruby ["WeeChat 0.3.7"]
ghr has quit [Ping timeout: 264 seconds]
ptrrr has joined #ruby
moritzs has joined #ruby
dwhatmuff has left #ruby [#ruby]
Rx_o has joined #ruby
mikecmpbll has joined #ruby
WormDrink has quit [Ping timeout: 245 seconds]
moritzs has quit [Remote host closed the connection]
moritzs has joined #ruby
goshdarnyou has joined #ruby
Insanity133 has quit [Remote host closed the connection]
Axy has joined #ruby
Axy has joined #ruby
dangerousdave has joined #ruby
timonv_ has joined #ruby
rbrs has joined #ruby
Zettam has joined #ruby
freezey has joined #ruby
codecop has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
jack_rabbit has quit [Ping timeout: 256 seconds]
moritzs has quit [Remote host closed the connection]
crazydiamond has joined #ruby
timonv_ has quit [Remote host closed the connection]
Axy has quit [Ping timeout: 258 seconds]
freezey has quit [Ping timeout: 245 seconds]
Mia has joined #ruby
moritzs has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
Zettam has quit [Ping timeout: 265 seconds]
kaspergrubbe has joined #ruby
shiru has joined #ruby
shredding has quit [Quit: shredding]
moritzschaefer has joined #ruby
Mia has quit [Ping timeout: 264 seconds]
Axy has quit [Ping timeout: 255 seconds]
Insanity133 has joined #ruby
Takle has quit [Remote host closed the connection]
Soda has joined #ruby
Takle has joined #ruby
shiru has quit [Remote host closed the connection]
shredding has joined #ruby
pyon has quit [Ping timeout: 250 seconds]
m8 has joined #ruby
Abhijit has quit [Ping timeout: 258 seconds]
Takle has quit [Ping timeout: 256 seconds]
Soda has quit [Remote host closed the connection]
jottr has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
poguez has quit [Quit: Connection closed for inactivity]
mfmfmfmfmfmf has joined #ruby
william3 has quit [Remote host closed the connection]
pyon has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jasooon has joined #ruby
Abhijit has joined #ruby
rippa has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 264 seconds]
sp0d has joined #ruby
wildroman2 has joined #ruby
ghr has joined #ruby
rshetty has quit [Remote host closed the connection]
aaronite has joined #ruby
rshetty has joined #ruby
<aaronite>
hello, what's the difference between the method sysread() and the other one named read()?
<jhass>
did you read the docs for both?
<aaronite>
yeah
rshetty has quit [Read error: No route to host]
<aaronite>
it says that sysread is similar to readpartial
rshetty has joined #ruby
<jhass>
what in the docs still confuses you?
ghr has quit [Ping timeout: 255 seconds]
<aaronite>
"low-level read"
<aaronite>
what is this supposed to mean?
<jhass>
man 2 read
<jhass>
it's a syscall
<aaronite>
oh, okay thanks
<jhass>
where as the regular read does some buffering and stuff around that
KeroroGunsou has joined #ruby
havenwood has joined #ruby
<aaronite>
it's strange though, in C when I read from a socket it will read only the first line and ignore every other packet, whilst in ruby this works
<jhass>
read with what in C?
<aaronite>
recv
<jhass>
maybe it's too big for your buffer?
<aaronite>
not really
<aaronite>
both my character array and the recv call use the size 8192
<aaronite>
it's not too big
<jhass>
anyway, probably more a ##c question than a #ruby question ;)
<aaronite>
i know, i just wanted to know how the sysread works
<aaronite>
should i use select()?
vyorkin has joined #ruby
<jhass>
depends on your usecase
Xeago has joined #ruby
krz has joined #ruby
freezey has joined #ruby
<apeiros>
the sources are there
<apeiros>
just read them?
aaronite has quit [Quit: leaving]
rshetty has quit [Remote host closed the connection]
chipotle has joined #ruby
<jhass>
you scared him away. But Halloween is over!
rshetty has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
<shevy>
you two are a scary duo
* apeiros
ponders showing shevy some utf-8
<shevy>
Ack!
<shevy>
no more snowmen
<shevy>
did you know that some of them come alive during Halloween?
Abhijit has quit [Ping timeout: 245 seconds]
freezey has quit [Ping timeout: 245 seconds]
anaeem1 has joined #ruby
<jhass>
isn't it wonderful?
decoponio has joined #ruby
User458764 has quit [Ping timeout: 255 seconds]
wildroman2 has quit [Read error: Connection reset by peer]
anaeem1 has quit [Ping timeout: 240 seconds]
wildroman2 has joined #ruby
Abhijit has joined #ruby
User458764 has joined #ruby
livathinos has joined #ruby
stephenwithav has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
end_guy has quit [Ping timeout: 246 seconds]
o0oo0o has joined #ruby
bmurt has joined #ruby
end_guy has joined #ruby
benzrf|offline is now known as benzrf
shredding has quit [Quit: shredding]
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
Fire-Dragon-DoL has joined #ruby
raj_ has joined #ruby
o0oo0o has quit [Ping timeout: 246 seconds]
raj_ has quit [Client Quit]
Takle has joined #ruby
Timgauthier has joined #ruby
Xeago has quit [Remote host closed the connection]
anaeem1 has joined #ruby
klaut has quit [Remote host closed the connection]
wildroman2 has quit [Read error: No route to host]
wildroman2 has joined #ruby
red_horned_rihno has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
renderful has joined #ruby
shredding has joined #ruby
rshetty has quit [Remote host closed the connection]
SouL has joined #ruby
stef204 has joined #ruby
fenak has joined #ruby
rshetty has joined #ruby
fenak has quit [Client Quit]
wildroman3 has joined #ruby
oleo__ has joined #ruby
oleo is now known as Guest78695
wildroman2 has quit [Ping timeout: 244 seconds]
renderful has quit [Ping timeout: 250 seconds]
Rx_o has quit [Quit: (null)]
fenak has joined #ruby
fenak has quit [Client Quit]
Scotteh_ has joined #ruby
fenak has joined #ruby
fenak has quit [Client Quit]
Guest78695 has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
tyll_ has quit [Ping timeout: 264 seconds]
Scotteh has quit [Ping timeout: 255 seconds]
phantummm has joined #ruby
wildroman2 has joined #ruby
tyll has joined #ruby
Guest22192 has joined #ruby
<Guest22192>
any one online ?
<benzrf>
wno
kaspergrubbe has joined #ruby
<Guest22192>
wekk i have a problem with udnerstanding api
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<jhass>
thanks for the info, what shall we do with it?
wildroman2 has quit [Read error: Connection reset by peer]
jasooon has joined #ruby
xymbol has joined #ruby
Abhijit has quit [Ping timeout: 256 seconds]
ndrei has quit [Ping timeout: 245 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
it seems Guest22192 is confused by all this
ndrei has joined #ruby
noop has joined #ruby
<apeiros>
Guest22192: if you want help, you need to phrase your problem. and no, we can't read your mind and go from "I have some unspecified problems with some unspecified API".
mfmfmfmfmfmf has quit [Ping timeout: 256 seconds]
triple_b has joined #ruby
Timgauthier has joined #ruby
ghr has joined #ruby
<crome>
we could come up with an unspecified answer
mfmfmfmfmfmf has joined #ruby
jasooon has quit [Ping timeout: 258 seconds]
<jhass>
I thought I did?
<crome>
fair enough
govg has quit [Ping timeout: 255 seconds]
wildroman3 has quit [Remote host closed the connection]
tessi_zz has joined #ruby
NameNotFound has joined #ruby
l3kn has joined #ruby
asuka has joined #ruby
musicmatze has joined #ruby
Takle has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
<apeiros>
well, >15min to actually phrase a question. I guess it's not that important.
Abhijit has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
User458764 has quit [Ping timeout: 245 seconds]
<havenwood>
i'm surprised `source 'http://4chan.org'` worked, i thought you needed https
<havenwood>
another happy customer!
sinkensabe has quit [Remote host closed the connection]
triple_b has quit [Read error: Connection reset by peer]
hellangel7 has joined #ruby
triple_b has joined #ruby
hellangel7 has quit [Client Quit]
oo_ has joined #ruby
hellangel7 has joined #ruby
stef204 has joined #ruby
triple_b has quit [Remote host closed the connection]
<shevy>
>> :foo/bla
<eval-in__>
shevy => undefined local variable or method `bla' for main:Object (NameError) ... (https://eval.in/215805)
triple_b has joined #ruby
thumpba has joined #ruby
DLSteve has joined #ruby
User458764 has joined #ruby
xymbol has quit [Ping timeout: 272 seconds]
<crome>
shevy forgot how to ruby
<shevy>
I wondered if I can optimize
siwica has joined #ruby
ptrrr has quit [Quit: ptrrr]
max96at|off is now known as max96at
<shevy>
'foo/bla/ya.png' vs :foo/bla/ya.png
phutchins has joined #ruby
xymbol has joined #ruby
jimbach has joined #ruby
ringarin has joined #ruby
triple_b has quit [Remote host closed the connection]
triple_b has joined #ruby
unshadow has joined #ruby
<unshadow>
what is the right resuce for socket "closed stream" error ?
<unshadow>
*rescue
shredding has quit [Quit: shredding]
<shevy>
you can find out usually
<shevy>
rescue Exception => error; p error.class
mityaz has joined #ruby
<shevy>
apeiros I think some days ago you said it is possible to use .class_eval to alias class methods? I forgot the example though, I also forgot to write it down :(
User458764 has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 260 seconds]
sinkensabe has joined #ruby
jenrzzz has joined #ruby
<shevy>
oh
<shevy>
perhaps it was .instance_eval
jottr has quit [Ping timeout: 255 seconds]
jasooon has joined #ruby
shredding has joined #ruby
visof has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
Alina-malina has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 255 seconds]
sp0d has quit [Quit: Leaving]
Deele has joined #ruby
thumpba_ has joined #ruby
jottr has joined #ruby
ctp has joined #ruby
nonks has joined #ruby
thumpba has quit [Ping timeout: 250 seconds]
<toretore>
shevy: you just need to execute alias_method in the right scope, which is the class eigenclass
<toretore>
class << Klass; here; end
shredding has quit [Quit: shredding]
<shevy>
hehe
<shevy>
the syntax apeiros showed allowed one to avoid the use of <<
chipotle has quit [Quit: cya]
mfmfmfmfmfmf has quit [Read error: Connection reset by peer]
thumpba_ has quit []
mikepack has joined #ruby
govg has quit [Quit: leaving]
dailite has joined #ruby
govg has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
ghr has joined #ruby
jasooon has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: zzz]
wildroman2 has joined #ruby
eat_multi has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
timonv_ has joined #ruby
dailite has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 258 seconds]
cpruitt has joined #ruby
nonks has quit [Ping timeout: 246 seconds]
timonv_ has quit [Remote host closed the connection]
<apeiros>
shevy: you can `instance_eval do alias baz bar end` or `singleton_class.send :alias_method, :baz, :bar` in the class body. but I see no reason to avoid `<< self`
<apeiros>
of course you could transform either variant into Module#alias_class_method
ghr has quit [Ping timeout: 250 seconds]
sinkensabe has quit [Remote host closed the connection]
fenak has quit [Quit: leaving]
AlexRussia has joined #ruby
HolyWinner has quit [Read error: Connection reset by peer]
freezey has joined #ruby
magic__ has quit [Remote host closed the connection]
<unshadow>
I'm having problems with a tcp proxy loop, I want to break out when one of the sockets is dead (ie closed) but the .closed? methoud only shows true when I do socket.close, what is the right way to know when the other end is not with us anymore ?
jheg has joined #ruby
HolyWinner has joined #ruby
sinkensabe has joined #ruby
jimbach has quit [Remote host closed the connection]
hellangel7 has quit [Quit: hellangel7 : Later guys !]
bmurt has quit []
oo_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
freezey has quit [Ping timeout: 265 seconds]
anarang has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
moritzs has quit [Remote host closed the connection]
moritzschaefer has quit [Remote host closed the connection]
<kl_>
I see when the author made the dining philosopher's program use actors, eat and think became tightly coupled, i.e. one effectively causing the other
<kl_>
is it possible to avoid this with the actor model?
ndrei has joined #ruby
mikepack has quit [Ping timeout: 258 seconds]
nonks has joined #ruby
Insanity133 has joined #ruby
kireevco has joined #ruby
Spami has joined #ruby
weemsledeux has joined #ruby
weemsledeux has joined #ruby
IceDragon has joined #ruby
koderok has joined #ruby
sigurding has quit [Quit: sigurding]
DLSteve has joined #ruby
nonks has quit [Ping timeout: 246 seconds]
Spami has quit [Client Quit]
Insanity133 has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
phutchins has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
sevenseacat has quit [Remote host closed the connection]
red_horned_rihno has joined #ruby
patrick99e99 has quit [Ping timeout: 256 seconds]
zorak8 has joined #ruby
mary5030 has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 250 seconds]
eat_multi has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
benzrf|offline is now known as benzrf
zorak_ has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
livathinos has joined #ruby
shredding has quit [Quit: shredding]
<aewffwea>
What's the easiest way to connect via ssh to several remote servers and grep some files? (Preferably using as less as bash and as much as ruby as possible)
<havenwood>
epitron: missed your question, the disease, hehe
<epitron>
off by one error.. the range needs an extra dot
<crome>
5 or 6 bytes
mikeric has joined #ruby
<epitron>
havenwood: so, the richness of brunch causes inflammation?
<crome>
who cares
<havenwood>
epitron: foods high in purines break down into uric acid
<epitron>
oic
<havenwood>
the crystals cause probs
<epitron>
which foods have the purines?
<havenwood>
meats, particularly organs or shellfish
<epitron>
fascinating
<havenwood>
like kidneys, heart, shrimp
<crome>
no organs then. luckily you can still eat a piano
<havenwood>
brains are really high in purine
<havenwood>
don't eat brain
<havenwood>
asparagus and mushrooms are high on the veggie side
patrick99e99 has quit [Ping timeout: 250 seconds]
rkalfane has joined #ruby
KC9YDN has joined #ruby
omosoj has joined #ruby
xymbol has quit [Read error: Connection reset by peer]
<aaronite>
i think i figured it out guys
<havenwood>
aaronite: oh?
<aaronite>
well
<aaronite>
turns out i forgot something
<havenwood>
oopsy
ping-pong has joined #ruby
<aaronite>
nope just tested it
<aaronite>
to hell with sockets from ruby
ftj has joined #ruby
<crome>
lol
blueOxigen has quit [Ping timeout: 244 seconds]
<crome>
to hell with sockets that don't just read stuff when they are closed
<crome>
they could make up something, right?
xymbol has joined #ruby
<aaronite>
i'm not supposed to put @gamesock in the initialization method
shevy has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
rshetty has quit [Remote host closed the connection]
livathinos has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
rshetty has joined #ruby
Ishiro has quit [Quit: Computer has gone to sleep.]
fandi has joined #ruby
mfmfmfmfmfmf has joined #ruby
aaronite has quit [Quit: leaving]
snovity has joined #ruby
Petru has joined #ruby
livathinos has quit [Ping timeout: 264 seconds]
rshetty has quit [Ping timeout: 244 seconds]
Soda has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchins has quit [Ping timeout: 265 seconds]
lou_ has joined #ruby
lou_ has quit [Remote host closed the connection]
KC9YDN has quit [Quit: ☭ Karl Marx & Friedrich Engels, Vladimir Lenin, Josef Stalin, Mao Tse-Tung, Kim Il Sung, Ho Chi Minh, Fidel Castro & Ernesto Guevara ☭]
kl_ has quit [Ping timeout: 265 seconds]
<apeiros>
crome: I think you're on to something!
klaut has quit [Remote host closed the connection]
<apeiros>
class InfiniteSocket < WhateverSocket; def sysread(n); super; rescue EOFError; SecureRandom.random_bytes(n); end; end
<apeiros>
there! no more end of input!
nonks has joined #ruby
<apeiros>
class InfiniteSocket < WhateverSocket; def sysread(n); super; rescue EOFError; SecureRandom.random_bytes(rand < 0.1 ? rand(1...n) : n); end; end
<apeiros>
now it even emulates shorter input than read-length
livathinos has joined #ruby
Rahul_Roy_ has joined #ruby
Kricir has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
nonks has quit [Ping timeout: 246 seconds]
manzo has joined #ruby
Ishiro has joined #ruby
Petru has quit [Quit: Leaving]
Kricir has quit [Remote host closed the connection]
Ishiro has quit [Client Quit]
timonv_ has joined #ruby
chrishough has joined #ruby
dkb20k has joined #ruby
rkalfane has joined #ruby
JohnBat26 has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
starless has quit [Ping timeout: 272 seconds]
skolman has joined #ruby
dkb20k has quit [Ping timeout: 264 seconds]
cleopatra has joined #ruby
Azure has joined #ruby
cleopatra has quit [Read error: Connection reset by peer]
starkhalo has joined #ruby
cleopatra has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
jaffachief has joined #ruby
cleopatra has quit [Read error: Connection reset by peer]
cleopatra has joined #ruby
xymbol has quit [Read error: Connection reset by peer]
Nieralyte has quit [Quit: Nieralyte]
xymbol has joined #ruby
cleopatra has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
cleopatra has joined #ruby
anaeem1_ has joined #ruby
klaut has joined #ruby
fuhgeddaboudit has joined #ruby
mary5030 has quit [Remote host closed the connection]
top4o has quit [Quit: ChatZilla 0.9.91 [Firefox 33.0.2/20141027150301]]
sinequanon has joined #ruby
anaeem1_ has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
timonv_ has joined #ruby
anaeem1_ has joined #ruby
Versality has joined #ruby
timonv_ has quit [Remote host closed the connection]
SirFunk has quit [Remote host closed the connection]
<waxjar>
do you want to know how to write a cli tool or how to package one with your gem?
bruno- has joined #ruby
mary5030 has joined #ruby
banister has joined #ruby
francisfish has quit [Ping timeout: 260 seconds]
banister has quit [Max SendQ exceeded]
bbloom_ has joined #ruby
bbloom has quit [Ping timeout: 245 seconds]
<syva>
hello , does anyone have any thoughts on a nice way of merging two arrays together based on nil elements? I can see an easy way to do it just by iterating over the second array, but wondering if there’s something cooler available? https://gist.github.com/anonymous/2d0458864ee9c68dbef8
W0rmDr1nk has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
* jhass
has a deja-vu
banister has joined #ruby
<waxjar>
syva: is the order important?
<syva>
yes
banister has quit [Max SendQ exceeded]
<jhass>
syva: each_with_index
randiman has joined #ruby
<syva>
each array is value of doors in backgammon
<syva>
first array is white player
<syva>
second is black player chips
mfmfmfmfmfmf has quit []
<jhass>
this must be some homework or something, we had the exactly same question like yesterday
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Areessell_ has quit [Quit: (null)]
einarj has joined #ruby
einarj has quit [Remote host closed the connection]
<syva>
not homework, building play backgammon via REST
<syva>
:)
ghr has joined #ruby
<waxjar>
a.zip(b).map{ |x,y| x || y }
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<sarkis>
waxjar: actually i got it - this is so simple :)
einarj has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
<syva>
thanks, although i guess this wil result in iterating twice
<syva>
where as an each with index means i just iterate once
banister has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
banister has quit [Max SendQ exceeded]
<waxjar>
true
<jhass>
plus N index accesses
<jhass>
probably not much of a difference
<syva>
okay thanks so much guys :)
<waxjar>
but don't think about those things unless they're a real problem :P
auxbuss has quit [Quit: I'm gone.]
mikeric has quit []
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<jhass>
allocating a few more arrays might be an issue, if at all
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
<headius>
JRuby 1.7 supports both 1.8.7 and 1.9.3, but JRuby 9000 will just be whatever current MRI is
Areessell_ has joined #ruby
<headius>
so, 2.2 when we release next month
<diegoviola>
ok
<headius>
we may maintain a major release for each MRI compat level (e.g. we'll keep our 2.2-compat release maintained), until interest in that level wanes
Insanity133 has joined #ruby
synergyz has joined #ruby
frog0909 has joined #ruby
<headius>
depends how drastic the changes in MRI are :-)
JDHankle has joined #ruby
visof has joined #ruby
rahult_ is now known as rahult
it0a has quit [Quit: WeeChat 1.0.1]
olivier_bK has quit [Ping timeout: 256 seconds]
<diegoviola>
I see
Insanity133 has quit [Ping timeout: 256 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<diegoviola>
does Red Hat contributes to JRuby development
<diegoviola>
financially
Channel6 has quit [Quit: Leaving]
SilkFox has joined #ruby
<headius>
other than by paying us to work on it?
jpierre03 has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<headius>
they have sponsored both ruby and jruby events and continue to build projects for and on top of JRuby
<diegoviola>
ok
hamakn has joined #ruby
AndChat| has joined #ruby
dangerousdave has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
sevvie_ has joined #ruby
Areessell_ has quit [Ping timeout: 256 seconds]
<diegoviola>
I know some ruby, how would you contribute to an implementation like JRuby, MRI or Rubinius, where to start
djbkd has quit [Quit: My people need me...]
<headius>
each project has their own sets of tasks... for JRuby right now we're trying to get all features up to and including 2.2 finished in the next month or so
lkba has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
<headius>
so we're looking for people to help figure out what features and behaviors we are missing and help us to fill in the blanks
<diegoviola>
ok...
sevvie has quit [Ping timeout: 258 seconds]
<diegoviola>
so a good start is like actually running applications on them and report bugs... ?
<headius>
absolutely
<headius>
that also helps find any remaining issues with new users :-)
ndrei has quit [Ping timeout: 244 seconds]
<diegoviola>
i see, thanks
<diegoviola>
I'll do that
hamakn has quit [Ping timeout: 265 seconds]
<headius>
great, feel free to hang out in #jruby too
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kl has joined #ruby
dangerousdave has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw_ has joined #ruby
mostlybadfly has joined #ruby
lw_ has quit [Max SendQ exceeded]
lw has joined #ruby
jimms has quit []
Xeago has quit [Remote host closed the connection]
sinequanon has quit [Remote host closed the connection]
sinequanon has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
lw has quit [Client Quit]
Pupeno has joined #ruby
tlarevo has quit [Ping timeout: 256 seconds]
razieliyo has joined #ruby
rahult has joined #ruby
rahult has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
Pupeno_ has quit [Ping timeout: 272 seconds]
Versality has quit [Quit: Be back later ...]
drawingthesun has joined #ruby
Versality has joined #ruby
nonks has joined #ruby
weemsledeux has quit [Ping timeout: 264 seconds]
sinequanon has quit [Remote host closed the connection]
spastorino has joined #ruby
cashnguns has quit [Remote host closed the connection]
sinequanon has joined #ruby
pgmcgee has joined #ruby
ringarin has quit [Ping timeout: 255 seconds]
nonks has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
sinequanon has quit [Remote host closed the connection]
ringarin has joined #ruby
ccooke has joined #ruby
jenrzzz has joined #ruby
ringarin has quit [Client Quit]
Xiti has quit [Quit: Leaving]
<jheg>
I’m trying to increment one of three class variables depending on a conditional after the class instance has been created but struggling to figure out how
<jheg>
If anyone could have a little peak and see if there is anythign Im doing wrong I’d really appreciate it
entrenador has quit [Client Quit]
<jheg>
ive created some class varaibles in the 3 classes starting on lines 52, 65 & 78
<jheg>
they are basically computer opponents
entrenador has joined #ruby
<shevy>
class variables are awful
<jheg>
initially they are set all to zero and store wins, losses and ties
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkb20k has joined #ruby
o0oo0o has quit [Ping timeout: 246 seconds]
<jheg>
each game loop the game recreates a new instance of one of the three classes so I dont think I can use instance vars as they get reset at instantiation
JBreit has left #ruby ["Leaving"]
<jheg>
so i was trying update the class vars once the game has finished using the method i wrote on line 44 which i include in each class
<jheg>
shevy: why’d you say that?
<shevy>
because they really are
<shevy>
why do you need them there rather than @ivars?
entrenador has quit [Client Quit]
<jheg>
because the game is on a loop and each loop instantiates one of the three available opponent classes and when they are initialized the @vars would be set to 0
deepy has quit [Ping timeout: 272 seconds]
<jheg>
I need them to store a history
<jheg>
for example “you are playing Frank who has won 4, drawn 2 and lost 0”
<jhass>
jheg: you want to separate the history data from the game data
nacho-chips has quit [Remote host closed the connection]
<shevy>
btw
<shevy>
def msg
<shevy>
puts "#{name} chooses #{option}"
<shevy>
where from does name come?
<diegoviola>
what's the alternative to chruby and ruby-install for python
deepy has joined #ruby
<jheg>
shevy: that comes from the class Player
nacho-chips has joined #ruby
deepy is now known as Guest12305
dkb20k has quit [Ping timeout: 256 seconds]
<shevy>
no that is not true
<jheg>
jhass: so store the history seperate from the opponent object?
<jheg>
oh no sorry shevy it comes from the human class
<shevy>
yeah
snath has quit [Ping timeout: 244 seconds]
<shevy>
I've never seen such before
<havenwood>
diegoviola: virtualenv
kinesis has left #ruby [#ruby]
<jheg>
It was in the Player class but I switched it to the Human and the Opponent classes
sinkensabe has joined #ruby
<jhass>
jheg: yes, class variables are shared among the ancestry chain, which is what's tricking you
jenrzzz has quit [Ping timeout: 255 seconds]
kirun has quit [Quit: Client exiting]
<diegoviola>
havenwood: thanks
<jheg>
jhass: It certainly is tricking me
<havenwood>
diegoviola: crush the snake! ruby, ruby, ruby!
<jhass>
jheg: instance variables are just a lot easier to reason about
<diegoviola>
havenwood: ;)
<diegoviola>
havenwood: yeah I was just being curious, I prefer ruby myself
<jhass>
jheg: I guess in your example one could also use class level instance variables (instance variables of the Class instance), but it's not a too nice design IMO
poulet_a has joined #ruby
<havenwood>
diegoviola: yeah, i poke around from time to time too
poulet_a has quit [Client Quit]
<diegoviola>
:p
sinkensabe has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
jenrzzz has joined #ruby
<jheg>
when I instantiate the class it sets the 3 vars to 0 if I put them in the initialize method so should I place them elsewhere in the class?
<jheg>
I mean I can’t increment them at creation as the result is not known until the end of the game
Devr3d has quit [Remote host closed the connection]
<jhass>
you would extend not include your OpponentsTally and pass it the current instance to get the values
Xeago has joined #ruby
<jhass>
but do you plan to have any other per game data beyond the name?
Xiti has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
<jheg>
no just the name and history data
djbkd has quit [Remote host closed the connection]
<jhass>
and the name for the opponents is static, so I don't see why you need new instances each loop
djbkd has joined #ruby
phutchins has joined #ruby
<jhass>
just create them at boot and pick one in each cycle
<jheg>
ah yes great idea
<jheg>
so create all three and then select them from an array when the game starts?
<jhass>
yeah. for the player you currently collect no history data, if you plan to I'd keep it simple, make one instance and set the name again if desired
<jheg>
brilliant thanks mate - it seems so bloody obvious no you’ve said that too
<jheg>
*now you’ve said ...
Takle has quit [Remote host closed the connection]
djbkd has quit [Read error: Connection reset by peer]
<jhass>
reduces you to one Opponent class too
<jhass>
if you need that at all really
<jheg>
thanks really appreciate all your help from some pretty nub questions I’m sure :)
<jhass>
well, having Opponent1, Opponent2 and Opponent3 is already a clear sign that you're abusing classes for instances ;)
jarto has joined #ruby
<jheg>
we just stepped into oop from procedural and i guess im feeling the burden of having to write many classes ha
<jhass>
does that thing already include all functionality you'll ever need?
bruno- has joined #ruby
<jheg>
which thing?
zorak8 has quit [Read error: Connection reset by peer]
<jhass>
your script
<jheg>
pretty much
<jheg>
yeah
spider-mario has quit [Ping timeout: 264 seconds]
<jheg>
I mean the basic gameplay is complete im just messing around adding features really
supersym has quit [Quit: WeeChat 1.0.1]
<jhass>
pretty poring, all opponents always pick the same thing :P
<jhass>
*boring
<jheg>
shouldnt :?
<jheg>
actually yeah I haven’t finished
<jheg>
lol thats an easy fix though
<jheg>
I just put the string in there to get the game working
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jheg>
[‘p’,’s’,’r’].sample
<jheg>
sorts that I think
<jhass>
yeah
klaut_ has quit [Remote host closed the connection]
<wasamasa>
diegoviola: I try doing it the other way around
jenrzzz has joined #ruby
<wasamasa>
diegoviola: respecting people until they demonstrate me they don't need my respect
<wasamasa>
diegoviola: it works surprisingly well
<diegoviola>
I see
<wasamasa>
somehow I think I'm not alone
<wasamasa>
maybe it's no big deal and how everyone who's not a total fuckhead is doing it
<wasamasa>
oh wait, did I just call linus a fuckhead?
<wasamasa>
I guess I did
psy_ has quit [Ping timeout: 240 seconds]
jimbach has joined #ruby
rahult has joined #ruby
<diegoviola>
he invented linux and git
Xeago has quit [Remote host closed the connection]
Insanity133 has joined #ruby
<wasamasa>
that doesn't stop him from being an asshole
<soahccc>
I guess he earned the respect ;)
<diegoviola>
but yeah it's not like I agree with everything he does or says
msmith_ has joined #ruby
<diegoviola>
I'm not a sheep
<Nilium>
You're a sheep.
<diegoviola>
no u
Takle has joined #ruby
suy has quit [Remote host closed the connection]
suy|BNC is now known as suy
<diegoviola>
linux... only freetards use it, git? mercurial is better
<diegoviola>
trololo
suy_ has joined #ruby
pyx has joined #ruby
<diegoviola>
wait, I didn't say that
pyx has quit [Client Quit]
<diegoviola>
Nilium: why would you say I'm a sheep though?
<Nilium>
Don't know, not a damn clue what anyone's talking about.
Areessell_ has joined #ruby
<soahccc>
The thing with these quotes and questions is: What do YOU think is respect? I can only go after the standarized definition but I experienced that most of the people don't have a dictionary in their head...
<havenwood>
Baaah! That's what.
Insanity133 has quit [Ping timeout: 272 seconds]
<soahccc>
"To feel or show deferential regard for; esteem." I think this is something which is not granted to every person by default
jasooon has quit [Ping timeout: 265 seconds]
<havenwood>
soahccc: i think people just misread it sometimes as basic respect, a simple baseline esteem
<havenwood>
not deferential
<diegoviola>
Nilium: you were trolling then, nevermind
Insanity133 has joined #ruby
<Nilium>
That said, I use Mercurial at work and git for personal stuff, and my experience is mostly that git's better.
<diegoviola>
Nilium: yeah I also like git more
<diegoviola>
I was trolling also
<diegoviola>
I like linux a lot also
<Nilium>
Mercurial is good for SVN people who can't adjust, git's good for people who like commit history fuckery.