j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
emmesswhy has quit [Quit: Leaving]
chills42 has quit [Remote host closed the connection]
torrieri has quit [Ping timeout: 264 seconds]
j4cknewt has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
malconis has joined #ruby-lang
malconis has quit [Client Quit]
newsarpk92 has quit [Ping timeout: 246 seconds]
malconis has joined #ruby-lang
malconis has quit [Client Quit]
malconis has joined #ruby-lang
malconis has quit [Client Quit]
vondruch has quit [Ping timeout: 272 seconds]
j4cknewt has joined #ruby-lang
mkaesz has joined #ruby-lang
gjaldon has joined #ruby-lang
mkaesz has quit [Ping timeout: 245 seconds]
_Kerber0s_ has joined #ruby-lang
Kerber0s has quit [Ping timeout: 264 seconds]
Miphix has quit [Read error: Connection reset by peer]
Miphix has joined #ruby-lang
Miphix has quit [Client Quit]
ender|dkm has joined #ruby-lang
Miphix has joined #ruby-lang
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bruno- has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adam2 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sepp2k1 has quit [Read error: Connection reset by peer]
nathanstitt has quit [Quit: I growing sleepy]
Kerber0s has joined #ruby-lang
piwhy has joined #ruby-lang
piwhy has left #ruby-lang [#ruby-lang]
bruno- has quit [Ping timeout: 260 seconds]
_Kerber0s_ has quit [Write error: Connection reset by peer]
torrieri has joined #ruby-lang
chouhoulis has joined #ruby-lang
bsvineeth has joined #ruby-lang
chouhoulis has quit [Ping timeout: 268 seconds]
yatish27_ has joined #ruby-lang
toastynerd has joined #ruby-lang
yatish27 has quit [Ping timeout: 240 seconds]
skade has joined #ruby-lang
shinnya has quit [Ping timeout: 246 seconds]
sleepee has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby-lang
yatish27 has joined #ruby-lang
mistym has joined #ruby-lang
yatish27_ has quit [Ping timeout: 255 seconds]
gjaldon has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
ledestin has quit [Ping timeout: 268 seconds]
gjaldon has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
mkaesz has joined #ruby-lang
necro has joined #ruby-lang
Guest20693 has joined #ruby-lang
<necro>
hey doing ruby tutorial Test First and working through an exercise where I'm meant to write a program to transform input into pig-latin - I'm going through test by test and am stuck on this one, I have included my code and the error here: https://gist.github.com/anonymous/c3ceacd54cefd689213c
yatish27 has quit [Remote host closed the connection]
tectonic has joined #ruby-lang
<necro>
can anyone tell me why my code to translate multiple words isn't working?
yatish27 has joined #ruby-lang
diegoviola has joined #ruby-lang
mkaesz has quit [Ping timeout: 268 seconds]
yatish27 has quit [Ping timeout: 246 seconds]
Iskarlar has joined #ruby-lang
<centrx>
necro, I don't know, you wrote #multi_words in a really convoluted way
<centrx>
necro, Sometimes it can help to just review your logic and see if you can a) simplify, b) identify any flaws in the logic
<necro>
right
toastynerd has quit [Remote host closed the connection]
<necro>
I know it is convoluted, I am new at this so I am just trying to write something that works, then go back to simplify but obviously I am not doing that method right
<necro>
thanks for your suggestion
<necro>
is the way I've attached .join to the if statement in multi_words acceptable?
<necro>
I know the issue is bigger than that, but I am wondering if I put that part of the cod ein the righ tplace
toastynerd has joined #ruby-lang
<centrx>
One thing is that the logic for a single word in #translate is the same the logic for a single word in #multi_words
bruno- has joined #ruby-lang
<centrx>
That should be another method that both call
<centrx>
If the #translate single word works, but the same logic in #multi_words does not, maybe there is a subtle difference that is causing a bug
<centrx>
modularizing the code into a re-usable method makes a single code path, one set of bugs, one thing does the same thing
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
bruno- has quit [Ping timeout: 272 seconds]
Guest20693 has quit [Ping timeout: 260 seconds]
<centrx>
necro, Also, no, if you do .each { }.join the result does not have anything from the block
tectonic has quit []
<necro>
how can I .join the results on a block following each?
<centrx>
necro, You want .map {}.join, #each is merely for iterating through, #map returns a new array with the block constituting the map/replacement
<necro>
i see
<necro>
thank you
<necro>
if I use map is that placement of join correct?
<centrx>
yes
<necro>
great thanks
diegoviola has quit [Quit: WeeChat 1.0]
io_syl has joined #ruby-lang
diegoviola has joined #ruby-lang
toastynerd has quit []
Guest20693 has joined #ruby-lang
diegoviola has quit [Client Quit]
diegoviola has joined #ruby-lang
tectonic has joined #ruby-lang
AKASkip has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
Guest20693 has quit [Ping timeout: 252 seconds]
chussenot has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
j4cknewt has quit [Remote host closed the connection]
mkaesz has joined #ruby-lang
Guest20693 has joined #ruby-lang
mkaesz has quit [Ping timeout: 272 seconds]
j4cknewt has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
snoopybbt has quit [Ping timeout: 245 seconds]
Guest20693 has quit [Read error: No route to host]
j4cknewt has quit [Ping timeout: 245 seconds]
j4cknewt has joined #ruby-lang
centrx has quit [Quit: Mead error: Connection reset by beer]
twe4ked has quit [Ping timeout: 272 seconds]
Iskarlar has quit [Ping timeout: 245 seconds]
twe4ked has joined #ruby-lang
charliesome has quit [Quit: zzz]
skade has quit [Quit: Computer has gone to sleep.]
torrieri has joined #ruby-lang
_Kerber0s_ has joined #ruby-lang
vintik has quit [Remote host closed the connection]
vintik has joined #ruby-lang
torrieri_ has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
torrieri has quit [Read error: Connection reset by peer]
bsvineeth has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
bsvineeth has joined #ruby-lang
Kerber0s has quit [Ping timeout: 245 seconds]
torrieri has joined #ruby-lang
torrieri_ has quit [Read error: Connection reset by peer]
vintik has quit [Ping timeout: 264 seconds]
bsvineeth has quit [Read error: Connection reset by peer]
bsvineeth has joined #ruby-lang
j4cknewt has quit [Ping timeout: 276 seconds]
torrieri_ has joined #ruby-lang
torrieri has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
torrieri_ has quit [Ping timeout: 268 seconds]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
chussenot has quit [Quit: chussenot]
chussenot has joined #ruby-lang
ItSANgo has quit [Quit: Leaving...]
havenwood has quit [Ping timeout: 264 seconds]
gjaldon has joined #ruby-lang
BOKALDO has joined #ruby-lang
Guest20693 has joined #ruby-lang
mkaesz has joined #ruby-lang
bousquet has joined #ruby-lang
vintik has joined #ruby-lang
chussenot has quit [Quit: chussenot]
bruno- has joined #ruby-lang
_ht has joined #ruby-lang
vintik has quit [Ping timeout: 240 seconds]
mkaesz has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 246 seconds]
ItSANgo has joined #ruby-lang
Guest20693 has quit [Quit: Konversation terminated!]
tomas has joined #ruby-lang
tomas is now known as Guest74606
adam2 is now known as Adam_ActiveState
tectonic has quit []
necro has quit [Ping timeout: 246 seconds]
banister has joined #ruby-lang
torrieri has joined #ruby-lang
chris2 has quit [Ping timeout: 272 seconds]
relix has joined #ruby-lang
klmlfl has joined #ruby-lang
thomasxie has quit [Read error: Connection reset by peer]
shinnya has joined #ruby-lang
torrieri has quit [Ping timeout: 246 seconds]
Lewix has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
bsvineet_ has joined #ruby-lang
bsvineeth has quit [Ping timeout: 264 seconds]
bousquet has quit []
chris2 has joined #ruby-lang
bruno- has joined #ruby-lang
mkaesz has joined #ruby-lang
JaRe_Ax has joined #ruby-lang
JaReAx has quit [Ping timeout: 245 seconds]
JaRe_Ax is now known as JaReAx
marr has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
michd is now known as MichD
bruno- has quit [Ping timeout: 240 seconds]
klmlfl has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
diegoviola has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
JohnBat26 has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
face has joined #ruby-lang
ledestin has joined #ruby-lang
jhass|off is now known as jhass
faces has quit [Ping timeout: 245 seconds]
klmlfl has quit [Ping timeout: 252 seconds]
diegoviola has quit [Read error: Connection reset by peer]
torrieri has joined #ruby-lang
marr has quit [Ping timeout: 245 seconds]
Guest74606 has quit [Ping timeout: 240 seconds]
torrieri has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby-lang
djdeaf has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brianpWins has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
cryptoca_ has quit [Ping timeout: 272 seconds]
io_syl has quit []
sMecKs has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
emmesswhy has joined #ruby-lang
cryptoca has joined #ruby-lang
relix has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
mikecmpbll has joined #ruby-lang
Benny1992 has quit [Quit: leaving]
Benny1992 has joined #ruby-lang
Benny1992 has quit [Client Quit]
jds has joined #ruby-lang
<dostoyevsky>
I really love pry... just invoking a debugger somewhere in my code is really useful
djdeaf has quit [Quit: djdeaf]
vintik has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
kgrz has quit [Ping timeout: 255 seconds]
cryptoca has quit [Ping timeout: 272 seconds]
cryptoca has joined #ruby-lang
bsvineet_ has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
bsvineeth has joined #ruby-lang
mistym has quit [Remote host closed the connection]
bsvineeth has quit [Ping timeout: 245 seconds]
torrieri has quit [Ping timeout: 272 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
cryptoca has quit [Ping timeout: 260 seconds]
karamazov has quit [Remote host closed the connection]
torrieri has joined #ruby-lang
karamazov has joined #ruby-lang
gix has quit [Quit: Client exiting]
Lewix has joined #ruby-lang
karamazov has quit [Ping timeout: 246 seconds]
Lewix has quit [Remote host closed the connection]
torrieri has quit [Ping timeout: 260 seconds]
gix has joined #ruby-lang
djdeaf has joined #ruby-lang
havenwood has joined #ruby-lang
cryptoca has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
skade has joined #ruby-lang
bsvineeth has joined #ruby-lang
cryptoca has quit [Ping timeout: 268 seconds]
mLF has joined #ruby-lang
sarkyniin has joined #ruby-lang
cryptoca has joined #ruby-lang
stamina has joined #ruby-lang
riffraff has joined #ruby-lang
thomasxie has joined #ruby-lang
arBmind has joined #ruby-lang
mLF has quit [Ping timeout: 255 seconds]
skade has quit [Quit: Computer has gone to sleep.]
thomasxie has quit [Read error: Connection reset by peer]
thomasxie has joined #ruby-lang
vintik has quit [Remote host closed the connection]
sleepee has joined #ruby-lang
sleepee has quit [Excess Flood]
sleepee has joined #ruby-lang
bruno- has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]