<leftylink>
okay I see one ambiguity that would have to be solved first before yield accepting a block would be legal. if yield accepts a block A, then consider the block B that's just gotten block A yielded to it. how shall B invoke A? with yield? but yield in that position might have a different block, the one passed to code surrounding B. so this ambiguity needs to be resolved first
Swyper has joined #ruby
<leftylink>
&>> def f; yield(->a { a * 10 + 1 }) end; def g; f { |g| g[8] * 10 + yield } end; g { 9 }
<nakilon>
so the codes that use this method are all different in lines 19, 20, 22, 23, 24, 26 -- they just need this stuff to cache the popen3 call part in the middle of these code piece
Axy has quit [Read error: Connection reset by peer]
Axy has joined #ruby
<al2o3-cr>
nakilon: it's a syntax error
<nakilon>
no way ..D
<nakilon>
that is what my question about
<nakilon>
why is this syntax illegal and instead I have to pass the block as a lambda
<nakilon>
I see no possible ambiguity
<al2o3-cr>
nakilon: lambda do/{ |arg| or -> (arg) do/{
<nakilon>
what?
<leftylink>
it's too bad. like so many other times in the channel, person A can say something, but person A can't make person B pay attention
<al2o3-cr>
nakilon: it's syntax error dude
<nakilon>
leftylink "but yield in that position might have a different block" -- I don't want yield to call blocks passed to blocks (I want another feature) -- in my example there are only two methods and it's clear that the "yield" in the B will call the block A
<leftylink>
understandable. so if the proposal were that at the yield-site the change is made, but at the yielded-to-site no change is made so that `yield` still only calls the block yielded to the method, it would retain one aspect of consistency of `yield`, in that it only yields to blocks passed to the method, very well. I would note however that it creates inconsistency around blocks, then. since sometimes you
<leftylink>
will invoke them with `yield`, and sometimes you will do something else (whatever the new feature is)
<nakilon>
actually it's even only one method so another yield won't even make sense -- it will be just accepted as &block instead of block
<leftylink>
we see that language design is not easy
<al2o3-cr>
nakilon: your calling |block| which is just an argument
<al2o3-cr>
you need to pass &block
<nakilon>
al2o3-cr it works ) just run it
dfucci has joined #ruby
<al2o3-cr>
not as you expect it too.
<nakilon>
copypasting from dpaste puts some invisible unicode space characters though lol
<al2o3-cr>
nakilon: dude, it prints the bytes.
<al2o3-cr>
nakilon: what's the problem?
dfucci has quit [Ping timeout: 246 seconds]
<al2o3-cr>
leftylink: give me some of that you've been smoking :p
<al2o3-cr>
my eyes are gone!
<leftylink>
well I did have an inkling to discuss how I used to use the idea of "I'm criticising the idea not the person" to be an asshole to people, but it was not on topic for #ruby so I shelved it for now
<al2o3-cr>
leftylink: let your emojicons out dear :)
<al2o3-cr>
leftylink: right or wrong doesn't matter
<al2o3-cr>
you need to start putting ya chin up you.
<leftylink>
I understand though I think my preference is to have a little more respect for the rules at this point in time
<al2o3-cr>
leftylink: rules are there to broken. what do you think, your gonna hurt someone feelings?
<al2o3-cr>
shit, life short bro.
<havenwood>
can we please all concentrate on what really matters? syntax highlighting.
<leftylink>
once one understands the rule, the one is able to make an informed decision on when to break it
<nakilon>
havenwood on passing the block to yield )
<leftylink>
and the rationale for why the rule exists of course
<al2o3-cr>
leftylink: it's a IRC channel bro aha
<al2o3-cr>
i could be a parrot for all you know
<al2o3-cr>
nakilon: i'm pretty sure it can't be done
<al2o3-cr>
not what you wrote, what your tring to do.
<al2o3-cr>
*tring
<al2o3-cr>
*trying
<al2o3-cr>
fat fingers
<al2o3-cr>
leftylink: stop trying to analyse people and be *yourself*
<al2o3-cr>
because your very clued up.
Rounin has quit [Ping timeout: 256 seconds]
<al2o3-cr>
nakilon: this is what i though you meant
chouhoulis has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us_ has quit [Ping timeout: 264 seconds]
al2o3-cr has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
gix has quit [Ping timeout: 272 seconds]
FastJack has quit [Ping timeout: 246 seconds]
vaillancourtmax has quit [Quit: leaving]
dfucci has joined #ruby
FastJack has joined #ruby
dfucci has quit [Ping timeout: 246 seconds]
goepsilongo has quit [Quit: goepsilongo]
Swyper_ has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
macaronus has quit [Ping timeout: 256 seconds]
al2o3-cr has quit [Quit: WeeChat 3.0]
nofxx has quit [Read error: Connection reset by peer]
jerme_ has quit [Read error: Connection reset by peer]
evil has quit [Ping timeout: 246 seconds]
jerme_ has joined #ruby
DerekNonGeneric has quit [Read error: Connection reset by peer]
kwilczynski has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
evil has joined #ruby
DerekNonGeneric has joined #ruby
jimcroft has quit [Ping timeout: 246 seconds]
kwilczynski has joined #ruby
jimcroft has joined #ruby
ChmEarl has quit [Quit: Leaving]
kwilczynski has quit [*.net *.split]
akem has quit [*.net *.split]
evdubs has quit [*.net *.split]
klaas has quit [*.net *.split]
duckpuppy has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
Hien has quit [*.net *.split]
jinie has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
endorama has quit [*.net *.split]
tvl has quit [*.net *.split]
bougyman has quit [*.net *.split]
Xiti has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
ErhardtMundt has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
Fusl has quit [*.net *.split]
crawler has quit [*.net *.split]
CommunistWolf has quit [*.net *.split]
pitr has quit [Ping timeout: 246 seconds]
zenspider has quit [Ping timeout: 264 seconds]
zenspider has joined #ruby
kwilczynski has joined #ruby
akem has joined #ruby
duckpuppy has joined #ruby
evdubs has joined #ruby
Hien has joined #ruby
yxhuvud has joined #ruby
jinie has joined #ruby
endorama has joined #ruby
KrzaQ has joined #ruby
tobiasvl has joined #ruby
ErhardtMundt has joined #ruby
Xiti has joined #ruby
Fire-Dragon-DoL has joined #ruby
bougyman has joined #ruby
ByronJohnson has joined #ruby
klaas has joined #ruby
Fusl has joined #ruby
CommunistWolf has joined #ruby
crawler has joined #ruby
kwilczynski has quit [Max SendQ exceeded]
xpitr has joined #ruby
kwilczynski has joined #ruby
bthompson90 has quit [Ping timeout: 246 seconds]
PaulB[m] has quit [Ping timeout: 268 seconds]
hsiktas[m] has quit [Ping timeout: 268 seconds]
surrounder has quit [Ping timeout: 264 seconds]
Vagabond[m] has quit [Ping timeout: 260 seconds]
JanHebler[m] has quit [Ping timeout: 246 seconds]
henk[m]1 has quit [Ping timeout: 260 seconds]
swann11[m] has quit [Ping timeout: 260 seconds]
turt2live has quit [Ping timeout: 272 seconds]
themsay[m] has quit [Ping timeout: 240 seconds]
DanielCarlsson[m has quit [Ping timeout: 260 seconds]
jo-so has quit [Ping timeout: 240 seconds]
EdwardIII has quit [Ping timeout: 246 seconds]
linuus[m] has quit [Ping timeout: 268 seconds]
serge[m] has quit [Ping timeout: 240 seconds]
Hanma[m] has quit [Ping timeout: 240 seconds]
danielk43[m] has quit [Ping timeout: 265 seconds]
kinduff[m] has quit [Ping timeout: 268 seconds]
tfreedman has quit [Ping timeout: 268 seconds]
jordanh has quit [Ping timeout: 268 seconds]
Cubixusin[m] has quit [Ping timeout: 268 seconds]
EdwardIII has joined #ruby
neshpion has quit [Quit: neshpion]
PaulB[m] has joined #ruby
hsiktas[m] has joined #ruby
m27frogy has quit [Ping timeout: 240 seconds]
turt2live has joined #ruby
swann11[m] has joined #ruby
henk[m]1 has joined #ruby
Vagabond[m] has joined #ruby
bthompson90 has joined #ruby
themsay[m] has joined #ruby
JanHebler[m] has joined #ruby
kinduff[m] has joined #ruby
jordanh has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 3.0.1]
DanielCarlsson[m has joined #ruby
zacts has joined #ruby
jo-so has joined #ruby
linuus[m] has joined #ruby
Hanma[m] has joined #ruby
danielk43[m] has joined #ruby
serge[m] has joined #ruby
Cubixusin[m] has joined #ruby
tfreedman has joined #ruby
jmcgnh has quit [Ping timeout: 272 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ShekharReddy has joined #ruby
jmcgnh has joined #ruby
cliluw has quit [Ping timeout: 264 seconds]
fercell has joined #ruby
fercell has quit [Ping timeout: 272 seconds]
fercell has joined #ruby
imadper has quit [Remote host closed the connection]
dfucci has joined #ruby
Rudd0 has quit [Ping timeout: 246 seconds]
dinfuehr has quit [Ping timeout: 264 seconds]
dinfuehr has joined #ruby
fercell has quit [Ping timeout: 246 seconds]
fercell has joined #ruby
fercell has quit [Ping timeout: 272 seconds]
fercell has joined #ruby
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 272 seconds]
pabs has quit [Ping timeout: 256 seconds]
pabs has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dinfuehr_ has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
fercell has quit [Ping timeout: 264 seconds]
fercell has joined #ruby
gearnode has joined #ruby
fercell has quit [Ping timeout: 256 seconds]
fercell has joined #ruby
s3nd1v0g1us has joined #ruby
Lyubo1 has quit [Ping timeout: 246 seconds]
Lyubo1 has joined #ruby
elcuervo has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 3.0.1]
cuerbot has quit [Ping timeout: 256 seconds]
vondruch has joined #ruby
stdedos has joined #ruby
jla has joined #ruby
ur5us has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
surrounder has joined #ruby
zacts has quit [Quit: leaving]
ChewyB has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
Rounin has joined #ruby
x0n- has quit [Ping timeout: 246 seconds]
ChewyB has joined #ruby
dfucci has quit [Ping timeout: 272 seconds]
gdc_m has joined #ruby
x0n has joined #ruby
schne1der has joined #ruby
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
steph_ has joined #ruby
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
stdedos has quit [Quit: Connection closed]
cthulchu_ has joined #ruby
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
dfucci has joined #ruby
gdc_m has quit [Quit: gdc_m]
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
cthulchu_ has quit [Ping timeout: 246 seconds]
fercell has quit [Ping timeout: 264 seconds]
fercell has joined #ruby
dinfuehr_ has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jla has quit [Ping timeout: 264 seconds]
Technodrome has joined #ruby
Rudd0 has joined #ruby
vondruch has joined #ruby
fercell has quit [Quit: WeeChat 3.0]
rudyc4t has joined #ruby
rudyc4t has quit [Client Quit]
rudyc4t has joined #ruby
TCZ has joined #ruby
steph_ has quit [Quit: Leaving]
jla has joined #ruby
TCZ has quit [Remote host closed the connection]
ChewyB has quit [Read error: Connection reset by peer]
ChewyB has joined #ruby
akem has quit [Ping timeout: 258 seconds]
fercell has joined #ruby
ChewyB has quit [Ping timeout: 264 seconds]
akem has joined #ruby
weaksauce has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
gearnode has quit [Ping timeout: 272 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gearnode has joined #ruby
mikecmpbll has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
fercell has quit [Ping timeout: 256 seconds]
gearnode has quit [Ping timeout: 265 seconds]
fercell has joined #ruby
akem is now known as akem1
akem has joined #ruby
vondruch has quit [Ping timeout: 272 seconds]
linoge has joined #ruby
Rudd0 has quit [Remote host closed the connection]
TCZ has joined #ruby
mappum has joined #ruby
fydel3 has joined #ruby
m27frogy has joined #ruby
al2o3-cr has joined #ruby
<isene>
My program throws out a silly warning as I am capturing "Ctrl-M" (it sees "^M" of course: t-rex:287: warning: encountered \r in middle of line, treated as a mere space
<isene>
How do I turn that warning off from inside the program (i.e. no command line switches)?
evil has quit [Quit: Connection closed for inactivity]
elkalamar has joined #ruby
elkalamar has quit [Connection closed]
roger_rabbitEj has joined #ruby
<roger_rabbitEj>
/!\ this channel has moved to ##hamradio /!\
roger_rabbitEj has quit [Remote host closed the connection]
vondruch has joined #ruby
rosseauxZJ has joined #ruby
<rosseauxZJ>
/!\ this channel has moved to #nyymit /!\
rosseauxZJ was banned on #ruby by adam12 [*!*@bba390922.alshamil.net.ae]
rosseauxZJ was kicked from #ruby by adam12 [rosseauxZJ]
Swyper has joined #ruby
<isene>
adam12: Cool
nakilon has quit [Killed (Sigyn (Spam is off topic on freenode.))]
cd has joined #ruby
jla has quit [Ping timeout: 256 seconds]
gearnode has joined #ruby
TCZ has quit [Quit: Dobranoc]
<leftylink>
collateral damage I see
nakilon has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cd has quit [Ping timeout: 260 seconds]
s2013 has joined #ruby
missionary has joined #ruby
akem has quit [Quit: Leaving]
lucasb has joined #ruby
chouhoulis has joined #ruby
cd has joined #ruby
ignorand has joined #ruby
vincent_ has joined #ruby
jenrzzz has joined #ruby
cow[moo] has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
kristian_on_linu has joined #ruby
vincent_ has quit [Ping timeout: 240 seconds]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
vincent_ has joined #ruby
jla has joined #ruby
cowgomoo has quit [Read error: Connection reset by peer]
macaronus has joined #ruby
macaronus_ has joined #ruby
macaronus has quit [Ping timeout: 260 seconds]
akem1 has quit [Ping timeout: 272 seconds]
akem1 has joined #ruby
macaronus has joined #ruby
macaronus_ has quit [Ping timeout: 264 seconds]
ChmEarl has joined #ruby
vincent_ has quit [Ping timeout: 264 seconds]
Rudd0 has joined #ruby
deviantfero has joined #ruby
<deviantfero>
hey guys I have a question regarding a piece of code but I don't know the guidelines to pasting code here, should I just paste it, or should I create a gist?
<adam12>
deviantfero: If it's larger than 4 lines definitely Gist or dpaste.org
Exagone314 has quit [Quit: see ya!]
Exagone313 has joined #ruby
gdonald has quit [Ping timeout: 264 seconds]
vincent_ has joined #ruby
gdonald has joined #ruby
_whitelogger has joined #ruby
teclator has joined #ruby
jenrzzz has joined #ruby
deviantfero has quit [Read error: Connection reset by peer]
deviantfero has joined #ruby
vincent_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 264 seconds]
fercell has quit [Ping timeout: 272 seconds]
vincent_ has joined #ruby
<deviantfero>
ok, so I want to know what would be the best way of getting rid of that "Cyclomatic complexity warning" without ignoring the rule on this method: https://dpaste.org/sScA
kristian_on_linu has quit [Ping timeout: 240 seconds]
chamunks has joined #ruby
<adam12>
deviantfero: Which tool is reporting this? Flog?
<deviantfero>
Rubocop
<deviantfero>
it's just configured that way, I can't change it
<adam12>
deviantfero: I'd probably try breaking up some of the conditionals into smaller methods with names.
<deviantfero>
but I wouldn't know how to edit it appropriately
<adam12>
deviantfero: ?
<deviantfero>
yeah, I guess so, I personally think it's a dumb rule in this case
<deviantfero>
but I have to abide by it
hiroaki has joined #ruby
<havenwood>
deviantfero: Extract a private method, like adam12 said, for: !measurement_event? && out_of_range?
s3nd1v0g1us has joined #ruby
<havenwood>
deviantfero: If it's not a measurement but is out of range, what do you call that?
<havenwood>
deviantfero: P.S. How can it be an active measurement event but not be a measurement event? That seems odd?
<adam12>
This might be another class as well. ClassifyAlert or something.
<havenwood>
Are not all active measurement events also measurement events?
gearnode has quit [Ping timeout: 246 seconds]
<deviantfero>
measurement event has state (closed, claimed, unclaimed)
<deviantfero>
so an active one is one that is not closed basically
<havenwood>
deviantfero: might active_measurement_event? be true and also measurement_event? false, then?
<havenwood>
deviantfero: Ah
<deviantfero>
I think if active is true, then measurement_event? is gonna be true as well
<havenwood>
deviantfero: okay, that makes sense - got it
<deviantfero>
awesome, havenwood your suggestion is what I was looking for
<deviantfero>
I have to come up with a name for it, but I'll manage
Technodrome has joined #ruby
<deviantfero>
thanks adam12 as well :)
<adam12>
yw!
ruurd has joined #ruby
ruurd has quit [Client Quit]
kristian_on_linu has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
cthulchu_ has joined #ruby
vincent_ has quit [Ping timeout: 246 seconds]
gdc_m has joined #ruby
GodFather has joined #ruby
gearnode has joined #ruby
gdc_m has quit [Ping timeout: 272 seconds]
weaksauce has joined #ruby
ua_ has quit [Ping timeout: 264 seconds]
vondruch has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
ua_ has joined #ruby
schne1der has joined #ruby
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
schne1der has quit [Quit: schne1der]
ignorand has quit [Ping timeout: 272 seconds]
RougeR has joined #ruby
macaronus has quit [Remote host closed the connection]
macaronus has joined #ruby
macaronus has quit [Max SendQ exceeded]
macaronus has joined #ruby
rwb has joined #ruby
jenrzzz has joined #ruby
missionary has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 256 seconds]
ua_ has quit [Ping timeout: 264 seconds]
ua_ has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
deviantfero has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
jenrzzz has joined #ruby
ruurd has quit [Client Quit]
cincy_kal has joined #ruby
<cincy_kal>
When having multiple rails apps running with sidekiq, is it best to run multiple redis as well? or just use different redis queues?
jenrzzz has quit [Ping timeout: 264 seconds]
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 240 seconds]
deviantfero has joined #ruby
gix has joined #ruby
cincy_kal has quit [Quit: Connection closed]
shtirlic has quit [Ping timeout: 246 seconds]
shtirlic has joined #ruby
deviantfero has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
ur5us has joined #ruby
ruurd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
ritsch_master has joined #ruby
ruurd has joined #ruby
ruurd has quit [Ping timeout: 265 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]