havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.1, 2.6.6, 2.5.8: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
gix has quit [Ping timeout: 260 seconds]
TCZ has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 272 seconds]
elxbarbosa has joined #ruby
<elxbarbosa> hey, how I can call an instance method by using an string? in C# we do GetMethod("doThat")
drincruz has quit [Ping timeout: 258 seconds]
<baweaver> send to call
<elxbarbosa> while doThat is a instance method
<baweaver> method(:name) to get it as a proc
TCZ has joined #ruby
<baweaver> send(:do_something)
Scient has joined #ruby
<baweaver> Also Ruby tends to prefer snake_case
my_dude has joined #ruby
<elxbarbosa> baweaver: okay, almost there. and what about methods with arguments?
<elxbarbosa> send(:do_something(a,b))
<baweaver> send(:a_method, 1, 2, 3)
my_dude has quit [Client Quit]
<elxbarbosa> baweaver: ooooooooooooohhhhhhh, awesome. Thanks
<baweaver> Though chances are you don't need send, what're you up to?
my_dude has joined #ruby
<baweaver> In general you want to go light on the metaprogramming or dynamics
<elxbarbosa> baweaver: fair. just learning it :)
<elxbarbosa> for the fun
Scient has quit [Ping timeout: 260 seconds]
<havenwood> elxbarbosa: When you go to use #send, consider instead using #public_send to respect public interface.
<havenwood> elxbarbosa: And like baweaver said, first consider not using it. :)
<elxbarbosa> oss_projects[language].each { |project| send(action, info(project, language)) }
<havenwood> elxbarbosa: oss_projects[language].each { |project| public_send(action, info(project, language)) }
Scient has joined #ruby
<elxbarbosa> havenwood: its a simple call
<elxbarbosa> one thing cool in c# is doing lambda anywhere like I would like to { |a| lambda { b = a * 3; print b}}
<elxbarbosa> no luck so far
<havenwood> elxbarbosa: I'm assuming that `action` there is dynamic?
<elxbarbosa> havenwood: yes
<havenwood> elxbarbosa: You can do a lambda anywhere in Ruby? What's the holdup?
<elxbarbosa> havenwood: yes, its a parameter of the method it is in
<elxbarbosa> havenwood: its probably I still did not get ruby lambda :)
<havenwood> elxbarbosa: FWIW, here's a bit of code showing the difference between blocs, procs, and lambdas in Ruby.
<elxbarbosa> havenwood: thanks, saving it :)
<havenwood> elxbarbosa: Nice!
<havenwood> elxbarbosa: You might consider extracting `data` to a `Data` constant here: https://gitlab.com/elxbarbosa/cero/-/blob/main/lib/cero/sections/operations/oss.rb#L27
<havenwood> elxbarbosa: At the `class Oss` level then a `Data = Struct.new` and `Data.new`.
<elxbarbosa> ah, indeed, I recall it in metz book
<havenwood> elxbarbosa: That'll create a single struct class instead of many anonymous structs.
<havenwood> elxbarbosa: #mdkir_p seems nice in place of the unless statement: https://gitlab.com/elxbarbosa/cero/-/blob/main/lib/cero/sections/operations/oss.rb#L33
<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]
rafadc has quit [Quit: ZNC - https://znc.in]
rafadc has joined #ruby
bamdad has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
zacts has joined #ruby
bougyman has quit [Ping timeout: 260 seconds]
evdubs has quit [Ping timeout: 260 seconds]
znz_jp has quit [Ping timeout: 260 seconds]
s_ has quit [Ping timeout: 260 seconds]
Iambchop has quit [Ping timeout: 260 seconds]
`brian has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
duderonomy has joined #ruby
znz_jp0 has joined #ruby
bougyman_ has joined #ruby
Iambchop has joined #ruby
`brian_ has joined #ruby
hays has joined #ruby
bamdad has joined #ruby
zacts has joined #ruby
my_dude has joined #ruby
Scient has joined #ruby
ur5us_ has joined #ruby
meinside has joined #ruby
elxbarbosa has joined #ruby
gueorgui has joined #ruby
s3nd1v0g1us has joined #ruby
BTRE has joined #ruby
ChrisBr has joined #ruby
Fenhl has joined #ruby
afisher has joined #ruby
CrazyEddy has joined #ruby
rann has joined #ruby
kozowu has joined #ruby
Atro has joined #ruby
AutomationD has joined #ruby
integral has joined #ruby
itok has joined #ruby
r3my has joined #ruby
kristian_on_linu has joined #ruby
dhollinger has joined #ruby
madhatter has joined #ruby
lipoqil has joined #ruby
TheMoonMaster has joined #ruby
dputtick has joined #ruby
fowl has joined #ruby
peteretep has joined #ruby
alexherbo2 has joined #ruby
lightstalker has joined #ruby
Romain[m]1 has joined #ruby
sagax has joined #ruby
Rudd0 has joined #ruby
cd has joined #ruby
Nowaker has joined #ruby
dualfade has joined #ruby
imode has joined #ruby
cnsvc has joined #ruby
SunWuKung has joined #ruby
duckpuppy has joined #ruby
vondruch has joined #ruby
donofrio has joined #ruby
ruurd has joined #ruby
ellcs has joined #ruby
x0n has joined #ruby
lxsameer has joined #ruby
zenspider has joined #ruby
deimos_ has joined #ruby
jhass has joined #ruby
tubbo has joined #ruby
iNs has joined #ruby
Fusl has joined #ruby
weaksauce has joined #ruby
reyfi9e has joined #ruby
Milos has joined #ruby
chouhoulis has joined #ruby
olblak has joined #ruby
ua has joined #ruby
apotheon has joined #ruby
creat has joined #ruby
dviola has joined #ruby
r34lp0w3r[m] has joined #ruby
cadeskywalker has joined #ruby
sevvie has joined #ruby
m27frogy has joined #ruby
exkith has joined #ruby
teardown has joined #ruby
endorama has joined #ruby
CustosLimen has joined #ruby
Xiti has joined #ruby
clinth has joined #ruby
factormystic has joined #ruby
greypack has joined #ruby
zapata has joined #ruby
leah2 has joined #ruby
axsuul has joined #ruby
DTZUZU has joined #ruby
mozzarella has joined #ruby
kinduff4 has joined #ruby
bvdw has joined #ruby
lmat has joined #ruby
yxhuvud has joined #ruby
cognemo has joined #ruby
Mrgoose has joined #ruby
MrCrackPot has joined #ruby
cow[moo] has joined #ruby
olspookishmagus has joined #ruby
arooni_team_b has joined #ruby
stan has joined #ruby
shansen has joined #ruby
turt2live has joined #ruby
hsiktas[m] has joined #ruby
dka has joined #ruby
sepp2k has joined #ruby
nod0n[m] has joined #ruby
linuus[m] has joined #ruby
execat[m] has joined #ruby
justache has joined #ruby
englishm has joined #ruby
kevinsjoberg has joined #ruby
Net has joined #ruby
entel has joined #ruby
Chew has joined #ruby
gorsuch has joined #ruby
Liothen has joined #ruby
en10n has joined #ruby
ReinH__ has joined #ruby
ec has joined #ruby
jrhorn424 has joined #ruby
KnownSyntax has joined #ruby
kermit has joined #ruby
Lewix has joined #ruby
maxmanders has joined #ruby
podman has joined #ruby
hahuang65 has joined #ruby
darthThorik has joined #ruby
jerme_ has joined #ruby
siasmj has joined #ruby
joast has joined #ruby
eldritch has joined #ruby
arthurnn has joined #ruby
Azure has joined #ruby
baweaver has joined #ruby
johndotpub has joined #ruby
Tempesta has joined #ruby
ricer2 has joined #ruby
marens has joined #ruby
robotmay has joined #ruby
coniptor has joined #ruby
`Alison has joined #ruby
Rounin has joined #ruby
greenbagels has joined #ruby
ropeney_ has joined #ruby
rapha has joined #ruby
jmcgnh has joined #ruby
clemens3 has joined #ruby
sh7d has joined #ruby
ule has joined #ruby
go|dfish has joined #ruby
EvilJStoker has joined #ruby
andremedeiros has joined #ruby
GGMethos has joined #ruby
timmow has joined #ruby
Hien_ has joined #ruby
Rush__ has joined #ruby
Rush_ has joined #ruby
Querens_ has joined #ruby
coffeejunk has joined #ruby
graphicsv has joined #ruby
Spitfire has joined #ruby
nyuszika7h has joined #ruby
ghormoon_ has joined #ruby
alnk has joined #ruby
jetpack_joe has joined #ruby
rhe has joined #ruby
Mikaela has joined #ruby
ruby[bot] has joined #ruby
vqrs has joined #ruby
dan64 has joined #ruby
_whitelogger has joined #ruby
davispuh has joined #ruby
davispuhh has quit [Ping timeout: 240 seconds]
kristian_on_linu has quit [Remote host closed the connection]
jenrzzz has joined #ruby
alfiemax has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
elxbarbosa has quit [Remote host closed the connection]
dhollinger has quit [Ping timeout: 260 seconds]
dhollinger has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
cthulchu has quit [Ping timeout: 240 seconds]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
wallace_mu has quit [Remote host closed the connection]
ChmEarl has quit [Quit: Leaving]
adu has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 240 seconds]
my_dude has quit [Ping timeout: 272 seconds]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
cthulchu has joined #ruby
akem has quit [Quit: Leaving]
zacts has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ruby
donofrio has quit [Remote host closed the connection]
znz_jp0 has quit [Remote host closed the connection]
znz_jp has joined #ruby
akem has joined #ruby
teardown has quit [Ping timeout: 256 seconds]
elxbarbosa has joined #ruby
chouhoulis has quit [Remote host closed the connection]
adu has quit [Quit: adu]
alfiemax has joined #ruby
krma has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
justache has quit [Remote host closed the connection]
justache has joined #ruby
kaivai has quit [Ping timeout: 240 seconds]
kaivai has joined #ruby
jenrzzz has joined #ruby
cthulchu has quit [Ping timeout: 272 seconds]
teardown has joined #ruby
ur5us_ has quit [Ping timeout: 240 seconds]
bocaneri has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
bocaneri has quit [Max SendQ exceeded]
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
jmcgnh has quit [Ping timeout: 265 seconds]
wallace_mu has joined #ruby
jmcgnh has joined #ruby
kaivai has quit [Ping timeout: 256 seconds]
kaivai has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
bocaneri has joined #ruby
Rudd0 has quit [Ping timeout: 260 seconds]
wallace_mu has quit [Ping timeout: 260 seconds]
teardown has quit [Ping timeout: 272 seconds]
kaivai has quit [Ping timeout: 260 seconds]
elxbarbosa has quit [Ping timeout: 272 seconds]
hiroaki has quit [Ping timeout: 260 seconds]
kaivai has joined #ruby
schne1der has joined #ruby
MrCrackPot has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
akem has quit [Ping timeout: 260 seconds]
yokel has quit [Ping timeout: 258 seconds]
yokel has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
duderonomy has quit [Ping timeout: 264 seconds]
cnsvc has quit [Ping timeout: 240 seconds]
ByronJohnson has quit [Ping timeout: 265 seconds]
ByronJohnson has joined #ruby
Colpop4323 has joined #ruby
duderonomy has joined #ruby
cnsvc has joined #ruby
weaksauce has quit [Ping timeout: 272 seconds]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
lxsameer has joined #ruby
cd has quit [Quit: cd]
jenrzzz has joined #ruby
wallace_mu has joined #ruby
ur5us_ has joined #ruby
wallace_mu has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
akem has joined #ruby
imode has quit [Ping timeout: 265 seconds]
alfiemax has joined #ruby
dionysus69 has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
howdoi has quit [Quit: Connection closed for inactivity]
cnsvc has quit [Ping timeout: 240 seconds]
TCZ has joined #ruby
nofxx_ has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
Rudd0 has joined #ruby
ur5us_ has quit [Ping timeout: 260 seconds]
akem has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch_ has joined #ruby
kristian_on_linu has joined #ruby
vondruch has quit [Ping timeout: 265 seconds]
vondruch_ is now known as vondruch
Rudd0^ has joined #ruby
Rudd0 has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
braincrash has joined #ruby
Benett has quit [Remote host closed the connection]
Benett has joined #ruby
Thaodan has quit [Ping timeout: 244 seconds]
stonerl has quit [Remote host closed the connection]
Thaodan has joined #ruby
madhatter has quit [Ping timeout: 240 seconds]
stonerl has joined #ruby
Swyper has joined #ruby
madhatter has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adu has joined #ruby
exkith has quit [Read error: No route to host]
banisterfiend has joined #ruby
Colpop4323 has quit [Ping timeout: 256 seconds]
Colpop4323 has joined #ruby
BTRE has quit [Remote host closed the connection]
akem has joined #ruby
_aeris_ has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
iNs has quit [Ping timeout: 240 seconds]
_aeris_ has joined #ruby
iNs has joined #ruby
smotchkkiss has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
TCZ has quit [Quit: Leaving]
drincruz has joined #ruby
exkith has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
Mikaela has quit [Quit: Ping timeout (120 seconds)]
Mikaela has joined #ruby
bmurt has joined #ruby
Emmanuel_ChanelW has joined #ruby
joshcom has joined #ruby
akem has quit [Quit: Leaving]
wallace_mu has joined #ruby
alfiemax has quit [Remote host closed the connection]
donofrio has joined #ruby
yxhuvud has quit [Read error: Connection reset by peer]
mbrndtgn has quit [Quit: The Lounge - https://thelounge.chat]
yxhuvud has joined #ruby
mbrndtgn has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
lxsameer has quit [Ping timeout: 272 seconds]
drincruz has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
lxsameer has joined #ruby
Emmanuel_ChanelW has quit [Quit: Leaving]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Client Quit]
ellcs1 has joined #ruby
s3nd1v0g1us has joined #ruby
alexherbo25 has joined #ruby
bougyman_ is now known as bougyman
zacts has joined #ruby
s2013 has joined #ruby
banisterfiend has joined #ruby
wallace_mu has quit []
wallace_mu has joined #ruby
FetidToot has joined #ruby
impermanence has joined #ruby
chouhoulis has joined #ruby
zacts has quit [Quit: leaving]
chouhoulis has quit [Ping timeout: 260 seconds]
akem has joined #ruby
ChmEarl has joined #ruby
teardown has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
zacts has joined #ruby
alexherbo25 has quit [Quit: The Lounge - https://thelounge.chat]
alfiemax has joined #ruby
zacts_ has joined #ruby
zacts has quit [Ping timeout: 264 seconds]
alexherbo25 has joined #ruby
Eiam has joined #ruby
zacts_ has quit [Quit: leaving]
alexherbo25 has quit [Client Quit]
zacts has joined #ruby
cthulchu has joined #ruby
howdoi has joined #ruby
<hays> is there something i can reach for in ruby that would give me a hashable tuple with strict ordering
<hays> eg.. (1, "foo", 0.5)
<hays> or is that something i'd have to build
ellcs1 has quit [Ping timeout: 240 seconds]
teardown has quit [Ping timeout: 260 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
tuttzza has joined #ruby
cd has joined #ruby
smotchkkiss has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stonerl has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
stonerl has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
<yxhuvud> everything in Ruby is hashable. in some cases you might want to implement the hash yourself if the default isn't good enough.
<yxhuvud> And we don't have tuples. But you might want to look into the Array, Struct or Openstruct classes.
Colpop4323 has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
lucasb has joined #ruby
ellcs1 has joined #ruby
Emmanuel_Chanel has joined #ruby
ellcs1 has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.8]
vondruch has quit [Ping timeout: 272 seconds]
robba_n33t has joined #ruby
adu has quit [Quit: adu]
alfiemax has quit [Remote host closed the connection]
<robba_n33t> Having trouble setting up jekyll https://gist.github.com/roobnloo/441104552d6f46ab82994441df5c288c
<robba_n33t> jekyll new can't find the gem, however I do have the right version installed
zacts has quit [Quit: leaving]
ua has quit [Ping timeout: 256 seconds]
ua has joined #ruby
<adam12> robba_n33t: Are you passing the version for a specific reason?
<robba_n33t> yes, it looks like that one is whats supported with github pages
<adam12> robba_n33t: What's in your Gemfile?
<robba_n33t> gem 'jekyll', '3.9.0'
<robba_n33t> gem 'github-pages', "~> 207", group: :jekyll_plugins
<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.
<rg03> sounds interesting
<rg03> in a way, it feels kind of the same
<rg03> Ruby i meant :)
<rg03> the community has largely settled on the tools they use
Swyper has joined #ruby
<rg03> so i guess not a whole new lot of interesting libraries or approaches
<havenwood> rg03: The stdlib is being paired down, not built up, yeah. Async would probably be added to stdlib otherwise. :)
<rg03> right i talked to the author of async over twitter
<rg03> he seems cool
<havenwood> Yeah, ioquatix is nice to chat with.
<rg03> i'm seeing python get a lot of attention these days
<havenwood> He is a smart and pleasant fellow.
<rg03> indeed
<havenwood> rg03: Well, we can use those popular Python functions with PyCall :P https://github.com/mrkn/pycall.rb#readme
<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.
<rg03> right, right, ruby still has its place i think
<rg03> but ive seen python find adoption among new programmers especially since many recommend it i guess
<havenwood> Yeah, Python has done well in schools.
<rg03> yeah
<havenwood> Folk who learn Python in school tend to pick up Ruby quickly.
<havenwood> So good for all.
ec is now known as ELLIOTTCABLE
ELLIOTTCABLE is now known as ec
<rg03> true theyre similar
ramfjord has quit [Ping timeout: 260 seconds]
<baweaver> ec: ohai, didn't know you were on IRC here
<ec> we know eachother?
<baweaver> baweaver == keystonelemur (Twitter)
<ec> oh yo lol
<baweaver> We've interacted in the past
<ec> yeah, i don't IRC much anymore; moved my channels to Discord a few years ago for the most part
drincruz has quit [Ping timeout: 240 seconds]
Swyper has quit [Read error: Connection reset by peer]
tuttza has quit [Ping timeout: 256 seconds]
akem_ has joined #ruby
akem has quit [Ping timeout: 256 seconds]
Swyper has joined #ruby
ramfjord has joined #ruby