havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview1: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
keypresser86 has quit []
keypresser86 has joined #ruby
nektro has quit [Remote host closed the connection]
nektro has joined #ruby
perrierjouet has quit [Quit: WeeChat 4.0.2]
perrierjouet has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 245 seconds]
teclator has joined #ruby
nektro has quit [Remote host closed the connection]
nektro has joined #ruby
MarvelousWololo has quit [Ping timeout: 260 seconds]
Linux_Kerio has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
swaggboi has quit [Ping timeout: 264 seconds]
caedmon has joined #ruby
MarvelousWololo has joined #ruby
Shortstop has joined #ruby
Linux_Kerio has quit [Ping timeout: 260 seconds]
caedmon has quit [Ping timeout: 244 seconds]
caedmon has joined #ruby
_ht has joined #ruby
Shortstop has quit [Quit: Client closed]
caedmon has quit [Ping timeout: 264 seconds]
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 264 seconds]
Sankalp- is now known as Sankalp
grenierm has joined #ruby
_ht has quit [Quit: _ht]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
infinityfye has joined #ruby
dviola has joined #ruby
Sankalp has quit [Ping timeout: 260 seconds]
joast has quit [Ping timeout: 264 seconds]
Sankalp has joined #ruby
joast has joined #ruby
dalan03822 has quit [Quit: dalan03822]
dalan03822 has joined #ruby
reset has quit [Quit: reset]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
whysthatso125070 has quit [Read error: Connection reset by peer]
whysthatso125070 has joined #ruby
konsolebox has joined #ruby
shokohsc510 has joined #ruby
Furai has quit [Quit: WeeChat 4.0.1]
shokohsc51 has quit [Ping timeout: 260 seconds]
shokohsc510 is now known as shokohsc51
MarvelousWololo has quit [Read error: Connection reset by peer]
Furai has joined #ruby
konsolebox has quit [Quit: Leaving]
Castan has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
Castan has quit [Quit: Best CPUs can count to infinity twice without being bugged out by zero division errors or whatnot.]
perrierjouet has quit [Quit: WeeChat 4.0.2]
perrierjouet has joined #ruby
grenierm has quit [Ping timeout: 246 seconds]
victori has quit [Ping timeout: 260 seconds]
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 252 seconds]
desnudopenguino1 is now known as desnudopenguino
c10l6 has quit [Quit: See ya! o/]
c10l6 has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 260 seconds]
desnudopenguino1 is now known as desnudopenguino
jess has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 244 seconds]
desnudopenguino1 is now known as desnudopenguino
user23 has joined #ruby
drainpipe has joined #ruby
drainpipe is now known as bdb
bdb is now known as be1m0nt
be1m0nt has joined #ruby
be1m0nt has quit [Changing host]
be1m0nt is now known as b3lm0nt
nkm has joined #ruby
b3lm0nt has quit [Quit: WeeChat 3.8]
b3lm0nt has joined #ruby
Lowly_Drainpipe has quit [Quit: WeeChat 3.8]
infinityfye has quit [Ping timeout: 245 seconds]
TomyWork has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 260 seconds]
desnudopenguino1 is now known as desnudopenguino
churib has joined #ruby
<churib> Hi, I am migrating from ruby 2.6 to 3.2 and have following "keyword arg deprecation" problem: [{foo:1, bar:2},{foo:10,bar:11},...].each do {|foo:,bar:| yaddayadda(foo,bar)}
<churib> Is there an easy/short/clever trick to use this pattern with a newer ruby version?
infinityfye has joined #ruby
drainpipe has joined #ruby
drainpipe is now known as be1m0nt
be1m0nt has joined #ruby
be1m0nt has quit [Changing host]
nkm has quit [Ping timeout: 246 seconds]
b3lm0nt has quit [Quit: WeeChat 3.8]
b3lm0nt has joined #ruby
b3lm0nt has quit [Client Quit]
be1m0nt has quit [Quit: WeeChat 3.8]
drainpipe has joined #ruby
drainpipe has joined #ruby
drainpipe has quit [Changing host]
drainpipe is now known as be1m0nt
be1m0nt is now known as b3lm0nt
b3lm0nt has quit [Client Quit]
b3lm0nt has joined #ruby
b3lm0nt has quit [Client Quit]
b3lm0nt has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 246 seconds]
desnudopenguino1 is now known as desnudopenguino
churib has quit [Quit: Client closed]
user23 has quit [Remote host closed the connection]
keypresser86 has quit [Ping timeout: 260 seconds]
infinityfye has quit [Quit: Leaving]
nona has quit [Quit: reboot]
nona has joined #ruby
Linux_Kerio has joined #ruby
caedmon has joined #ruby
reset has joined #ruby
Sankalp has quit [Ping timeout: 246 seconds]
_ht has joined #ruby
gr33n7007h has quit [Ping timeout: 244 seconds]
gr33n7007h has joined #ruby
Sankalp has joined #ruby
MarvelousWololo has joined #ruby
gr33n7007h has quit [Ping timeout: 245 seconds]
gr33n7007h has joined #ruby
TheCatCollective has quit [Quit: Meow Meow Meow Meow Meow Meow Meow Meow]
TheCatCollective has joined #ruby
teclator has quit [Ping timeout: 260 seconds]
<havenwood> You can prefix a method with `ruby2_keywords` or use the Ruby 3 syntax.
<ox1eef_> Good to know, but they left.
shokohsc51 has quit [Ping timeout: 244 seconds]
shokohsc51 has joined #ruby
konsolebox has joined #ruby
Sankalp has quit [Ping timeout: 245 seconds]
polishdub has quit [Remote host closed the connection]
Sankalp has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
polishdub has joined #ruby
_ht has quit [Remote host closed the connection]
polishdub has quit [Remote host closed the connection]
konsolebox has quit [Quit: Leaving]
konsolebox has joined #ruby
howdoi has joined #ruby
konsolebox has quit [Quit: Leaving]
secret11 has joined #ruby
Sankalp has quit [Ping timeout: 260 seconds]
paulmcquad has joined #ruby
paulmcquad has quit [Client Quit]
goldfish has joined #ruby
Sankalp has joined #ruby
goldfish has quit [Read error: Connection reset by peer]
goldfish has joined #ruby
shokohsc516 has joined #ruby
<havenwood> ox1eef_: Figured they might read the backlog, but maybe that's overly optimistic?
shokohsc51 has quit [Ping timeout: 245 seconds]
shokohsc516 is now known as shokohsc51
<ox1eef_> If they were of those who idled constantly, that's reasonable. Anyway, good general knowledge to share so no harm.
<johnjaye> is it guaranteed string replacement does the first occurrence?
<johnjaye> i.e. s="abcabc" and s["a"]="v" it should be guaranteed to be "vbcabc"
<johnjaye> i come from the land of C where saying a+b is not guaranteed to add a and b. or even make sense sometimes
<weaksauc_> johnjaye probably but you'd want to look at the source to be certain
<johnjaye> meaning ruby is a reference implementation?
<johnjaye> as in, what is the correct behavior is just what it is
<ox1eef_> s[0] = "v"
<ox1eef_> That is a sure thing, and clearer IMO.
<ox1eef_> s[s.index("a")] = "v"
<ox1eef_> Other option.
<weaksauc_> johnjaye i mean't the docs
<johnjaye> oh ok
<leftylink> therefore, first instance is guaranteed
<leftylink> although, philosoraptor
caedmon has quit [Ping timeout: 240 seconds]
<ox1eef_> I think that's a stable behavior you can rely on. Ruby won't randomly replacing the 2nd, 3rd, etc occurrance. That would be too bizarre.
<ox1eef_> Although, personally, I would stick with number indexes.
<leftylink> "since it's been in my house my life has descended into pure chaos"
<johnjaye> I probably shouldn't compare ruby to C. but it's on my brain. in the land of C nothing is guaranteed and anything can be a trap-door at any time.
<johnjaye> so i ask silly questions like this.
<ox1eef_> Indeed.
<ox1eef_> Indeed to the dangerous nature of C that is.
<johnjaye> "Oh you wanted to use ++ twice in the same expression? UNDEFINED!"
<johnjaye> whereas ruby always seems like it just knows what i want before i even ask
<ox1eef_> Ruby is a safe language. You have to work hard to shoot yourself in the foot, where as with C you have to work hard to not shoot yourself in the foot.
<ox1eef_> Kind of changes a bit in the context of the web, but even then, it is relatively safe.
<johnjaye> what is a "dangerous" web language
<johnjaye> php?
<ox1eef_> CGI + C
<johnjaye> fair enough
goldfish has quit [Read error: Connection reset by peer]
goldfish_ has joined #ruby
goldfish_ has quit [Remote host closed the connection]
phreak has quit [Ping timeout: 240 seconds]
m_antis has joined #ruby
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
secret11 has quit [Quit: Best CPUs can count to infinity twice without being bugged out by zero division errors or whatnot.]
ribeiro has joined #ruby
TomyLobo has joined #ruby
keypresser86 has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
leah2 has quit [Ping timeout: 264 seconds]
teclator has joined #ruby
leah2 has joined #ruby
Linux_Kerio has quit [Ping timeout: 244 seconds]
teclator has quit [Ping timeout: 260 seconds]
shokohsc51 has quit [Read error: Connection reset by peer]
shokohsc51 has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 260 seconds]
swaggboi has joined #ruby