Sina has quit [Quit: Connection closed for inactivity]
evdubs__ has joined #ruby
evdubs_ has quit [Ping timeout: 240 seconds]
linoge has quit [Remote host closed the connection]
linoge has joined #ruby
linoge has quit [Ping timeout: 240 seconds]
<LACampbell>
randomgen: congrats on the app launch
<LACampbell>
wrt to web frameworks, I've been meaning to try out Roda
<randomgen>
LACampbell: thanks man!
_aeris_ has quit [Remote host closed the connection]
<randomgen>
oh yeah, that sounds like fun :)
* randomgen
huge fan of jeremy evans
_aeris_ has joined #ruby
linoge has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
linoge has quit [Ping timeout: 268 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
wallacer has quit [Ping timeout: 250 seconds]
andremedeiros has joined #ruby
wallacer has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
gix has quit [Ping timeout: 240 seconds]
dpl has quit [Ping timeout: 268 seconds]
linoge has joined #ruby
linoge has quit [Read error: Connection reset by peer]
linoge has joined #ruby
gearnode has quit [Ping timeout: 258 seconds]
linoge has quit [Ping timeout: 268 seconds]
queip has quit [Read error: Connection reset by peer]
Technodrome has joined #ruby
evdubs_ has joined #ruby
evdubs__ has quit [Ping timeout: 268 seconds]
queip has joined #ruby
neshpion has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
Axy has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
linoge has joined #ruby
m27frogy has quit [Ping timeout: 268 seconds]
ChmEarl has quit [Quit: Leaving]
linoge has quit [Ping timeout: 252 seconds]
dpl has joined #ruby
neshpion has quit [Quit: neshpion]
MalkbabY_ has joined #ruby
MalkbabY has quit [Ping timeout: 240 seconds]
dpl has quit [Ping timeout: 268 seconds]
al2o3-cr has quit [Quit: WeeChat 3.1]
al2o3-cr has joined #ruby
ur5us__ has quit [Ping timeout: 258 seconds]
teclator has joined #ruby
ur5us__ has joined #ruby
bb8 has quit [Ping timeout: 245 seconds]
ua_ has quit [Ping timeout: 252 seconds]
bb8 has joined #ruby
ua_ has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
elcuervo has joined #ruby
evdubs__ has joined #ruby
ur5us__ has quit [Ping timeout: 250 seconds]
evdubs_ has quit [Ping timeout: 268 seconds]
gearnode has joined #ruby
gearnode has quit [Client Quit]
gearnode has joined #ruby
Rudd0 has quit [Ping timeout: 260 seconds]
dpl has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
<dostoyevsky>
A coworker of mine has experience in rails... any book recommendations so they can program ruby? Atm I see a lot of railsisms in the code...
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
aloy has joined #ruby
TomyWork has joined #ruby
jaminc has quit [Ping timeout: 258 seconds]
jaminc has joined #ruby
ur5us__ has joined #ruby
ur5us__ has quit [Ping timeout: 250 seconds]
ur5us__ has joined #ruby
DTZUZU has quit [Ping timeout: 240 seconds]
MalkbabY has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby[bot]>
dzwdz: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<leftylink>
it would certainly seem as it it's yielded another element in order to see whether there's something to zip with. I've not yet decided whether I agree it's necessary, but I think we can agree that's what's happening, no?
<dzwdz>
maybe?
<dzwdz>
it doesn't do that on the first zip, though
<dzwdz>
i've just added some debug prints, the 4 gets eaten by the first zip
LiteWait has quit [Quit: Connection closed]
linoge has quit [Remote host closed the connection]
linoge has joined #ruby
<jhass>
mmh, yes it's a little weird, a naive implementation doesn't do this https://carc.in/#/r/ax8x
jenrzzz has quit [Ping timeout: 265 seconds]
<dzwdz>
could that be a bug?
gearnode has joined #ruby
<jhass>
I mean it's probably not expected to reuse an enumerator like that, but one could argue so I guess
<jhass>
weird enough that I wouldn't be ashamed to open one on the bug tracker to get it explained to me in your case :D
<dzwdz>
hm, what should i use instead of an enumerator for something like that?
jenrzzz has joined #ruby
<Rounin>
dzwdz: Could you first convert it to an array, perhaps?
<dzwdz>
convert what?
<Rounin>
Whatever gives you the list of zip files
<Rounin>
If you can just to_a it, then you have an unchanging list
<dzwdz>
i'm not talking about zip files, i'm talking about Array.zip
<Rounin>
Well, whatever list you're going through
<leftylink>
oh get this
<dzwdz>
i have an array and an infinite enumerator
<Rounin>
If one file is disappearing the second time you use it, then it can hardly disappear if you make your own copy first
<leftylink>
Array#zip and Enumerator#zip work differently
<leftylink>
pinkpandabot: rb i = -1; e = Enumerator.new { |y| loop { y << (i += 1) } }; p [0, 0, 0].each.zip(e); p [0, 0, 0].each.zip(e)
<Rounin>
Ah, Array.zip... So it's some sort of interleaving thing... And it's infinite... Oh well
<havenwood>
dzwdz: It's a CRuby-specific quirk that TruffleRuby and JRuby don't follow.
<dzwdz>
i've made a bug report for this already
<havenwood>
Since it's not documented or in the specs, I think it's fair to call it a bug.
<dzwdz>
yup
<dzwdz>
also, thanks for testing that on different implementations
<havenwood>
dzwdz: You're welcome. Testing with mruby actually revealed an interesting workaround.
<havenwood>
dzwdz: [0, 0, 0, 0].lazy.zip(e).force
jenrzzz has joined #ruby
<havenwood>
dzwdz: The lazy ^ variant will work as you intend on all implementations.
<dzwdz>
oh, thanks
TrufflePump has joined #ruby
<leftylink>
if it's going to be forced immediately anyway, I must not understand enough to understand what would be the advantage of just using .each theere
<leftylink>
this must be because I don't use .lazy enough and lack the understanding - I will have to study more
<havenwood>
leftylink: It's not sensible, but consider this:
<leftylink>
I understand it significantly changes the meaning of the sentence (into the opposite meaning), but I hoped maybe my mistake wasn't noticed...
<leftylink>
and didn't change the underlying fact that study is required
<leftylink>
I will work harder
jinie has joined #ruby
jenrzzz has joined #ruby
jetchisel has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
Rudd0 has joined #ruby
erpel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moldorcoder7 has quit [Quit: %bye mirc%]
Hanma[m] has joined #ruby
akem has quit [Ping timeout: 265 seconds]
akem has joined #ruby
moldorcoder7 has joined #ruby
jenrzzz has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 252 seconds]
hiroaki_ has quit [Ping timeout: 260 seconds]
jla has quit [Ping timeout: 265 seconds]
howdoi has joined #ruby
moldorcoder7 has quit [Ping timeout: 252 seconds]
moldorcoder7 has joined #ruby
TrufflePump has joined #ruby
jenrzzz has joined #ruby
duderonomy has joined #ruby
akem has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Read error: Connection reset by peer]