<havenwood>
elxbarbosa: I'd extract constant for `archive_these` too.
<havenwood>
(And #freeze it for good measure.)
my_dude has quit [Quit: ZZZzzz…]
<elxbarbosa>
havenwood: are those two supposed to be outside of methods?
my_dude has joined #ruby
my_dude has quit [Client Quit]
<elxbarbosa>
I heard someone the very same about python collections
<havenwood>
elxbarbosa: Yeah, right inside `class Oss` you can do `Data = ...` and `ARCHIVE_THESE = ...`.
<elxbarbosa>
havenwood: haha, thanks!
<havenwood>
elxbarbosa: For #run, you can: oss_projects.each do |language, project|
<havenwood>
I mean: |language, projects|
<havenwood>
oss_projects.each do |language, projects|; puts language; projects.each { |project|
<havenwood>
elxbarbosa: That ^ way you can skip the key lookup.
<elxbarbosa>
havenwood: yep, that one I didnt notice that one. Most of that code is from a week ago, when I was still in the beginning of well grounded :)
<elxbarbosa>
I have to rethink it all
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
ur5us_ has quit [Ping timeout: 260 seconds]
TCZ has quit [Quit: Leaving]
<elxbarbosa>
I almost forgot about .freeze... :)
<elxbarbosa>
evdubs has quit [Quit: Leaving]
evdubs has joined #ruby
meinside has joined #ruby
ur5us_ has joined #ruby
Swyper has quit [Remote host closed the connection]
drincruz has joined #ruby
bmurt has joined #ruby
my_dude has joined #ruby
nicholaslyang has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicholaslyang has quit [Ping timeout: 258 seconds]
<adam12>
robba_n33t: Using `bundle exec`, you dont' need to provide the version. It uses the one for the Gemfile.
<robba_n33t>
oh wow, thanks!!
ramfjord has joined #ruby
kristian_on_linu has joined #ruby
alfiemax has joined #ruby
<robba_n33t>
totally solved the program, thanks again
<robba_n33t>
problem**
<robba_n33t>
but also program
robba_n33t has left #ruby [#ruby]
adu has joined #ruby
BTRE has joined #ruby
Technodrome has joined #ruby
tuttza has joined #ruby
gix has joined #ruby
dualfade has quit [Quit: leaving]
tuttza has quit [Quit: Leaving]
dualfade has joined #ruby
tuttzza has quit []
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
teclator has quit [Ping timeout: 272 seconds]
CalimeroTeknik has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
CalimeroTeknik has joined #ruby
my_dude has joined #ruby
my_dude has quit [Quit: ZZZzzz…]
baojg has quit [Remote host closed the connection]
cnsvc has joined #ruby
baojg has joined #ruby
riceandbeans has quit [Quit: leaving]
dualfade has quit [Ping timeout: 256 seconds]
dualfade has joined #ruby
davispuh has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
adu has quit [Quit: adu]
tuttza has joined #ruby
adu has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
CrazyEddy has quit [Ping timeout: 240 seconds]
davispuh has quit [Ping timeout: 272 seconds]
hiroaki has joined #ruby
alfiemax has quit [Remote host closed the connection]
davispuh has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
evdubs has joined #ruby
evdubs_ has quit [Ping timeout: 240 seconds]
lucasb has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
weaksauce has joined #ruby
Rudd0^ has quit [Ping timeout: 260 seconds]
hiroaki has quit [Ping timeout: 272 seconds]
lxsameer has quit [Ping timeout: 272 seconds]
Xiti has quit [Ping timeout: 246 seconds]
Xiti has joined #ruby
postmodern has joined #ruby
Rudd0 has joined #ruby
cnsvc has quit [Quit: WeeChat 2.9]
lxsameer has joined #ruby
baojg_ has joined #ruby
baojg has quit [Ping timeout: 260 seconds]
schne1der has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
KnownSyntax has quit [Ping timeout: 244 seconds]
Lewix has quit [Ping timeout: 244 seconds]
maxmanders has quit [Ping timeout: 244 seconds]
Pillus has quit [Ping timeout: 244 seconds]
graphicsv has quit [Ping timeout: 244 seconds]
jnoon has quit [Ping timeout: 244 seconds]
jetpack_joe has quit [Ping timeout: 244 seconds]
podman has quit [Ping timeout: 244 seconds]
JayDoubleu has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 244 seconds]
Liothen has quit [Ping timeout: 240 seconds]
MentalPower has quit [Ping timeout: 240 seconds]
kermit has quit [Ping timeout: 240 seconds]
coffeejunk has quit [Ping timeout: 244 seconds]
Chew has quit [Ping timeout: 260 seconds]
en10n has quit [Ping timeout: 260 seconds]
jhill has quit [Ping timeout: 260 seconds]
gajus has quit [Ping timeout: 260 seconds]
d10n-work has quit [Ping timeout: 244 seconds]
cstrahan has quit [Ping timeout: 244 seconds]
BuildTheRobots has quit [Ping timeout: 244 seconds]
ec has quit [Ping timeout: 244 seconds]
darthThorik has quit [Ping timeout: 244 seconds]
Phoebus has quit [Ping timeout: 244 seconds]
afisher has quit [Ping timeout: 260 seconds]
CustosLimen has quit [Ping timeout: 260 seconds]
gorsuch has quit [Ping timeout: 260 seconds]
grvgr has quit [Ping timeout: 260 seconds]
manveru has quit [Ping timeout: 260 seconds]
kwilczynski has quit [Ping timeout: 260 seconds]
jnoon has joined #ruby
itok has quit [Ping timeout: 272 seconds]
KnownSyntax has joined #ruby
integral has quit [Ping timeout: 260 seconds]
d0liver has quit [Ping timeout: 260 seconds]
Mutsuhito has quit [Ping timeout: 260 seconds]
darthThorik has joined #ruby
podman has joined #ruby
graphicsv has joined #ruby
Chew has joined #ruby
Pillus has joined #ruby
Phoebus has joined #ruby
maxmanders has joined #ruby
hahuang65 has joined #ruby
kermit has joined #ruby
integral has joined #ruby
manveru has joined #ruby
d0liver has joined #ruby
Liothen has joined #ruby
cstrahan has joined #ruby
ec has joined #ruby
Mutsuhito has joined #ruby
AutomationD has quit [Ping timeout: 272 seconds]
afisher has joined #ruby
Lewix has joined #ruby
d10n-work has joined #ruby
BuildTheRobots has joined #ruby
jetpack_joe has joined #ruby
coffeejunk has joined #ruby
grvgr has joined #ruby
AutomationD has joined #ruby
MentalPower has joined #ruby
gorsuch has joined #ruby
JayDoubleu has joined #ruby
gajus has joined #ruby
itok has joined #ruby
jhill has joined #ruby
kwilczynski has joined #ruby
en10n has joined #ruby
CustosLimen has joined #ruby
ur5us_ has joined #ruby
joshcom has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imode has joined #ruby
bmurt has joined #ruby
bmurt has quit [Client Quit]
smotchkkiss has joined #ruby
ellcs1 has joined #ruby
redlegion has joined #ruby
ramfjord has joined #ruby
vondruch has joined #ruby
baojg has joined #ruby
baojg_ has quit [Ping timeout: 260 seconds]
ellcs1 has quit [Ping timeout: 240 seconds]
my_dude has joined #ruby
<dorian>
hey question: say i need to know whether an argument has been explicitly passed to a method call or supplied as a default
<dorian>
versus say the actual arity
ramfjord has quit [Ping timeout: 256 seconds]
<jhass>
in my opinion then you need to reconsider your API or at least your default value a bit :)
smotchkkiss has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MentalPower has quit [Ping timeout: 258 seconds]
<jhass>
I ran into this desire a couple of times and it always led me to take a step back and reconsider what I'm doing, subsequently leading to a cleaner API, or at least to the verdict that I can treat the default and the explicit value the same just fine without any confusion. In the case where that's not possible, I usually went to split the behaviors into distinct methods and found the result more clear
<jhass>
and intention revealing
ramfjord has joined #ruby
MentalPower has joined #ruby
<jrhorn424>
i'd be interested to discover if that's possible, just out of morbid curiousity
thecoffemaker has quit [Ping timeout: 240 seconds]
thecoffemaker has joined #ruby
<dorian>
hmmm how about infix assignment operators
<dorian>
like how does += work
<dorian>
for a foo= method
Technodrome has joined #ruby
<havenwood>
dorian: Like Comparable, it *just works*, but instead of defining #<=> you define the getter and setter method.
samokoder has joined #ruby
CrazyEddy has joined #ruby
Inoperable has quit [Excess Flood]
Inoperable has joined #ruby
<dorian>
so if i define foo and foo= and then invoke foo += 31337 that will just call foo=(foo() + 31337) ?
kristian_on_linu has quit [Remote host closed the connection]
<havenwood>
dorian: Yes, but `self.foo +=` to avoid setting a local variable rather than using the setter method.
<dorian>
what does it do if there's more than one argument?
<havenwood>
dorian: You can't use `self.foo = ` syntactic sugar with multiple arguments.
<havenwood>
dorian: You have to: foo.=(foo, bar)
<dorian>
aha
<havenwood>
dorian: Sugar assumes just the single value argument for assignment.
<dorian>
yeah figures cause otherwise how would it know what you mean
lucasb has quit [Quit: Connection closed for inactivity]
<dorian>
hmm
<dorian>
so basically what i'm doing is implementing a graph drawing algorithm and i've gone and made a toy directed graph implementation with desirable characteristics for calculating/memoizing a bunch of intermediate values for rendering so i don't have to screw around reconciling a zillion existing digraph implementations
<dorian>
and now just trying to figure out what i want to do about said metadata
<dorian>
so like graph.node_meta node, key, value
<dorian>
(i suppose i could make an explicit Node class but so far a hash will do)
<dorian>
obviously graph.node(node)[whatever] would work but there is stuff in there i don't wanna expose
adu has quit [Quit: adu]
cnsvc has joined #ruby
adu has joined #ruby
itok has quit [Ping timeout: 240 seconds]
JayDoubleu has quit [Ping timeout: 240 seconds]
kermit has quit [Ping timeout: 240 seconds]
manveru has quit [Ping timeout: 240 seconds]
jerme_ has quit [Ping timeout: 244 seconds]
alnk has quit [Ping timeout: 244 seconds]
integral has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
gorsuch has quit [Read error: Connection reset by peer]
MentalPower has quit [Read error: Connection reset by peer]
Pillus has quit [Read error: Connection reset by peer]
jnoon has quit [Read error: Connection reset by peer]
afisher has quit [Ping timeout: 240 seconds]
darthThorik has quit [Ping timeout: 240 seconds]
Swyper has quit [Read error: Connection reset by peer]
coffeejunk has quit [Ping timeout: 260 seconds]
d0liver has quit [Ping timeout: 260 seconds]
redlegion has quit [Ping timeout: 260 seconds]
AutomationD has quit [Ping timeout: 260 seconds]
jetpack_joe has quit [Ping timeout: 260 seconds]
Mutsuhito has quit [Ping timeout: 260 seconds]
d10n-work has quit [Ping timeout: 260 seconds]
cstrahan has quit [Ping timeout: 260 seconds]
ec has quit [Ping timeout: 260 seconds]
KnownSyntax has quit [Ping timeout: 260 seconds]
Phoebus has quit [Ping timeout: 260 seconds]
BuildTheRobots has quit [Ping timeout: 272 seconds]
graphicsv has quit [Ping timeout: 272 seconds]
pitastrudl has quit [Ping timeout: 260 seconds]
howdoi has quit [Ping timeout: 240 seconds]
podman has quit [Ping timeout: 272 seconds]
Chew has quit [Ping timeout: 272 seconds]
peteretep has quit [Ping timeout: 272 seconds]
dputtick has quit [Ping timeout: 272 seconds]
r3my has quit [Ping timeout: 272 seconds]
alnk has joined #ruby
d0liver has joined #ruby
jetpack_joe has joined #ruby
Phoebus has joined #ruby
pitastrudl has joined #ruby
dputtick has joined #ruby
Chew has joined #ruby
darthThorik has joined #ruby
hahuang65 has joined #ruby
KnownSyntax has joined #ruby
kermit has joined #ruby
Swyper has joined #ruby
graphicsv has joined #ruby
Lewix has quit [Ping timeout: 258 seconds]
entel has quit [Ping timeout: 240 seconds]
gorsuch has joined #ruby
d10n-work has joined #ruby
integral has joined #ruby
MentalPower has joined #ruby
ec has joined #ruby
JayDoubleu has joined #ruby
manveru has joined #ruby
proc has quit [Ping timeout: 258 seconds]
peteretep has joined #ruby
afisher has joined #ruby
podman has joined #ruby
spizzo has joined #ruby
howdoi has joined #ruby
jerme_ has joined #ruby
Pillus has joined #ruby
AutomationD has joined #ruby
CustosLimen has quit [Ping timeout: 258 seconds]
cstrahan has joined #ruby
Lewix has joined #ruby
jnoon has joined #ruby
spizzo has left #ruby [#ruby]
entel has joined #ruby
r3my has joined #ruby
Mutsuhito has joined #ruby
coffeejunk has joined #ruby
itok has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
proc has joined #ruby
BuildTheRobots has joined #ruby
CustosLimen has joined #ruby
alnk has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
rg03 has joined #ruby
<rg03>
hello
<havenwood>
rg03: hi
<rg03>
hey man
<rg03>
it's good to see you still here
<havenwood>
my replacement model isn't yet able to join IRC, but she's eating smushed bananas so getting closer
braincrash has quit [Ping timeout: 260 seconds]
<havenwood>
she just turned 6 mo old, but hasn't yet demonstrated a clear preference between Python and Ruby ¯\_(ツ)_/¯
<rg03>
oh you had a kid?
<havenwood>
yup!
<rg03>
congrats :))
<havenwood>
thanks :)
<rg03>
what's going on in the ruby community lately
<havenwood>
rg03: Ruby 3 coming this Christmas.
<rg03>
it seems like irc is a great place to stay on top of that
<rg03>
i feel a bit disconnected
<rg03>
i heard that :)
<rg03>
i've seen Ractor being discussed as well
Swyper has quit [Read error: Connection reset by peer]
<havenwood>
rg03: Yeah, that'll be one of the bigger experimental features - with a hybrid of channel and actor paradigms.
<havenwood>
rg03: I've thought less about Python since other languages got nice WebSocket support.
alnk has joined #ruby
elcuervo has joined #ruby
<rg03>
yeah
<havenwood>
rg03: Python still has nicer GUI bindings and buffer protocols for big data. For the latter, there's a Ruby 3 proposal for a buffer protocol clone.