apeiros changed the topic of #ruby-lang to: Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste code on https://gist.github.com
toretore has quit [Quit: This computer has gone to sleep]
aaeron has joined #ruby-lang
<aaeron> hi
_djbkd has joined #ruby-lang
<aaeron> how shall I call a stubbed method twice
<aaeron> first with different params and second time with different
rbowlby has quit [Remote host closed the connection]
<pipework> Did you try calling the method twice with two different sets or arguments?
woodruffw has joined #ruby-lang
<aaeron> Yes
<aaeron> using once and twice?
__butch__ has joined #ruby-lang
<zenspider> aaeron: what do you hope to achieve? does testing at that level actually gain anything?
<aaeron> Yes
<zenspider> ...
<aaeron> I have a method A, where I am calling method B twice. with different params
<aaeron> I need to stub different values in B
<aaeron> Will once and twice work?
<aaeron> I used once and twice and it workd
<zenspider> aaand now you have two problems
<aaeron> I think it is running fine now
<aaeron> I dint see any errors
__butch__ has quit [Quit: Leaving.]
nedp has quit [Remote host closed the connection]
<zenspider> aaeron: if you didn't make it fail, how do you know it works?
<aaeron> I am passing the parameters it expects and hence it is passing
<aaeron> Is there anything I am missing?
<aaeron> zenspider/
<aaeron> ?
_djbkd has quit [Remote host closed the connection]
<womble> If a bug crashes an app, and nobody's monitoring it... does it make a sysadmin cry?
<aaeron> Right.
<aaeron> So I wil add a negative test to check that
dorei has quit []
<aaeron> Will that do? Is there anything else I need to do?
<pipework> aaeron: There's this thing called "red green refactor".
<pipework> You have to write a failing test first.
<aaeron> Oh.
<aaeron> Got it.
<aaeron> Make it pass, and then refactor
<aaeron> Got it. Actually the thing is I already made a script and now I am writing the tests
<aaeron> In my next sprint I will use Red Green Refactor as u suggested
<aaeron> thanks pipework
<zenspider> a test that never failed is almost always useless... esp when you're doing mock-first.
<zenspider> take out the impl entirely... test still passes.
<aaeron> Yes.
<aaeron> U are right
baweaver has joined #ruby-lang
<aaeron> It does mention that : Not yet implemented
<aaeron> if I remove the implementation of the stubbed methods
<aaeron> which is not particularly useful
<aaeron> zenspider, thanks for the suggestion
<aaeron> Oh no. It just goes on without saying anything. I was seeing the output from another example I created without the body
<zenspider> not a useful testing strategy, imo
<pipework> One might call it a Stragedy.
<aaeron> Tragic strategy
rawrmonstar has joined #ruby-lang
<aaeron> Brings me to another question the solution of which I was not able to gather from google
<aaeron> How do we stub a command line call
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby-lang
<zenspider> how do you make a "command line call" in ruby?
<aaeron> I use mixlib
<aaeron> But for this current one I am using ``
<zenspider> does that answer my question?
<zenspider> ok. there you go. you override the ` method
<aaeron> I use this: `cat $test`
<zenspider> why?
<aaeron> So are u saying that I should use something like mixlb?
<zenspider> why would you ever call cat?
<aaeron> thats just an example
<aaeron> :D
<zenspider> File.read path
<zenspider> >> ruby -e 'def ` s; puts "no #{s}"; end; `ls`'
<eval-in> zenspider => /tmp/execpad-b53922b7f01c/source-b53922b7f01c:2: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' ... (https://eval.in/352302)
<zenspider> hah. runs fine for me eval-in
<aaeron> hehe
<zenspider> who wrote this thing? it's getting buggier and buggier
<pipework> zenspider: I think it's because it runs the string in a ruby runtime.
<pipework> It's not a shell.
<aaeron> I think so too
<zenspider> pipework: that's what popen is for
<pipework> zenspider: I don't think eval-in is aware.
<zenspider> it barely runs. I wouldn't expect it to be aware.
tkuchiki has joined #ruby-lang
<pipework> zenspider: I .trust you understand what I meant though. eval-in evals everything after ">> " as ruby in a ruby runtime.
<zenspider> oh. shit. yeah. I get it now. I'm fucking tired and not thinking
<zenspider> >> 'def ` s; puts "no #{s}"; end; `ls`
<eval-in> zenspider => /tmp/execpad-62dc537778f6/source-62dc537778f6:2: unterminated string meets end of file ... (https://eval.in/352336)
<zenspider> >> def ` s; puts "no #{s}"; end; `ls`
<eval-in> zenspider => no ls ... (https://eval.in/352337)
<zenspider> I totally forgot that I wrapped it with ruby -e
<zenspider> didn't even see it after you mentioned
<aaeron> zenspider: got the override for ` working
<aaeron> It was so simple. But dint get it anywhere in google but u
<pipework> zenspider: Whenever you're not entirely correct about something, I always start questioning everything I know because you're not too shabby. So if you could just be right all the time, that'd do wonders for my confidence. :p
<zenspider> just look at the calendar. if it is tuesday, assume I'm stupid. :)
<zenspider> (really)
Missphoenix has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 250 seconds]
<womble> It's Wednesday here, so does that mean that you're smart on this side of the date line?
lewis__ has joined #ruby-lang
<lewis__> hi guys
yfeldblum has joined #ruby-lang
charliesome has joined #ruby-lang
marr has joined #ruby-lang
michaeldeol has quit [Ping timeout: 256 seconds]
marr has quit [Client Quit]
wallerdev has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
zendrix has quit [Read error: No route to host]
zendrix has joined #ruby-lang
bertocode has quit [Quit: Nettalk6 - www.ntalk.de]
zendrix has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
_djbkd has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 272 seconds]
shakes has joined #ruby-lang
bruno-_ has quit [Ping timeout: 255 seconds]
anaiden has quit [Ping timeout: 244 seconds]
cryo28 has quit [Quit: leaving]
joaomdmoura has joined #ruby-lang
fujimura has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
charliesome has joined #ruby-lang
fujimura has quit [Ping timeout: 272 seconds]
jgpawletko has quit [Quit: jgpawletko]
shinnya has quit [Ping timeout: 245 seconds]
iamse7en has joined #ruby-lang
iamse7en has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
joaomdmoura has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 256 seconds]
alestuber has joined #ruby-lang
|jemc| has quit [Ping timeout: 272 seconds]
alestuber has quit [Ping timeout: 264 seconds]
nofxx has joined #ruby-lang
duderonomy has joined #ruby-lang
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
datanoise has joined #ruby-lang
amclain has joined #ruby-lang
fedexo has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
cryo28 has joined #ruby-lang
b_hoffman has joined #ruby-lang
bruno- has quit [Ping timeout: 245 seconds]
kfpratt has joined #ruby-lang
Raycaster1 has quit [Ping timeout: 276 seconds]
auzty has joined #ruby-lang
iamninja has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby-lang
joaomdmoura has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
aaeron has quit [Quit: aaeron]
nofxx_ has joined #ruby-lang
nofxx has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
amystephen has quit [Quit: amystephen]
duderonomy has quit [Ping timeout: 272 seconds]
lewis__ has quit [Remote host closed the connection]
znz_jp has quit [Quit: kill -QUIT $$]
kfpratt has quit [Remote host closed the connection]
znz_jp has joined #ruby-lang
fujimura has joined #ruby-lang
kfpratt has joined #ruby-lang
cryo28 has quit [Ping timeout: 256 seconds]
fujimura has quit [Ping timeout: 250 seconds]
joaomdmoura has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
t0rrieri has joined #ruby-lang
Torrieri has quit [Ping timeout: 244 seconds]
gix has quit [Ping timeout: 256 seconds]
gix has joined #ruby-lang
amystephen has joined #ruby-lang
rbowlby has joined #ruby-lang
j4cknewt has joined #ruby-lang
brownbathrobe has joined #ruby-lang
bruno- has joined #ruby-lang
cryo28 has joined #ruby-lang
bruno- has quit [Ping timeout: 258 seconds]
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
charliesome has quit [Quit: zzz]
charliesome has joined #ruby-lang
dellavg_ has joined #ruby-lang
joaomdmoura has joined #ruby-lang
yfeldblum has joined #ruby-lang
Miphix has joined #ruby-lang
JEG2 has quit [Quit: Connection closed for inactivity]
fedexo has quit [Ping timeout: 256 seconds]
cornerma1 has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
b_hoffman has joined #ruby-lang
j4cknewt has quit [Ping timeout: 256 seconds]
cornerman has quit [Ping timeout: 252 seconds]
cornerma1 is now known as cornerman
Musashi007 has quit [Quit: Musashi007]
j4cknewt has joined #ruby-lang
Musashi007 has joined #ruby-lang
brownbathrobe has quit [Remote host closed the connection]
skade has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
pwnz0r_ has joined #ruby-lang
pwnz0r_ has quit [Remote host closed the connection]
pwnz0r_ has joined #ruby-lang
Miphix has quit [Read error: Connection reset by peer]
kfpratt has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
_djbkd has joined #ruby-lang
Musashi007 has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
joaomdmoura has quit [Remote host closed the connection]
rippa has joined #ruby-lang
workmad3 has joined #ruby-lang
joaomdmoura has joined #ruby-lang
Miphix has joined #ruby-lang
amystephen has quit [Quit: amystephen]
workmad3 has quit [Ping timeout: 245 seconds]
<zenspider> womble: maybe?
ir2ivps3 has quit [Remote host closed the connection]
b_hoffman has quit [Quit: b_hoffman]
pwnz0r_ has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
fluchtreflex_ has joined #ruby-lang
nibbo has quit [Ping timeout: 256 seconds]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
PaulePan1er has joined #ruby-lang
tommylom1ykins has joined #ruby-lang
thelastinuit has joined #ruby-lang
fusillicode1 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 245 seconds]
maloik has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
hagebake has joined #ruby-lang
Mellett68 has joined #ruby-lang
matled- has joined #ruby-lang
brixen_ has joined #ruby-lang
fusillicode has quit [Ping timeout: 250 seconds]
segy_ has joined #ruby-lang
ir2ivps3 has joined #ruby-lang
VinnyBoy has quit [Read error: Connection reset by peer]
seank_ has joined #ruby-lang
rippa has quit [*.net *.split]
nofxx_ has quit [*.net *.split]
A124 has quit [*.net *.split]
maloik_ has quit [*.net *.split]
wprice has quit [*.net *.split]
fluchtreflex has quit [*.net *.split]
matled has quit [*.net *.split]
segy has quit [*.net *.split]
SHyx0rmZ has quit [*.net *.split]
seank__ has quit [*.net *.split]
brixen has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
hagabaka has quit [*.net *.split]
Mellett68_ has quit [*.net *.split]
segy_ is now known as segy
matled- is now known as matled
j4cknewt has joined #ruby-lang
rawrmonstar has quit [Quit: Textual IRC Client: www.textualapp.com]
shakes has quit [Quit: Leaving]
nofxx_ has joined #ruby-lang
brixen_ is now known as brixen
tkuchiki_ has joined #ruby-lang
hakunin has joined #ruby-lang
tkuchiki has quit [Ping timeout: 258 seconds]
dented42 has quit [Quit: Textual IRC Client: www.textualapp.com]
fusillicode1 has quit [Ping timeout: 255 seconds]
A124 has joined #ruby-lang
wprice has joined #ruby-lang
nibbo has joined #ruby-lang
A124 is now known as Guest36132
anaiden has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
rbowlby has joined #ruby-lang
anaiden has quit [Max SendQ exceeded]
anaiden has joined #ruby-lang
rbowlby has quit [Ping timeout: 255 seconds]
aaeron has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
aaeron_ has joined #ruby-lang
aaeron has quit [Ping timeout: 240 seconds]
aaeron_ is now known as aaeron
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
revath has joined #ruby-lang
existensil has quit [Quit: WeeChat 0.4.2]
fusillicode has joined #ruby-lang
existensil has joined #ruby-lang
rbowlby has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 246 seconds]
amclain has quit [Quit: Leaving]
stan has joined #ruby-lang
allomov has joined #ruby-lang
aaeron has quit [Ping timeout: 252 seconds]
futilegames has joined #ruby-lang
futilegames has quit [Client Quit]
revath has quit [Quit: Leaving]
revath has joined #ruby-lang
niemcu has joined #ruby-lang
skade has joined #ruby-lang
futilegames has joined #ruby-lang
futilegames has quit [Client Quit]
ta has quit [Remote host closed the connection]
revath has quit [Remote host closed the connection]
revath1 has joined #ruby-lang
haraoka has joined #ruby-lang
ur5us_ has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
duderonomy has joined #ruby-lang
joaomdmoura has joined #ruby-lang
revath1 has left #ruby-lang [#ruby-lang]
revath1 has joined #ruby-lang
revath1 has left #ruby-lang [#ruby-lang]
revath1 has joined #ruby-lang
ur5us has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
Iskarlar has joined #ruby-lang
solars has joined #ruby-lang
ta has joined #ruby-lang
thelastinuit has quit [Quit: Textual IRC Client: www.textualapp.com]
jas02 has joined #ruby-lang
franckverrot has joined #ruby-lang
mcclurmc_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
mcclurmc has quit [Ping timeout: 264 seconds]
datanoise has quit [Ping timeout: 272 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby-lang
allomov has joined #ruby-lang
skade has joined #ruby-lang
riotjones has quit [Quit: Leaving...]
solars has quit [Quit: WeeChat 0.4.2]
riotjones has joined #ruby-lang
solars has joined #ruby-lang
Starf0x has joined #ruby-lang
ur5us has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
Starf0x has left #ruby-lang [#ruby-lang]
skade has quit [Quit: Computer has gone to sleep.]
PaulePan1er is now known as PaulePanter
ubernil has joined #ruby-lang
anaiden has quit []
joaomdmoura has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
tsujp has joined #ruby-lang
bruno- has quit [Ping timeout: 256 seconds]
ubernil has left #ruby-lang [#ruby-lang]
marr has joined #ruby-lang
ubernil has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
skade has joined #ruby-lang
faces has quit [Ping timeout: 272 seconds]
Ropeney has quit [Remote host closed the connection]
tsujp has quit [Quit: tsujp is snoozing]
mikecmpbll has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
k3asd` has joined #ruby-lang
yfeldblum has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby-lang
datanoise has joined #ruby-lang
jas02 has quit [Quit: jas02]
kr3ssh has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
Forgetful_Lion has quit [Remote host closed the connection]
<yorickpeterse> morning
<tbuehlmann> moin
jas02 has joined #ruby-lang
x44x45x41x4E has joined #ruby-lang
<nofxx_> dia
kr3ssh has quit [Ping timeout: 272 seconds]
charliesome has quit [Ping timeout: 256 seconds]
dorei has joined #ruby-lang
joaomdmoura has joined #ruby-lang
iamninja has joined #ruby-lang
charliesome has joined #ruby-lang
datanoise has quit [Ping timeout: 272 seconds]
joaomdmoura has quit [Ping timeout: 276 seconds]
arBmind has joined #ruby-lang
tomaz_b has joined #ruby-lang
postmodern has quit [Quit: Leaving]
djellemah has joined #ruby-lang
x44x45x41x4E has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby-lang
Jon-Xie has joined #ruby-lang
cryo28 has quit [Quit: leaving]
arBmind has quit [Read error: Connection reset by peer]
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
bruno- has joined #ruby-lang
x44x45x41x4E has joined #ruby-lang
auzty has quit [Quit: Leaving]
bruno- has quit [Ping timeout: 258 seconds]
ArchRogem has joined #ruby-lang
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby-lang
x44x45x41x4E has quit [Quit: Textual IRC Client: www.textualapp.com]
Ropeney has joined #ruby-lang
charliesome has quit [Quit: zzz]
arBmind has joined #ruby-lang
<ljarvis> ugh xcode
<yorickpeterse> ugh scrapers
kr3ssh has joined #ruby-lang
<yorickpeterse> why the heck do people rename their shit from "x-reviews-list" to "x-contributions-list" and then not make any visual changes
<pipework> ugh people
<yorickpeterse> As in, it seems they just renamed things
<pipework> yorickpeterse: It is a visual change if you look at the source. :D
<yorickpeterse> The best way to fuck up scrapers: randomly rotate CSS/ID names
<yorickpeterse> for maximum result do this in an automated way
<pipework> There doesn't seem much of a value proposition in preserving behaviour for scrapers, is there?
<ledestin> I worked at a company where we made a full circle. A -> B -> C -> A
<ledestin> renaming stuff
<yorickpeterse> pipework: not at all
<pipework> That's not that bad.
<pipework> We used to sync our calendars by product continually cycling through ideas.
toretore has joined #ruby-lang
yfeldblum has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
face has joined #ruby-lang
<yorickpeterse> also lol: this review website, despite their changes, still publishes the Email addresses of their reviewers
<yorickpeterse> (they've been doing that for at least 2 years now)
<pipework> yorickpeterse: Sounds reasonable, but I bet they'd be better off hiding them for the protection of their users.
banister has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
<yorickpeterse> "sounds reasonable"?
<yorickpeterse> You know that's a privacy violation right? Because they're not asked if they can be published
bertocode has joined #ruby-lang
<yorickpeterse> e.g. I'm seeing reviews here where I'm 100% certain the user was not told their Email would be published
tkuchiki has quit [Ping timeout: 256 seconds]
<yorickpeterse> fine by me, we'll just scrape it
<yorickpeterse> but the users might not like it
Guest36132 has quit [Changing host]
Guest36132 has joined #ruby-lang
Guest36132 is now known as A124
datanoise has joined #ruby-lang
haraoka has quit [Remote host closed the connection]
arBmind has left #ruby-lang [#ruby-lang]
joaomdmoura has joined #ruby-lang
_whitelogger has joined #ruby-lang
[spoiler] has joined #ruby-lang
Paradox has joined #ruby-lang
mathie has joined #ruby-lang
SkramX__ has joined #ruby-lang
go|dfish has joined #ruby-lang
datanoise has quit [Ping timeout: 258 seconds]
vondruch has quit [Ping timeout: 265 seconds]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby-lang
franckverrot has joined #ruby-lang
DEac- has quit [Quit: leaving]
dbussink has joined #ruby-lang
LBo has joined #ruby-lang
vondruch has joined #ruby-lang
CaptainCibai has joined #ruby-lang
DEac- has joined #ruby-lang
soraher has joined #ruby-lang
maloik has joined #ruby-lang
nedp has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
AlexAltea has joined #ruby-lang
sepp2k has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
AlxAltea has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
kr3ssh has quit [Ping timeout: 272 seconds]
mistnim has joined #ruby-lang
<mistnim> >> d = 3 unless defined? d # why is d getting a nil value here instead of 3?
<eval-in> mistnim => nil (https://eval.in/353856)
Mon_Ouie has joined #ruby-lang
<mistnim> ledestin yes, I still don't get it
<mistnim> I say, make d = 3 if it's not defined. d ends up being nil
<ledestin> defined? answers whether it's defined, not what value it is
<mistnim> ledestin: yes
simi has quit [Ping timeout: 256 seconds]
kr3ssh has joined #ruby-lang
shazaum has joined #ruby-lang
<mistnim> let's take d, an undefiend variable, if we do "defined? d" it returns nil. So I do "d = 3 unless defined? d". After that I expect d to be 3 not nil.
purezen has joined #ruby-lang
shazaum has quit [Changing host]
shazaum has joined #ruby-lang
<mistnim> ledestin: I check the value after that statment with puts d. and It's nil.
tsujp has joined #ruby-lang
<womble> mistnim: The variable is defined by the time the interpreter gets around to evaluating the defined?(d)
<womble> So you need to check defined?(d) in a statement *prior* to trying to set it
<womble> >> unless defined?(d) d = 3; end; d
<eval-in> womble => /tmp/execpad-9bfa281d6b64/source-9bfa281d6b64:2: syntax error, unexpected tIDENTIFIER, expecting keyword_then or ';' or '\n' ... (https://eval.in/353928)
<womble> >> unless defined?(d); d = 3; end; d
<eval-in> womble => 3 (https://eval.in/353929)
yfeldblum has quit [Ping timeout: 256 seconds]
purezen has quit []
<mistnim> thanks womble
caseypatrickdris has joined #ruby-lang
<mistnim> so for some reason in that line it defines it as nil and then checks if it's defined, weird
<womble> It's possible (though unlikely) that that is unexpected behaviour and would be treated as a bug; it's one of those corner cases that nobody may have thought of before.
ggerman has joined #ruby-lang
simi has joined #ruby-lang
charliesome has joined #ruby-lang
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
ldnunes has joined #ruby-lang
k3asd` has quit [Ping timeout: 256 seconds]
<ledestin> womble wow, an insight into interpreter. I always thought "unless" clause would be evaluated first.
ggerman has quit [Ping timeout: 276 seconds]
ggerman has joined #ruby-lang
Jon-Xie has quit [Remote host closed the connection]
<womble> It's *evaluated* first, but defining variables likely takes place before evaluation.
Jon-Xie has joined #ruby-lang
<ledestin> right
<ddfreyne> wq
<ddfreyne> Sorry.
<ledestin> ddfreyne use "x"
<womble> It's not IRC without the occasional mis-aimed vi quit.
<pipework> That's why cool kids use ZZ
<pipework> You can pretend it's social commentary.
<ledestin> did you know there's Vi for web? Like a Chrome plugin.
<pipework> vimium, yeah
ggerman has quit [Ping timeout: 245 seconds]
<rob___> ZZ is crazy keyboard acrobatics
<ledestin> jeez, didn't know of ZZ
ggerman has joined #ruby-lang
<rob___> you'll get claw hand using that kind of nonsense
<ledestin> my right hand's already claw, but due to the mac touchpad
<pipework> >> defined?(Parser)
<eval-in> pipework => nil (https://eval.in/353965)
<pipework> ledestin, womble: gem install parser; ruby -rparser/current -rpp -e "pp Parser::CurrentRuby.parse('(a = 3) if a')"
<pipework> ruby -rparser/current -rpp -e "pp Parser::CurrentRuby.parse('(a = 3) if defined?(a)')"
<pipework> Look at that, it should explain what's going on.
<womble> pipework: Nice, thanks.
ggerman has quit [Ping timeout: 256 seconds]
<womble> Interesting that dropping the parens produces a different parse tree.
<pipework> Why would it be?
<pipework> Interesting, that is.
sarkyniin has joined #ruby-lang
ggerman has joined #ruby-lang
<womble> Because it's a solution to mistnim's problem, for one thing.
shazaum_ has joined #ruby-lang
mistnim has quit [Remote host closed the connection]
<womble> And also that 'if' presumably has a higher precedence than =, or something of that nature
<pipework> I don't think it's that.
* womble didn't pay attention in lexer/parser class
<pipework> a = (3 if defined?(a)) is equivalent to a = 3 if defined?(a)
shazaum has quit [Read error: Connection reset by peer]
<pipework> What does an if return when the condition isn't met?
<womble> Cthulhu.
skade has quit [Quit: Computer has gone to sleep.]
<pipework> it returns nil.
skade has joined #ruby-lang
simi has quit [Ping timeout: 256 seconds]
<ledestin> pipework thanks, but I don't really get it
ggerman has quit [Ping timeout: 252 seconds]
<pipework> ledestin: What didn't you get about it?
<pipework> The AST is super readable.
ggerman has joined #ruby-lang
<womble> If you like teasing out paren-pileups, anyway... <grin>
skade has quit [Client Quit]
<ledestin> pipework I just never encountered that before
<pipework> Yes, five pairs is hard to track.
<ledestin> lvar, lvassgn
* womble has never worked out why lispy people like to pile all the parens at the end...
<pipework> ledestin: What do you suppose they mean? Have you ventured a guess?
<womble> Just burn another newline or two, it's not as though you suddenly signed up for a punctuation conservation foundation
<pipework> womble: Because at the end of the expression, there's not much point in the extra newlines and whitespace.
<pipework> The opening parents and alignment conveys enough.
<ledestin> pipework var definition and assignment?
Mon_Ouie has quit [Ping timeout: 244 seconds]
<pipework> ledestin: not quite. lvar is for accessing a local variable, lvasgn is for assigning one.
<pipework> Not really rocket surgery.
<womble> pipework: Except when it looks like (int 3))) nil) and you get to play count-the-parens to work out where the `nil` fits in
<pipework> womble: Count your depth going in.
ddfreyne_ has joined #ruby-lang
<womble> Pfft, if I wanted to count things I would be a mathematician. <grin>
<pipework> Just take your preference of wanting the tail end of the expression to make finding the right depth and frontload that to the front of the expression.
caseypatrickdris has quit [Remote host closed the connection]
<ledestin> pipework what's "send"
<pipework> ledestin: Does google not work in your country?
fclausen has joined #ruby-lang
datanoise has joined #ruby-lang
ggerman has quit [Ping timeout: 272 seconds]
<pipework> Really, you must do what you're capable of doing if you want to be able to get good halp when you actually need it.
ggerman has joined #ruby-lang
<womble> So, the semantics of "begin" confuse me. That's the only difference between the (a = 3) and a = 3 forms, but I'm not sure what it's supposed to mean, so it's tricky to tell what's going on.
ddfreyne_ has quit [Quit: WeeChat 1.1.1]
<pipework> womble: The begin here is serving the same purpose as () does for precedence in the maths.
<pipework> It does a lot more, but it doesn't matter in this specific expression.
ddfreyne has quit [Quit: leaving]
<womble> pipework: So the 'if' statement evaluates the first block, and evaluates and returns the value of the second block if true, and eval/returns the value of the third block if false?
<womble> s/block/list/ I guess
Silex has quit [Quit: WeeChat 0.4.3]
ggerman has quit [Ping timeout: 264 seconds]
<pipework> Within the if there's only two sub-expressions.
datanoise has quit [Ping timeout: 265 seconds]
<ledestin> pipework there's difference between afternoon chat and, well, trying to get help. that's what I thought about this chat.
<womble> LISP always gives me headaches. Must be why I studied Eng instead of CompSci.
ggerman has joined #ruby-lang
<pipework> ledestin: I appreciate people who don't waste my time because they're lazy.
<pipework> womble: Lisp, not LISP.
<ledestin> pipework I'll keep that in mind
<womble> LisP <grin>
<pipework> womble: if takes two expressions, the return value of the first expression determines whether the second is executed.
<pipework> >> a=a; a
<eval-in> pipework => nil (https://eval.in/354028)
ggerman has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
<pipework> >> a=b=b=c=c; a
<eval-in> pipework => nil (https://eval.in/354031)
<pipework> womble: Do you get it now?
caseypatrickdris has joined #ruby-lang
joaomdmoura has joined #ruby-lang
amystephen has joined #ruby-lang
<womble> pipework: No, but that's just down to my brain not being cooperative. Your attempts to enlighten are appreciated.
joaomdmoura has quit [Ping timeout: 252 seconds]
ggerman has joined #ruby-lang
<pipework> womble: You'll need the parser and unparser gems for this, but here's a fun one.
<pipework> ruby -rparser/current -runparser -rpp -e "pp eval(Unparser.unparse(Parser::CurrentRuby.parse('a=b=b')), binding)"
<pipework> Essentially, you can take it apart to see how it works. The AST returned by Parser::CurrentRuby.parse is something you should look at. Then we unparse the AST back into ruby and eval that.
* womble can't resist a fun one
<pipework> Which shows you that if you cause an AST that accesses an instance variable that doesn't exist, it initializes it to nil.
<womble> And hey, most anything's more fun than beating away at webapps
<pipework> Try Parser::CurrentRuby.parse('a') on its own. The AST is completely different from 'a=a'.
<yorickpeterse> The best part about Ruby:
<yorickpeterse> foo = 10 if false
<yorickpeterse> guess what "foo" is now set to
<pipework> nil?
<womble> Cthulhu.
<yorickpeterse> pipework: yup
<pipework> yorickpeterse: Though without looking, I assume it's the return value of the conditional expression being nil that causes the assignment to reflect such, right?
<pipework> Ah yup.
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
Steve_Jobs has joined #ruby-lang
<yorickpeterse> I'd argue that's completely fucked up
chinmay_dd has joined #ruby-lang
<pipework> WHERE IS WHITEQUARK, OH MY GOD ARE WE ALL GOING TO DIE?!
<womble> Yes. Yes, we are.
<yorickpeterse> Because "foo = 10 if false" is "foo = 10 if false" and not "foo = 10 || if false if false" (or something along those lines)
<pipework> yorickpeterse: Yeah it does seem counter-intuitive.
<pipework> I'm not sure about the reasoning, but multiple languages emit this same behaviour.
<yorickpeterse> I recall one of the core members at some point this was a feature because...reasons
<pipework> Whenever I get too confused about ruby, I just break out whitequark's gems.
<yorickpeterse> e.g. in rbx the above code would raise
<yorickpeterse> because we only define variables when they're actually evaluated
<yorickpeterse> that is, "foo = 10 if false; foo" raises a NameError
<pipework> yorickpeterse: I haven't had any reason to dislike rbx other than brixen. Is the runtime actually pretty neat?
<yorickpeterse> I don't know what the problem with him would be, but yes?
symm- has joined #ruby-lang
<yorickpeterse> I mean, my opinion is somewhat biased as I've been tinkering with it for 2-3 years now
<pipework> yorickpeterse: He's a bit abrasive to others in a way that doesn't even point them in the direction they should be looking.
<yorickpeterse> and trying to get this pig in production for over a year now
<pipework> yorickpeterse: I'm cool with bias. I have had bias against rbx because of one person on the time.
<pipework> s/on/at/
<pipework> yorickpeterse: Wait, I'd expect that last expression to assign the return value of the if statement to the local, which should have been nil if it preserves ruby behaviour.
fclausen has quit [Ping timeout: 272 seconds]
<yorickpeterse> It's pretty silly to dislike a tool because of some person behind it
nofxx_ has quit [Ping timeout: 255 seconds]
ggerman has quit [Ping timeout: 256 seconds]
<pipework> yorickpeterse: I dislike python because the BDFL hates powerful lambdas.
<yorickpeterse> pipework: No, the expression isn't assigning if's return value to "foo"
<pipework> It can reflect in the project.
<pipework> Whereas a=a would definitely make sense to raise a NameError
<yorickpeterse> that would require it to be "foo = if false ... end"
ggerman has joined #ruby-lang
<pipework> yorickpeterse: I think mri reads that expression closer to foo = (10 if false)
<pipework> 10 if false returns nil
<yorickpeterse> IIRC MRI sort of pre-defines all locals in a scope before actually assigning them, hence triggering this behaviour
<yorickpeterse> But in case of Rbx we don't define any localvariables until we actually assign them
<yorickpeterse> * local variables
fclausen has joined #ruby-lang
<pipework> I don't know the actual C stuff, I just follow the parser output. It seems that access an ivar will return the value or initialize it to nil and return that.
<yorickpeterse> e.g.
<yorickpeterse> >> def foo; p local_variables; a = 10; end; foo
<eval-in> yorickpeterse => [:a] ... (https://eval.in/354067)
<pipework> Oh I see.
<yorickpeterse> Funny enough that we _do_ support
<yorickpeterse> either way it's weird, I recall there being a ticket on bugs.ruby-lang.org about it but I'm not sure what it was called
<pipework> My god, that's rather confusing.
Guest17606 has quit [Quit: Don't flap your BGP at me sonny]
<yorickpeterse> well, local_variables isn't really line-context based
<yorickpeterse> That is, it simply returns the local variables in the containing scope
<pipework> One of the things I always admired about ruby was the lack of apparent 'read' and 'execute' modes.
<yorickpeterse> regardless of where they are defined
<yorickpeterse> So in case of Rubinius we have a CompiledCode object where we store local variable names in
skade has joined #ruby-lang
<yorickpeterse> (regardless of where they appear IIRC)
<yorickpeterse> e.g. you can do something like
ggerman has quit [Ping timeout: 246 seconds]
* yorickpeterse waits 5 years for Pry to start up
<pipework> yorickpeterse: all the plugins
ggerman has joined #ruby-lang
<yorickpeterse> actually I only have a few
<yorickpeterse> anyway, you can do stuff like this:
Musashi007 has joined #ruby-lang
b_hoffman has joined #ruby-lang
<pipework> yorickpeterse: where butts is a method send, right?
<yorickpeterse> whatever it may be
<pipework> Either way, that's neat.
<yorickpeterse> IIRC you can also transplant methods from one class to another
<pipework> That's something mri can do, isn't it?
<pipework> With bind and unbind.
<yorickpeterse> No, you can't take, say, String#gsub and smack it in all instances of Array
<yorickpeterse> You can only transplant from one instance to another
j4cknewt has joined #ruby-lang
<yorickpeterse> so something like Array.add_instance_method(String.instance_method(:gsub)) isn't possible IIRC
<pipework> Oh I see.
ggerman has quit [Ping timeout: 255 seconds]
ggerman has joined #ruby-lang
allomov has quit [Remote host closed the connection]
<pipework> yorickpeterse: I think I shall adventure into this rubinius thing I keep hearing about then. :p
<yorickpeterse> hihi, yeah this is possible and easier than expected:
<yorickpeterse> Array.send(:define_method, String.instance_method(:gsub))
<yorickpeterse> [10, 20].gsub('foo', 'bar') then does give some errors because e.g. valid_encoding? doesn't exist on Array
<pipework> I think the method is still bound to String thoug, right?
j4cknewt has quit [Ping timeout: 245 seconds]
<yorickpeterse> Nop
caseypatrickdris has quit [Remote host closed the connection]
<yorickpeterse> You do have to correct the file path, but that's about it
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
Musashi007 has quit [Read error: Connection reset by peer]
<pipework> whale shit, I've got to figure out why ruby-install on my system is having problems installing rbx now.
<yorickpeterse> LLVM 3.6?
Stichoza has joined #ruby-lang
<pipework> Yeah, I'm on 3.6.0svn right now.
<yorickpeterse> Rbx doesn't support 3.6 yet
<yorickpeterse> You'll need <= 3.5 for the time being
<pipework> Oh gotcha.
<yorickpeterse> https://github.com/rubinius/rubinius/pull/3367 it's a WIP, I believe brixen wanted to fix it this week
<pipework> yorickpeterse: Thanks for the heads up before I destroyed my system trying to get it to work.
<yorickpeterse> heh
Musashi007 has joined #ruby-lang
<pipework> yorickpeterse: Is that pull what I should follow to keep abreast of the issue?
<yorickpeterse> Yeah
ggerman has quit [Ping timeout: 252 seconds]
<pipework> Thank you, good sir.
ggerman has joined #ruby-lang
<yorickpeterse> np
sgambino has joined #ruby-lang
[k- has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
Jon-Xie has quit [Remote host closed the connection]
joaomdmoura has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
tkuchiki has joined #ruby-lang
ggerman has quit [Ping timeout: 276 seconds]
imperator has joined #ruby-lang
Ropeney has quit [Remote host closed the connection]
ggerman has joined #ruby-lang
symm- has quit [Quit: Leaving...]
fclausen has quit [Ping timeout: 272 seconds]
Ropeney has joined #ruby-lang
niemcu has quit [Ping timeout: 258 seconds]
futilegames has joined #ruby-lang
victortyau has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
sankaber has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
crankharder has quit [Quit: leaving]
Stichoza has quit [Read error: Connection reset by peer]
k3asd` has joined #ruby-lang
ggerman has quit [Ping timeout: 252 seconds]
<bougyman> mornin yorickpeterse
caseypatrickdris has quit [Read error: Connection reset by peer]
ggerman has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
<yorickpeterse> o7
caseypat_ has joined #ruby-lang
k3asd` has quit [Ping timeout: 264 seconds]
lewix has joined #ruby-lang
ggerman has quit [Ping timeout: 258 seconds]
k3asd` has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 265 seconds]
ggerman has joined #ruby-lang
workmad3 has joined #ruby-lang
malconis has joined #ruby-lang
imperator2 has joined #ruby-lang
ggerman has quit [Ping timeout: 246 seconds]
ggerman has joined #ruby-lang
fujimura has joined #ruby-lang
enebo has joined #ruby-lang
caseypat_ has quit [Read error: Connection reset by peer]
ggerman has quit [Ping timeout: 240 seconds]
caseypatrickdris has joined #ruby-lang
spastorino has quit []
ggerman has joined #ruby-lang
spastorino has joined #ruby-lang
caseypat_ has joined #ruby-lang
fujimura has quit [Ping timeout: 276 seconds]
chinmay_dd has quit []
ggerman has quit [Ping timeout: 240 seconds]
caseypatrickdris has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
iamninja has quit [Ping timeout: 252 seconds]
JakFrist has joined #ruby-lang
tcopeland has joined #ruby-lang
malconis has quit [Remote host closed the connection]
symm- has joined #ruby-lang
ggerman has quit [Ping timeout: 246 seconds]
bungoman has joined #ruby-lang
tomaz_b has quit [Ping timeout: 245 seconds]
JakFrist has left #ruby-lang [#ruby-lang]
malconis has joined #ruby-lang
ggerman has joined #ruby-lang
webhat has quit [Remote host closed the connection]
caseypat_ has quit [Read error: Connection reset by peer]
ggerman has quit [Ping timeout: 252 seconds]
caseypatrickdris has joined #ruby-lang
ggerman has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
simi has joined #ruby-lang
Jon-Xie has joined #ruby-lang
ggerman has quit [Ping timeout: 245 seconds]
lewix has quit [Remote host closed the connection]
ggerman has joined #ruby-lang
mcclurmc has joined #ruby-lang
mcclurmc_ has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
ggerman has quit [Ping timeout: 264 seconds]
Ropeney has quit [Remote host closed the connection]
ggerman has joined #ruby-lang
caseypat_ has joined #ruby-lang
ggerman has quit [Ping timeout: 272 seconds]
ggerman has joined #ruby-lang
caseypatrickdris has quit [Ping timeout: 265 seconds]
<bougyman> SimpleCov on 2.2.2 working for anyone?
<bougyman> it's completely lost its mind, here.
<bougyman> giving gibberish results and crazy behavior.
<bougyman> it generates coverage for the tests before the suite even runs.
<womble> Efficient!
gambl0re has joined #ruby-lang
<bougyman> Coverage report generated for Functional Tests to /var/lib/buildbot/slaves/slave/beast/build/beast_coverage. 11606 / 39010 LOC (29.75%) covered.
<bougyman> Loaded suite lib/test_runner
<bougyman> ........
<bougyman> Started
<bougyman> yeah but quite wrong
<[k-> maybe it is threaded?
<bougyman> on another project I have, it generates at the end, and it's always 100% coverage... 0 / 0 LOC (100%) covered.
ggerman has quit [Ping timeout: 246 seconds]
<bougyman> this only happened moving to 2.2.2
<bougyman> and the second project worked fine even on 2.2.1
<bougyman> could have been that big a change, I wouldn't think.
ggerman has joined #ruby-lang
rippa has joined #ruby-lang
<bougyman> ok it's not just simplecov.
<bougyman> 2110 tests, 5453 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
<bougyman> 1.89573% passed
<bougyman> 1.89573% ?
<bougyman> I don't even know what's generating that number, but it's not simplecov.
<womble> Extremely precise incorrectness.
<bougyman> i'm gonna drive into the office and try to figure this out. it's driving me nuts.
<[k-> lol the pun XD
ggerman has quit [Ping timeout: 272 seconds]
ggerman has joined #ruby-lang
kr3ssh has quit [Ping timeout: 256 seconds]
caseypat_ has quit [Read error: Connection reset by peer]
ggerman has quit [Ping timeout: 252 seconds]
caseypatrickdris has joined #ruby-lang
ggerman has joined #ruby-lang
futilegames has quit [Quit: futilegames]
certainty has quit []
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<hal_9000_> who’s awake?
<maloik> about 2/3 of the people on this planet, I imagine
Jon-Xie has quit [Remote host closed the connection]
<hal_9000_> that is at least 4 billion. thank you
dhjondoh has quit [Quit: dhjondoh]
<hal_9000_> i don’t suppose anyone here uses nanoc?
ggerman has quit [Ping timeout: 245 seconds]
<maloik> general irc etiquette, you don't have to ask to ask, and you're better off just appending the actual question. "problem with nanoc: <link to code/explanation>"
jgpawletko has joined #ruby-lang
ggerman has joined #ruby-lang
<hal_9000_> in my past experience, this channel was not stiff and formal by any means.
<womble> "Stiff and formal" doesn't mean we don't like efficiency.
<maloik> it's not, I'm just saying that it's pointless waiting for someone to go "yes I use nanoc" :-)
<maloik> you'll either get no responses, or someone will read this and reply yes then walk away from their computer
<maloik> or maybe they'll respond and simply don't know
ubernil has quit [Ping timeout: 264 seconds]
<womble> And then there's plenty of people who do use it, but who won't respond to such a question because the usual next step is a flood of very entitled PMs
<maloik> :D
<hal_9000_> i’m not yet accustomed to there being so many strangers here
<womble> There's no denying, we are very strange.
<maloik> you should see me on mondays!
<womble> I do.
caseypat_ has joined #ruby-lang
ogpastaling has joined #ruby-lang
<hal_9000_> how long have you guys been using ruby if i may ask?
<womble> A terrifyingly long time.
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<womble> I think I worked it out the other day at something like 12 years.
<maloik> *covers webcam with tape*
<womble> Still don't know what I'm doing.
caseypatrickdris has quit [Read error: Connection reset by peer]
ggerman has quit [Ping timeout: 244 seconds]
<womble> maloik: Pfft, the NSA doesn't let you have *proper* tape
dhjondoh has joined #ruby-lang
<hal_9000_> womble: i don’t remember you actually - same nick back then?
|jemc| has joined #ruby-lang
ggerman has joined #ruby-lang
<womble> I haven't been in here for 12 years.
<hal_9000_> i think 12 years ago it was still possible to know almost everyone in the channel
chouhoul_ has quit [Remote host closed the connection]
<imperator> not familiar with nanoc hal_9000_
<hal_9000_> hi imperator
<imperator> howdy
chouhoulis has joined #ruby-lang
<hal_9000_> it’s another static blogging system - perhaps my favorite
ItSANgo__ has quit [Quit: Leaving...]
ggerman has quit [Ping timeout: 246 seconds]
chinmay_dd has joined #ruby-lang
chinmay_dd has quit [Remote host closed the connection]
<hal_9000_> imperator: btw do you remember exactly when this channel was started? i can’t offhand.
chinmay_dd has joined #ruby-lang
<imperator> 2002 or so i think; wonder if freenode can tell me
ggerman has joined #ruby-lang
<hal_9000_> i would have guessed 2000, but that part of my brain is wiped
<ljarvis> Oct 11 01:47:05 2003
<hal_9000_> really. fascinating, thanks
tkuchiki has quit [Ping timeout: 256 seconds]
t0rrieri has quit [Quit: Be back later ...]
<ljarvis> /msg chanserv info #ruby-lang
slumos has joined #ruby-lang
toretore has quit [Quit: Leaving]
toretore has joined #ruby-lang
<hal_9000_> imperator: do you have a blog nowadays?
VinnyBoy has joined #ruby-lang
<imperator> still got my LJ account, but i blog infrequently
whippythellama has joined #ruby-lang
<hal_9000_> ah. i’m on a constant quest for the holy grail of selfhosted blogs
AugustoCesar has joined #ruby-lang
hal_9000_ has left #ruby-lang [#ruby-lang]
chinmay_dd has quit [Ping timeout: 265 seconds]
ggerman has quit [Ping timeout: 250 seconds]
hal_9000_ has joined #ruby-lang
ggerman has joined #ruby-lang
<ljarvis> color me surprised, swift is actually a really nice language
<hal_9000_> i was just reading about that yesterday
caseypatrickdris has joined #ruby-lang
datanoise has joined #ruby-lang
caseypat_ has quit [Read error: Connection reset by peer]
tcopeland has quit [Quit: Leaving.]
shinnya has joined #ruby-lang
ggerman has quit [Ping timeout: 250 seconds]
ubernil has joined #ruby-lang
joaomdmoura has joined #ruby-lang
ggerman has joined #ruby-lang
<maloik> my blog is/was jekyll
<maloik> not quite blogging though
<maloik> seems down too
ubernil has quit [Ping timeout: 255 seconds]
ggerman has quit [Ping timeout: 240 seconds]
<hal_9000_> i really should just break down and study web stuff for a year - trouble is, i just don’t like it
ggerman has joined #ruby-lang
<hal_9000_> i probably have spent more hours than that explaining that i know ruby but don’t know rails
dhjondoh has quit [Quit: dhjondoh]
revath1 has quit [Ping timeout: 255 seconds]
symm- has quit [Ping timeout: 255 seconds]
joaomdmoura has quit [Remote host closed the connection]
ggerman has quit [Ping timeout: 256 seconds]
kfpratt has joined #ruby-lang
caseypatrickdris has quit [Read error: Connection reset by peer]
ggerman has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
caseypatrickdris has joined #ruby-lang
<darix> hal_9000_: and then alot of what you learned in the beginning of the year is already obsolete in the end ;)
workmad3 has quit [Ping timeout: 265 seconds]
jas02 has quit [Quit: jas02]
symm- has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
<hal_9000_> not so much in my case :) i would spend time on things like “hmm, what exactly is routing all about?” :P
<imperator2> hal_9000_, october 11, 2003 is when this channel was registered
<ljarvis> lol
<hal_9000_> imperator2: i would have guessed earlier - ruby-talk had been around 3+ years by then
<hal_9000_> ljarvis: :)
ggerman has quit [Ping timeout: 252 seconds]
<imperator2> i think there were earlier channels, but they were the japanese folks
ggerman has joined #ruby-lang
slawrence00 has joined #ruby-lang
<imperator2> and it may have existed earlier in practice, just wasn't registered until then
skade has quit [Quit: Computer has gone to sleep.]
bungoman has joined #ruby-lang
skade has joined #ruby-lang
workmad3 has joined #ruby-lang
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
apt-get_ has joined #ruby-lang
chinmay_dd has joined #ruby-lang
charliesome has quit [Quit: zzz]
k3asd`_ has joined #ruby-lang
<darix> btw is it just me or is ruby-core ml kinda quiet lately. most mails are from redmine
sarkyniin has quit [Ping timeout: 258 seconds]
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
k3asd` has quit [Ping timeout: 255 seconds]
fujimura has joined #ruby-lang
k3asd` has joined #ruby-lang
k3asd`_ has quit [Ping timeout: 265 seconds]
ggerman has quit [Ping timeout: 272 seconds]
bungoman has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
ggerman has joined #ruby-lang
fujimura has quit [Ping timeout: 255 seconds]
solars has quit [Ping timeout: 246 seconds]
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
atomical has joined #ruby-lang
ggerman has quit [Ping timeout: 258 seconds]
ggerman has joined #ruby-lang
chussenot has joined #ruby-lang
anaiden has joined #ruby-lang
ta_ has joined #ruby-lang
bungoman has joined #ruby-lang
<imperator> darix, been that way for a long time i think
ggerman has quit [Ping timeout: 272 seconds]
ggerman has joined #ruby-lang
chouhoul_ has joined #ruby-lang
That1Guy has joined #ruby-lang
ledestin has joined #ruby-lang
ggerman has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
__butch__ has joined #ruby-lang
brownbathrobe has joined #ruby-lang
premera has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby-lang
ggerman has quit [Ping timeout: 255 seconds]
ggerman has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
caseypatrickdris has joined #ruby-lang
fsvehla has joined #ruby-lang
fsvehla has quit [Client Quit]
ggerman has quit [Ping timeout: 252 seconds]
ggerman has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
alestuber has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alestuber has quit [Remote host closed the connection]
alestuber has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
chussenot has joined #ruby-lang
chouhoulis has joined #ruby-lang
ggerman has quit [Ping timeout: 264 seconds]
BanzaiJoe has joined #ruby-lang
ggerman has joined #ruby-lang
elev has joined #ruby-lang
<elev> hello
<BanzaiJoe> hello
<elev> I just have a question
<elev> I am done with the basic of ruby what can I do now? to actually do something
<elev> And not only get the terminal to print out things
<hal_9000_> do you want to do something “real” or just something more advanced?
<elev> real
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hal_9000_> my first suggestions -
<elev> y
rbowlby has joined #ruby-lang
<hal_9000_> 1. think of a simple real-world problem that you can solve for yourself - something useful to you
<elev> ye
<BanzaiJoe> it also doesn't matter if it's been solved before
<elev> ok
<hal_9000_> 2. look at existing projects on github and elsewhere and see if you can contribute
<hal_9000_> but #1 first :)
<elev> but like how can I make it?
<BanzaiJoe> elev, do you feel comfortable with API?
<elev> to a program? not only a terminal
simi has quit [Ping timeout: 264 seconds]
<elev> what is API?
brownbathrobe has quit [Ping timeout: 265 seconds]
<BanzaiJoe> gotcha, different issue, let's back up a sec
<BanzaiJoe> after the terminal, you can use a basic text editor, even notepad
ggerman has quit [Ping timeout: 276 seconds]
brownbathrobe has joined #ruby-lang
<BanzaiJoe> save your file as .rb
<elev> ok
<elev> I use mac btw
ggerman has joined #ruby-lang
<hal_9000_> i do too, but i spend most of my time in iterm
<elev> So I download Api?
<BanzaiJoe> I wouldn't go crazy with a full blown IDE , anything sufficient to save text
<BanzaiJoe> don't worry about APIs , I was thinking you were doing something different
<elev> ah ok
<elev> but how do I make a program=
<elev> Like a legit program
<elev> not a terminal hello world shit
alestuber has quit [Read error: Connection reset by peer]
<yorickpeterse> You practise
<yorickpeterse> There's no magical formula other than actually writing it
<elev> but like how can I make it in a program?
<elev> like a file?
tsujp has quit [Quit: tsujp is snoozing]
<hal_9000_> do you mean you want to create a GUI program? not just text?
<BanzaiJoe> save as .rb file, then type "ruby <filename>"
<elev> yes
zendrix has joined #ruby-lang
<elev> yes but then again its in the terminal
<elev> I am done with that
JakFrist has joined #ruby-lang
<elev> I want to like make an app/program
<BanzaiJoe> hal_9000_: I think you're on the right track
<elev> wihth layouts
<elev> and colours
<elev> and shit xd
<hal_9000_> if you want to create graphical programs, you might look at a thing called Shoes - but it is JRuby only
ggerman has quit [Ping timeout: 250 seconds]
<elev> jruby means?
zendrix has quit [Client Quit]
ggerman has joined #ruby-lang
alestuber has joined #ruby-lang
<yorickpeterse> elev: There are various ways, the easiest being web applications
<hal_9000_> it is a ruby interpreter that runs on the JVM - internally it is based on Java rather than C
<elev> but Its ruby code?
<elev> in shoes?
<hal_9000_> yes
<elev> so I can download it?
<elev> and start to program?
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
<hal_9000_> but if you are comfortable with web concepts, you might study Rails also
<elev> ye
<elev> but ruby its my first prpgram
<elev> want to learn it good before rails
<elev> but I want to build websites eventctually
<hal_9000_> ok i have a question
<elev> y?
<elev> go ahead
<yorickpeterse> elev: also, terminal applications are surprisingly useful, and probably the least difficult to start with
<hal_9000_> do you want to just create “bigger better” programs, that could be terminal-based?
<hal_9000_> or do you want to avoid the terminal as much as possible?
ggerman has quit [Ping timeout: 258 seconds]
<elev> yea
<elev> I want a prpogram people can download
<elev> and maybe a game
<elev> shit like that
ggerman has joined #ruby-lang
<elev> I like the terminal but I want a program people can use :)
<elev> and download
<hal_9000_> ok i see
<elev> shoes is good for that?
<BanzaiJoe> Any software architects or designers here? I went looking for good software design document templates or at least rules of thumb. Got a whole lot of consultant garbage and IEEE formality. Would you recommend just doing it organically?
<hal_9000_> i think it might be
fusillicode has quit [Ping timeout: 244 seconds]
<elev> I dont understand it
<hal_9000_> elev: i think this book is good: https://pragprog.com/book/msgpkids/learn-game-programming-with-ruby
<[k-> BanzaiJoe: gem format?
<[k-> gem file hierarcy*
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BanzaiJoe> [k-: more like "what the hell we are doing, why, how, touchstones, goal"
<BanzaiJoe> I guess it's actually language independent
ggerman has quit [Ping timeout: 256 seconds]
anjen has joined #ruby-lang
ggerman has joined #ruby-lang
AugustoCesar has quit [Quit: Leaving.]
zendrix has joined #ruby-lang
<elev> is the shoes
<elev> app writer good?
rippa has joined #ruby-lang
<hal_9000_> i hsve only played with shoes a little
<elev> ok
<hal_9000_> did u look at the link for that book? it uses a library called gosu
<hal_9000_> i have never tried it though
<[k-> :o gosu
<[k-> there are videos on yt on making games with gosu
ggerman has quit [Ping timeout: 244 seconds]
<[k-> lemme search it up for you
<[k-> there are quite a number of others too
ggerman has joined #ruby-lang
<BanzaiJoe> for example, http://www.agilemodeling.com/essays/agileDocumentation.htm has 17 points and nothing about actual details, so hand wavy that it actually becomes formal rules for an agile environment
<[k-> me & software architecturing != anything good
<BanzaiJoe> I think the answer will probably be like code, write, refactor, iterate, learn from the mistakes, rinse, repeat
<[k-> i don't know anything
<[k-> some people use contracts to introduce type safety to ruby
<[k-> so it makes refactoring safer
<[k-> i guess what you mean is TDD, and others
<BanzaiJoe> I think if I put down the google and just rubber ducked it for 10 minutes, I could probably come up with the framework I'm thinking about, out of all the pages I've read, "organizational memory" seems like the most valuable term
mikecmpbll has quit [Ping timeout: 255 seconds]
ggerman has quit [Ping timeout: 244 seconds]
<elev> the shoes doesnt wor
<elev> or I dont get it to work
ggerman has joined #ruby-lang
tsujp has joined #ruby-lang
mikecmpbll has joined #ruby-lang
ggerman has quit [Ping timeout: 272 seconds]
ggerman has joined #ruby-lang
k3asd`_ has joined #ruby-lang
alestuber has quit [Read error: Connection reset by peer]
cornerma1 has joined #ruby-lang
k3asd` has quit [Ping timeout: 272 seconds]
ggerman has quit [Ping timeout: 245 seconds]
alestuber has joined #ruby-lang
ggerman has joined #ruby-lang
cornerman has quit [Ping timeout: 246 seconds]
cornerma1 is now known as cornerman
arBmind has joined #ruby-lang
alestuber has quit [Remote host closed the connection]
banister has joined #ruby-lang
ggerman has quit [Ping timeout: 258 seconds]
michaeldeol has joined #ruby-lang
ggerman has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
ggerman has quit [Ping timeout: 246 seconds]
ggerman has joined #ruby-lang
<elev> y
rbowlby has quit [Remote host closed the connection]
k3asd`_ has quit [Ping timeout: 272 seconds]
k3asd` has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
bahar has joined #ruby-lang
fusillicode has joined #ruby-lang
ogpastaling has quit [Remote host closed the connection]
alestuber has joined #ruby-lang
ogpastaling has joined #ruby-lang
wallerdev has joined #ruby-lang
danni_ has joined #ruby-lang
ggerman has quit [Ping timeout: 244 seconds]
Squarepy has joined #ruby-lang
ggerman has joined #ruby-lang
fujimura has joined #ruby-lang
Squarepy has quit [Read error: Connection reset by peer]
ogpastaling has quit [Ping timeout: 255 seconds]
zendrix has quit [Remote host closed the connection]
t_ has quit [Read error: Connection reset by peer]
JakFrist has quit [Ping timeout: 256 seconds]
fujimura has quit [Ping timeout: 240 seconds]
ggerman has quit [Ping timeout: 240 seconds]
t_ has joined #ruby-lang
ggerman has joined #ruby-lang
bahar has quit [Ping timeout: 276 seconds]
zendrix has joined #ruby-lang
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ggerman has quit [Ping timeout: 272 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ggerman has joined #ruby-lang
elev has quit [Ping timeout: 250 seconds]
atomical has joined #ruby-lang
tsujp has quit [Quit: tsujp is snoozing]
skade has joined #ruby-lang
michaeldeol has quit [Max SendQ exceeded]
rbowlby has joined #ruby-lang
bahar has joined #ruby-lang
michaeldeol has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
k3asd` has quit [Ping timeout: 240 seconds]
ggerman has quit [Ping timeout: 258 seconds]
constantinexvi has quit [Max SendQ exceeded]
constantinexvi has joined #ruby-lang
ggerman has joined #ruby-lang
joaomdmoura has joined #ruby-lang
bungoman has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
shinnya has quit [Ping timeout: 250 seconds]
ggerman has quit [Ping timeout: 240 seconds]
caseypatrickdris has quit [Remote host closed the connection]
chinmay_dd is now known as chinmay_dd|away
caseypatrickdris has joined #ruby-lang
ggerman has joined #ruby-lang
whippythellama has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
ggerman has quit [Ping timeout: 245 seconds]
ggerman has joined #ruby-lang
RickCH__ has joined #ruby-lang
<RickCH__> any one?
chussenot has quit [Quit: chussenot]
ggerman has quit [Ping timeout: 264 seconds]
ggerman has joined #ruby-lang
ubernil has joined #ruby-lang
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
b_hoffman has quit [Quit: b_hoffman]
ggerman has joined #ruby-lang
benanne has joined #ruby-lang
ogpastaling has joined #ruby-lang
That1Guy has joined #ruby-lang
imperator has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
zendrix has quit [Remote host closed the connection]
ubernil has quit [Ping timeout: 250 seconds]
ggerman has quit [Ping timeout: 256 seconds]
ggerman has joined #ruby-lang
JakFrist has joined #ruby-lang
imperator has joined #ruby-lang
sankaber has quit [Ping timeout: 250 seconds]
sankaber has joined #ruby-lang
ggerman has quit [Ping timeout: 256 seconds]
brownbathrobe has quit [Remote host closed the connection]
brownbathrobe has joined #ruby-lang
ggerman has joined #ruby-lang
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<imperator2> RickCH__, do you need to specify a port?
zendrix has joined #ruby-lang
[k- has quit [Quit: Lingo: www.lingoirc.com]
ggerman has quit [Ping timeout: 272 seconds]
<RickCH__> I do not via culr
<RickCH__> curl
ggerman has joined #ruby-lang
_sillymarkets has joined #ruby-lang
BanzaiJoe has quit [Ping timeout: 246 seconds]
<_sillymarkets> Had a quick question: Why does ruby pump out the following as 0.0 { (264933313/291143964).to_f }
<_sillymarkets> answer should be .88
<yxhuvud> no, it shouldn't.
<yxhuvud> >> 1/2
<eval-in> yxhuvud => 0 (https://eval.in/355089)
ggerman has quit [Ping timeout: 252 seconds]
<_sillymarkets> >> (1/2).to_f
<eval-in> _sillymarkets => 0.0 (https://eval.in/355090)
<_sillymarkets> that's not right?
<yxhuvud> Sure it is. 0.to_f is 0.0
ggerman has joined #ruby-lang
<imperator> RickCH__, port 8000 is it not?
<_sillymarkets> yxhuvud, i see that
<imperator> >> 1.0/2.0
<eval-in> imperator => 0.5 (https://eval.in/355091)
b_hoffman has joined #ruby-lang
<_sillymarkets> what im trying to do is a = [ [2],[4] ] a.map{ |a| a[0][1]/(a[0][0]+a[0][1]).to_f }
<imperator> _sillymarkets, short version - call .to_f on both the numerator & denominator first, don't call .to_f on the final expression
baweaver has joined #ruby-lang
ggerman has quit [Ping timeout: 255 seconds]
joaomdmoura has joined #ruby-lang
Miphix has quit [Quit: Leaving]
nux443 has joined #ruby-lang
b_hoffman has quit [Client Quit]
ggerman has joined #ruby-lang
<_sillymarkets> a = [ [26210651, 264933313], [another 2d element] ]
chamila has joined #ruby-lang
<_sillymarkets> when I do it manually, those 2 numbers divide into .88
<_sillymarkets> but my map formula isnt working that out
bertocode has quit [Quit: Nettalk6 - www.ntalk.de]
<chamila> Hello all,what is the difference between rb_hash_aref and rb_hash_lookup??
aaeron has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
<_sillymarkets> >> 264933313/(264933313.to_f+26210651.to_f)
<eval-in> _sillymarkets => 0.909973572387027 (https://eval.in/355093)
zendrix has quit [Remote host closed the connection]
<imperator> chamila, i think rb_hash_aref will return a default value (if set) while rb_hash_lookup will not
revath has joined #ruby-lang
<imperator> chamila, but don't quote me on it
<chamila> imperator: I am referring to https://github.com/ohler55/oj/blob/master/ext/oj/oj.c#L334 anr #L348 , does lookup has to do anything with symbols?
ggerman has quit [Ping timeout: 272 seconds]
moretti has joined #ruby-lang
ggerman has joined #ruby-lang
alestuber has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
chinmay_dd|away is now known as chinmay_dd
moretti_ has joined #ruby-lang
ggerman has quit [Ping timeout: 246 seconds]
ggerman has joined #ruby-lang
moretti has quit [Ping timeout: 265 seconds]
baweaver has quit [Remote host closed the connection]
stan has quit [Ping timeout: 265 seconds]
<imperator> chamila, not specifically that i'm aware of
ggerman has quit [Ping timeout: 265 seconds]
<chamila> imperator: ah okay, thanks
<imperator> i've had to write helper functions that would lookup :foo or 'foo', but ruby's api doesn't do it by default
<imperator> i.e. there's no indifferent access baked in
<imperator> unless they've added it lately
ggerman has joined #ruby-lang
kadoppe has quit [Ping timeout: 276 seconds]
elev has joined #ruby-lang
<elev> I want to make a program when you go ruby --help something will come up
<elev> anyone know how I can make that?
alestuber has joined #ruby-lang
kadoppe has joined #ruby-lang
<imperator> elev, take a look at either "optparse" or "getoptlong"
tenderlove has quit [Quit: Leaving...]
dellavg_ has joined #ruby-lang
David_H_Smith has joined #ruby-lang
ggerman has quit [Ping timeout: 276 seconds]
ggerman has joined #ruby-lang
<imperator> too funny, was just wondering how to generate a random base64 string, and i see SecureRandom
skade has quit [Quit: Computer has gone to sleep.]
caseypatrickdris has joined #ruby-lang
b_hoffman has joined #ruby-lang
alestuber has quit [Ping timeout: 272 seconds]
tenderlove has joined #ruby-lang
That1Guy has joined #ruby-lang
ggerman has quit [Ping timeout: 272 seconds]
caseypatrickdris has quit [Ping timeout: 250 seconds]
ggerman has joined #ruby-lang
alestuber has joined #ruby-lang
baweaver has joined #ruby-lang
faces has joined #ruby-lang
face has quit [Ping timeout: 255 seconds]
ggerman has quit [Ping timeout: 258 seconds]
zendrix has joined #ruby-lang
ggerman has joined #ruby-lang
elev has quit [Quit: leaving]
zendrix has quit [Remote host closed the connection]
<imperator> dang, can't get PKCS12 to parse it
ggerman has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
<hal_9000_> what is pkcs512?
ggerman has joined #ruby-lang
<hal_9000_> is that c3po’s cousin?
allomov has joined #ruby-lang
<imperator> exactly
<hal_9000_> that stuff always makes my brain itch
ggerman has quit [Ping timeout: 240 seconds]
<hal_9000_> the only way i can scratch it is to think about sandpaper
<imperator> no joy, guess i'll try a different approach
ggerman has joined #ruby-lang
<hal_9000_> i’m not sure what’s a string and what’s a bignum
<VinnyBoy> a string?
<VinnyBoy> as in, an attribute type?
<hal_9000_> i was looking at his gist and wondering about types returned
fujimura has joined #ruby-lang
<VinnyBoy> know that i know jack about ruby, but i had c++ classes
<VinnyBoy> and its been a while
<VinnyBoy> i almost started explaining what a string was
<hal_9000_> haha :)
<hal_9000_> are you learning ruby now?
<VinnyBoy> well, i always put that for tomorrow
<VinnyBoy> i want to code a game, see if i have it in me
<hal_9000_> someone was just talking about that earlier
ggerman has quit [Ping timeout: 276 seconds]
ggerman has joined #ruby-lang
<VinnyBoy> oh, fun, ima bookmart that one
<hal_9000_> or if you are comfortable at the command line, you could always do text-based games :)
coffeejunk has quit [Quit: WeeChat 1.2-dev]
<VinnyBoy> i want to make a tactic RPG
ybathia has joined #ruby-lang
<VinnyBoy> i figure out that RPGs are likely the easiest thing to program
aaeron has quit [Quit: aaeron]
<hal_9000_> graphical or not?
<VinnyBoy> graphical
<hal_9000_> ok so not a MUD then
<VinnyBoy> i dont see how you could make a non graphical tactic RPG
alestuber has quit [Ping timeout: 255 seconds]
fujimura has quit [Ping timeout: 272 seconds]
<pipework> I don't know, simple arcade games are really easy.
<hal_9000_> i’m not sure what you mean by tactic, so i assume you’re right
<pipework> Pong and the such.
<hal_9000_> pipework: yes true
<VinnyBoy> a tactic RPG is, well, a roleplaying game where your characters are on a grid and you move them around to do the mission
<pipework> To be sure, though, the best code you will ever write in your life is the code you never write.
aaeron has joined #ruby-lang
<pipework> VinnyBoy: You mean an SRPG.
<pipework> Or a tactical RPG.
<hal_9000_> more than one char per player then?
<VinnyBoy> yes
<VinnyBoy> kinda plays like chess
chamila has quit [Quit: Page closed]
<pipework> hal_9000_: Have you ever played one of those grid-based combat RPG games where you have 1 or more players to control?
<hal_9000_> have you ever been in an old-fashioned MUD?
ggerman has quit [Ping timeout: 250 seconds]
<pipework> You might want to look up SRPGs.
<hal_9000_> pipework: yes but i’m not much of a gamer
<VinnyBoy> the terminology is not important actually, i have a clear picture in my mind and I wanna do something about it
<pipework> VinnyBoy: Make it happen, captain!
<VinnyBoy> i know c++ and visual basic, but i figure i could try in another language
__butch__ has quit [Quit: Leaving.]
<VinnyBoy> i downloaded some stuff for ruby, and im still confused on how it works
<pipework> VinnyBoy: Though, honestly, I'd leverage your C++ with existing game engines and then use lua for scripting.
<imperator> VinnyBoy, not ruby but: https://github.com/garysoed/protoboard
<hal_9000_> my *guess* is that after a few days learning ruby, you will love it
<pipework> There's love2d, which is lua.
aaeron has quit [Client Quit]
<hal_9000_> VinnyBoy: what confuses you? we can answer questions
<VinnyBoy> well, i read that ruby is basically c++ but prettier
postmodern has joined #ruby-lang
<hal_9000_> haha, yes, like a cat is basically a slug but prettier
<VinnyBoy> first thing, am i supposed to code in text files?
kr3ssh has joined #ruby-lang
<hal_9000_> yes? as opposed to what?
<pipework> VinnyBoy: It's quite a lot of things, but you'll probably find that unless you really want to spend your time learning a language and not building your game, you might want to pick something a bit more familiar to you.
<VinnyBoy> in c++, i was coding in, well, specific files using the engine i was given
<pipework> You can always come back and add ruby bindings.
<hal_9000_> oh, visual c++ or something?
<VinnyBoy> yup
<hal_9000_> oh, i see
<hal_9000_> well, there is rubymine if you want a powerful IDE
* VinnyBoy googles that
aaeron has joined #ruby-lang
<hal_9000_> but i am old-fashioned and just edit individual files
<imperator> VinnyBoy, you got Visual Studio? there's a Ruby plugin for that called sapphire steel
<VinnyBoy> i actually wonder if i have visual studio
<VinnyBoy> hold on
<pipework> You can use whatever you want to work with your code, but you'd best aim for something that eventually writes plaintext files to disk.
RickCH__ has quit [Ping timeout: 246 seconds]
<pipework> Which is most any IDE and text editor, though some are less horrible than others.
<VinnyBoy> sheit, i think i actually have that
alestuber has joined #ruby-lang
<hal_9000_> i forgot about visual studio
<hal_9000_> i haven’t been on windows in years
<VinnyBoy> sapphire steel huh, lemme check on that
revath has quit [Ping timeout: 264 seconds]
<pipework> VinnyBoy: https://love2d.org/ You should check this out.
__butch__ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
baweaver has joined #ruby-lang
<VinnyBoy> looks cute
moretti_ has quit [Quit: Leaving...]
<VinnyBoy> thanks y'all
ItSANgo has joined #ruby-lang
bougyman has quit [Ping timeout: 265 seconds]
zendrix has joined #ruby-lang
_sillymarkets has quit [Ping timeout: 246 seconds]
moretti has joined #ruby-lang
anaiden has quit []
skade has joined #ruby-lang
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby-lang
bougyman has joined #ruby-lang
bougyman is now known as Guest91446
aaeron has quit [Quit: aaeron]
caseypatrickdris has joined #ruby-lang
revath has joined #ruby-lang
aaeron has joined #ruby-lang
aaeron has quit [Client Quit]
zendrix has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby-lang
aaeron has joined #ruby-lang
zendrix has joined #ruby-lang
iamninja has joined #ruby-lang
moretti has quit [Quit: Leaving...]
Guest91446 has quit [Changing host]
Guest91446 has joined #ruby-lang
Guest91446 is now known as bougyman
caseypat_ has joined #ruby-lang
caseypatrickdris has quit [Read error: Connection reset by peer]
anaiden has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
baweaver has quit [Remote host closed the connection]
skade has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby-lang
hahuang65 has joined #ruby-lang
hahuang65 has quit [Client Quit]
Musashi007 has joined #ruby-lang
hahuang65 has joined #ruby-lang
duderonomy has quit [Ping timeout: 265 seconds]
BanzaiJoe has joined #ruby-lang
<BanzaiJoe> Hello
<BanzaiJoe> I have a question about syntax and booleans and hashes
symm- has joined #ruby-lang
Troller69 has joined #ruby-lang
<BanzaiJoe> I saw some code and I couldn't understand what was going on under the hood and it looked likethis
joaomdmoura has joined #ruby-lang
chinmay_dd has quit []
<BanzaiJoe> hash = {"key" => false, "key2" => false} ; hash.each do | item , need |
baweaver has joined #ruby-lang
bb010g has joined #ruby-lang
caseypat_ has quit [Read error: Connection reset by peer]
<BanzaiJoe> some puts and case and gets and when and then hash.[item] = true (or false) depending on the gets
caseypatrickdris has joined #ruby-lang
anaiden has quit []
<BanzaiJoe> what is method is [item] invoking on the hash? is it actually assigning boolean or just text
alestuber has quit [Ping timeout: 272 seconds]
zendrix has quit [Remote host closed the connection]
joaomdmoura has quit [Ping timeout: 240 seconds]
<canton7> the method [](value)
<canton7> well, []=(key, value)
<BanzaiJoe> right, but what's the method? is it match or find and replace
zendrix has joined #ruby-lang
<BanzaiJoe> or ?
<canton7> it's literally the method []= that's called
<BanzaiJoe> ooooh, let me collect my brain for a moment off the floor
dede_ has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
simi has joined #ruby-lang
<BanzaiJoe> OK, now I have my brain back, what method is [] ? I see in docs they call it "meth" which doesn't sound to savory
<BanzaiJoe> too*
<canton7> >> h = {:a => 1}; h.send(:"[]=", :a, 2); p h
<eval-in> canton7 => {:a=>2} ... (https://eval.in/355344)
jgpawletko has joined #ruby-lang
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BanzaiJoe> oh, so not 5D...
valeri_ufo has quit [Quit: ...]
<BanzaiJoe> gotcha, thank you sir
bungoman has quit [Remote host closed the connection]
<canton7> :)
bungoman has joined #ruby-lang
aaeron has quit [Quit: aaeron]
thelastinuit has joined #ruby-lang
thelastinuit has quit [Client Quit]
bungoman has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
apt-get__ has joined #ruby-lang
brownbathrobe has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
alestuber has joined #ruby-lang
apt-get_ has quit [Ping timeout: 244 seconds]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
duderonomy has joined #ruby-lang
workmad3 has joined #ruby-lang
brownbathrobe has joined #ruby-lang
ggerman has joined #ruby-lang
revath has quit [Ping timeout: 244 seconds]
banister has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
alestuber has quit [Ping timeout: 258 seconds]
anjen has quit [Quit: anjen]
alestuber has joined #ruby-lang
arBmind has joined #ruby-lang
kr3ssh has quit [Ping timeout: 272 seconds]
hahuang65 has quit [Ping timeout: 245 seconds]
dede_ has quit []
joaomdmoura has joined #ruby-lang
dede has joined #ruby-lang
wallerdev has joined #ruby-lang
dented42 has joined #ruby-lang
GarethAdams has quit [Quit: So long, and thanks for all the fish!]
GarethAdams_ has joined #ruby-lang
GarethAdams_ is now known as GarethAdams
niemcu has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
fujimura has joined #ruby-lang
kr3ssh has joined #ruby-lang
dede has quit [Quit: Updating details, brb]
dede has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
fujimura has quit [Ping timeout: 265 seconds]
martinbmadsen has quit [Remote host closed the connection]
<BanzaiJoe> "just", the dirtiest four letter word
fusillicode has quit [Ping timeout: 272 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alestuber has quit [Ping timeout: 265 seconds]
martinbmadsen has joined #ruby-lang
benanne has quit [Quit: kbai]
<VinnyBoy> what about "dirt"?
<BanzaiJoe> is dirt on a bar of soap dirty?
alestuber has joined #ruby-lang
<VinnyBoy> no, its clean dirt
<BanzaiJoe> btw, mostly referring to the complete disregard for details when the solution to a problem is to "just" do X
<VinnyBoy> the bar of soap is dirty
<VinnyBoy> "just get a job"
<BanzaiJoe> hahahaha, exactly
<BanzaiJoe> "just got a job", now that is the appropriate use of the word
k3asd` has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
<BanzaiJoe> that is, if it was true
crdpink2 has quit [Quit: q term]
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crdpink has joined #ruby-lang
imperator has quit [Quit: Leaving]
charliesome has joined #ruby-lang
mkosaki_ has joined #ruby-lang
crdpink has quit [Client Quit]
imperator2 has quit [Quit: Valete!]
skade has joined #ruby-lang
kr3ssh has quit [Ping timeout: 252 seconds]
bkutil__ has joined #ruby-lang
zendrix has quit [Remote host closed the connection]
ryotarai_ has joined #ruby-lang
zendrix has joined #ruby-lang
deg_ has joined #ruby-lang
crdpink has joined #ruby-lang
duderonomy has joined #ruby-lang
joaomdmoura has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
kr3ssh has joined #ruby-lang
michael_imac has joined #ruby-lang
pd has quit [Ping timeout: 250 seconds]
mkosaki has quit [Ping timeout: 250 seconds]
bkutil has quit [Ping timeout: 250 seconds]
ryotarai has quit [Ping timeout: 250 seconds]
deg has quit [Ping timeout: 250 seconds]
hplar has quit [Ping timeout: 250 seconds]
ldnunes has quit [Ping timeout: 250 seconds]
fluchtreflex_ has quit [Ping timeout: 250 seconds]
jtperreault has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Ping timeout: 250 seconds]
xybre has quit [Ping timeout: 250 seconds]
nvg has quit [Ping timeout: 250 seconds]
alakra has quit [Ping timeout: 250 seconds]
ryotarai_ is now known as ryotarai
xybr_ has joined #ruby-lang
joaomdmoura has quit [Write error: Broken pipe]
alakran has joined #ruby-lang
ldnunes has joined #ruby-lang
fluchtreflex has joined #ruby-lang
fluchtreflex has quit [Changing host]
fluchtreflex has joined #ruby-lang
nvg has joined #ruby-lang
hplar has joined #ruby-lang
jtperreault has joined #ruby-lang
pd has joined #ruby-lang
joaomdmoura has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
alestuber has quit [Remote host closed the connection]
amystephen has quit [Ping timeout: 256 seconds]
amystephen has joined #ruby-lang
kr3ssh has quit [Ping timeout: 246 seconds]
joaomdmoura has joined #ruby-lang
A124 has quit [Ping timeout: 264 seconds]
ldnunes has quit [Quit: Leaving]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
hahuang65 has joined #ruby-lang
shazaum_ has quit [Quit: Leaving]
caseypatrickdris has quit [Remote host closed the connection]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
caseypatrickdris has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
A124 has joined #ruby-lang
DCameronMauch has joined #ruby-lang
<DCameronMauch> having trouble trying to figure out how to test this: https://gist.github.com/DCameronMauch/31491d3d91ef23044634
alestuber has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 272 seconds]
<DCameronMauch> I am creating a new class dynamically and need to test what is happening inside that
baweaver has joined #ruby-lang
<DCameronMauch> have no idea how to get ahold of the object that is receiving those includes
<DCameronMauch> using rspec BTW
<DCameronMauch> getting rid of the Class.new is not an option for me either
<DCameronMauch> those customizing includes have class methods and I can't pollute a global class that other requests would use
bahar_ has joined #ruby-lang
<DCameronMauch> which customizations this would be called with is a function of the request's user, thus will change from request to request
ruby-lang332 has joined #ruby-lang
<DCameronMauch> anyone there?
<ruby-lang332> :)
alestuber has quit [Ping timeout: 264 seconds]
shinnya has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
bennyklo2z has joined #ruby-lang
joaomdmoura has joined #ruby-lang
bennyklo2z has quit [Client Quit]
alestuber has joined #ruby-lang
<DCameronMauch> is this the right place to ask this kind of question?
niemcu has quit [Read error: Connection reset by peer]
joaomdmoura has quit [Ping timeout: 264 seconds]
atomical has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
bahar_ has quit [Quit: My lazy computer has decided to sleep. ZZZzzz…]
Voker57 has joined #ruby-lang
djbkd has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
bahar_ has joined #ruby-lang
<DCameronMauch> hello?
bertocode has joined #ruby-lang
kr3ssh has joined #ruby-lang
Troller69 has quit [Quit: Connection closed for inactivity]
DCameronMauch has quit [Quit: Leaving...]
baweaver has quit [Remote host closed the connection]
airdisa has joined #ruby-lang
victortyau has quit [Quit: Leaving]
ruby-lang332 has quit [Ping timeout: 246 seconds]
fclausen has joined #ruby-lang
hahuang65 has joined #ruby-lang
alestuber has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby-lang
gambl0re has quit [Ping timeout: 265 seconds]
alestuber has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
zendrix has quit [Remote host closed the connection]
baweaver has joined #ruby-lang
apt-get__ has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby-lang
hahuang65 has quit [Ping timeout: 256 seconds]
riotjone_ has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
zendrix has joined #ruby-lang
riotjones has quit [Ping timeout: 256 seconds]
bahar_ has quit [Quit: My lazy computer has decided to sleep. ZZZzzz…]
bahar_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
tibig has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
airdisa has quit []
allomov has joined #ruby-lang
bahar_ has quit [Quit: I'm melting! melting! oh, what a world! what a world...]
enebo has quit [Quit: enebo]
alestuber has quit [Ping timeout: 245 seconds]
alestuber has joined #ruby-lang
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 246 seconds]
fujimura has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
fujimura has quit [Ping timeout: 272 seconds]
scottschecter has joined #ruby-lang
oh_hai_mark has joined #ruby-lang
brownbathrobe has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
k3asd` has quit [Ping timeout: 246 seconds]
ruby-lang834 has joined #ruby-lang
<ruby-lang834> haiii guys
kr3ssh has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
<ruby-lang834> anyone here has scrapped imdb ranking? I'm having ridiculous problem. Opening imdb in nokogiri give me non-english movies titles (but imdv has only english language available). how is it possible?
<ruby-lang834> okogiri::HTML(open('http://www.imdb.com/chart/top?ref_=cht_ql_2';)).at_css('#main > div > div.lister > table > tbody > tr:nth-child(1) > td.titleColumn > a').text
<ruby-lang834> => "Skazani na Shawshank"
allomov has quit [Remote host closed the connection]
allomov has joined #ruby-lang
allomov has quit [Remote host closed the connection]
<BanzaiJoe> let's back up a sec
<BanzaiJoe> why do you think imdb only has English language movies?
<flavorjones> ruby-lang834: nokogiri doesn't open web pages ... are you using Net::HTTP or Mechanize or ... ?
<BanzaiJoe> http://www.imdb.com/title/tt3495030/ <--- non-English movie
bertocode has quit [Quit: Nettalk6 - www.ntalk.de]
shazaum has joined #ruby-lang
baweaver has joined #ruby-lang
lewix has joined #ruby-lang
Musashi007 has joined #ruby-lang
<ruby-lang834> BanzaiJoe: Every movie is in Polish... really. Titles got translated somehow
<ruby-lang834> flavorjones: I'm using open-uri and nokogiri this way: Nokogiri::HTML(open(url))
<ruby-lang834> it works
<ruby-lang834> is there hidden language switch on the webpage?
<flavorjones> ruby-lang834: sorry, I'm trying to make a point that Nokogiri isn't downloading anything. You should isolate your problem with open-uri first
rbowlby has quit [Remote host closed the connection]
alestuber has quit [Ping timeout: 256 seconds]
<ruby-lang834> flavorjones: So what nokogiri does?
<ruby-lang834> Isn't it requesting given url and parse it into nodes?
anaiden has joined #ruby-lang
rbowlby has joined #ruby-lang
alestuber has joined #ruby-lang
<darix> ruby-lang834: just an idea
rbowlby has quit [Remote host closed the connection]
<darix> instead of using open-uri use something that gives you a bit more control over http headers
<flavorjones> ruby-lang834: open-uri provides `open()` which makes the HTTP network call. Nokogiri parses the HTML being returned by `open()`.
<ruby-lang834> can you try it on your own guys? what does Nokogiri::HTML(open('http://www.imdb.com/chart/top?ref_=cht_ql_2';)).at_css('#main > div > div.lister > table > tbody > tr:nth-child(1) > td.titleColumn > a').text return for you?
<flavorjones> My advice is to not conflate Nokogiri with the content being downloaded via open-uri.
marr has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby-lang
ur5us_ has joined #ruby-lang
ur5us has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby-lang
lewix has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
bungoman has joined #ruby-lang
hahuang61 has quit [Ping timeout: 264 seconds]
Ropeney has joined #ruby-lang
dented42 has quit [Quit: Textual IRC Client: www.textualapp.com]
rbowlby has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
bungoman has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
ur5us_ has quit [Ping timeout: 256 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
datanoise has joined #ruby-lang
fujimura has joined #ruby-lang
<ruby-lang834> flavorjones: i used rest client.get and it is still the same
aaeron has joined #ruby-lang
datanoise has quit [Read error: Connection reset by peer]
alestuber has quit [Ping timeout: 256 seconds]
fujimura has quit [Ping timeout: 246 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ogpastaling has quit [Remote host closed the connection]
ogpastaling has joined #ruby-lang
alestuber has joined #ruby-lang
ogpastaling has quit [Ping timeout: 264 seconds]
skade has quit [Quit: Computer has gone to sleep.]
toretore has quit [Quit: This computer has gone to sleep]
<flavorjones> ruby-lang834: when I run that snippet, I get "The Shawshank Redemption"
<flavorjones> My advice would be to check your locale settings; or else use Mechanize and turn on logging to see what headers are being sent