havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview3: 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!
Nahra has quit [Quit: leaving]
DaRock has joined #ruby
danielvu has quit [Quit: WeeChat 2.5]
sarink has quit [Remote host closed the connection]
sameerynho has quit [Ping timeout: 265 seconds]
ellcs has quit [Ping timeout: 252 seconds]
vondruch has joined #ruby
mroutis has quit [Ping timeout: 276 seconds]
sarink has joined #ruby
_phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
ellcs has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
nullheroes has joined #ruby
DTZUZU has quit [Quit: WeeChat 2.6]
_phaul has quit [Ping timeout: 265 seconds]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 245 seconds]
sarink has quit [Remote host closed the connection]
_phaul has joined #ruby
ltd has joined #ruby
svankmajer has joined #ruby
_phaul has quit [Ping timeout: 276 seconds]
TomyLobo has quit [Read error: Connection reset by peer]
solars has quit [Quit: Connection closed for inactivity]
chihhsin has joined #ruby
_phaul has joined #ruby
akem has joined #ruby
im0nde_ has joined #ruby
im0nde has quit [Ping timeout: 246 seconds]
_phaul has quit [Ping timeout: 276 seconds]
sarink has joined #ruby
_phaul has joined #ruby
sarink has quit [Remote host closed the connection]
_phaul has quit [Ping timeout: 265 seconds]
svankmajer has quit [Ping timeout: 265 seconds]
bsdband34 has quit [Remote host closed the connection]
_phaul has joined #ruby
sarink has joined #ruby
_phaul has quit [Ping timeout: 252 seconds]
akem2 has joined #ruby
_phaul has joined #ruby
akem2 has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
_phaul has quit [Ping timeout: 252 seconds]
_phaul has joined #ruby
sarink has quit [Remote host closed the connection]
_phaul has quit [Ping timeout: 250 seconds]
svankmajer has joined #ruby
DTZUZU has joined #ruby
znz_jp has joined #ruby
_phaul has joined #ruby
_phaul has quit [Ping timeout: 250 seconds]
fig-le-deunch has joined #ruby
skx86 has joined #ruby
sarink has joined #ruby
_phaul has joined #ruby
jenrzzz has joined #ruby
_phaul has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 276 seconds]
sarink has quit [Remote host closed the connection]
_phaul has joined #ruby
sarink has joined #ruby
davispuh has quit [Ping timeout: 276 seconds]
davispuh has joined #ruby
_phaul has quit [Ping timeout: 250 seconds]
svankmajer has quit [Ping timeout: 276 seconds]
turbo_choo has joined #ruby
duderonomy has quit [Ping timeout: 276 seconds]
_phaul has joined #ruby
duderonomy has joined #ruby
_phaul has quit [Ping timeout: 250 seconds]
sarink has quit [Remote host closed the connection]
sergioro has quit [Quit: leaving]
sarink has joined #ruby
_phaul has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
_phaul has quit [Ping timeout: 268 seconds]
turbo_choo has quit [Ping timeout: 240 seconds]
_phaul has joined #ruby
chalkmonster has joined #ruby
NODE has quit []
_phaul has quit [Ping timeout: 276 seconds]
donofrio has quit [Remote host closed the connection]
Benett has quit [Remote host closed the connection]
turbo_choo has joined #ruby
_phaul has joined #ruby
gix has quit [Ping timeout: 240 seconds]
_phaul has quit [Ping timeout: 276 seconds]
svankmajer has joined #ruby
_phaul has joined #ruby
Benett has joined #ruby
wallace_mu has joined #ruby
svankmajer has quit [Ping timeout: 250 seconds]
_phaul has quit [Ping timeout: 240 seconds]
wallace_mu has quit [Remote host closed the connection]
turbo_choo has quit [Quit: leaving]
turbo_choo has joined #ruby
sarink has quit [Remote host closed the connection]
NODE has joined #ruby
_phaul has joined #ruby
NODE has quit [Client Quit]
sarink has joined #ruby
NODE has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
sarink has quit [Remote host closed the connection]
_phaul has quit [Ping timeout: 252 seconds]
sarink has joined #ruby
_phaul has joined #ruby
Technodrome has joined #ruby
turbo_choo has quit [Ping timeout: 252 seconds]
bvdw has quit [Quit: Ping timeout (120 seconds)]
bvdw has joined #ruby
turbo_choo has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
<mjsir911> /buff/buffer punk
<mjsir911> whoopsies
sarink has quit [Ping timeout: 276 seconds]
svankmajer has joined #ruby
svankmajer has quit [Ping timeout: 276 seconds]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
svankmajer has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 250 seconds]
DTZUZO has joined #ruby
svankmajer has quit [Ping timeout: 265 seconds]
ellcs has quit [Ping timeout: 245 seconds]
sphex has quit [Read error: Connection reset by peer]
Nicmavr has quit [Read error: Connection reset by peer]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Nicmavr has joined #ruby
sphex has joined #ruby
jenrzzz has joined #ruby
chalkmonster has joined #ruby
ellcs has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
Xiti` has joined #ruby
greenhat_ has joined #ruby
NODE has quit [Quit: changing servers]
jenrzzz has quit [Ping timeout: 268 seconds]
NODE has joined #ruby
greenhat has quit [Ping timeout: 240 seconds]
cliluw has quit [Ping timeout: 240 seconds]
donofrio has joined #ruby
NODE has quit [Client Quit]
Xiti has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
sphex has quit [Ping timeout: 240 seconds]
NODE has joined #ruby
DTZUZO has joined #ruby
_phaul has quit [*.net *.split]
Technodrome has quit [*.net *.split]
DTZUZU has quit [*.net *.split]
nullheroes has quit [*.net *.split]
jinie has quit [*.net *.split]
houhoulis has quit [*.net *.split]
sauvin has quit [*.net *.split]
ccooke has quit [*.net *.split]
RiPuk_ has quit [*.net *.split]
orbyt_ has quit [*.net *.split]
devops has quit [*.net *.split]
CalimeroTeknik has quit [*.net *.split]
Mia has quit [*.net *.split]
yokel has quit [*.net *.split]
duckpuppy has quit [*.net *.split]
tekk has quit [*.net *.split]
lxsameer has quit [*.net *.split]
marens has quit [*.net *.split]
dinfuehr_ has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
gavlee has quit [*.net *.split]
nofxx has quit [*.net *.split]
agrecascino has quit [*.net *.split]
bhaak has quit [*.net *.split]
paraxial has quit [*.net *.split]
m27frogy has quit [*.net *.split]
rapha has quit [*.net *.split]
umjisus has quit [*.net *.split]
olspookishmagus has quit [*.net *.split]
nchambers has quit [*.net *.split]
teardown has quit [*.net *.split]
Arahael has quit [*.net *.split]
Rudolph has quit [*.net *.split]
edwardly has quit [*.net *.split]
pizzaiolo has quit [*.net *.split]
brer has quit [*.net *.split]
baweaver has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
pelegreno__ has quit [*.net *.split]
daed has quit [*.net *.split]
cranq has quit [*.net *.split]
vdl has quit [*.net *.split]
guardian has quit [*.net *.split]
phenom has quit [*.net *.split]
Rudd0 has quit [*.net *.split]
`Alison has quit [*.net *.split]
shanks8080 has quit [*.net *.split]
Radar has quit [*.net *.split]
Yuyu0 has quit [*.net *.split]
matled has quit [*.net *.split]
go|dfish has quit [*.net *.split]
olblak has quit [*.net *.split]
aspiers has quit [*.net *.split]
priodev has quit [*.net *.split]
ltp has quit [*.net *.split]
russt has quit [*.net *.split]
xMopx has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
JasonO has quit [*.net *.split]
Prira_ has quit [*.net *.split]
linuus has quit [*.net *.split]
sirecote has quit [*.net *.split]
thebetra2 has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
ErhardtMundt_ has quit [*.net *.split]
Davey has quit [*.net *.split]
cpallares has quit [*.net *.split]
swistak35 has quit [*.net *.split]
sphex has joined #ruby
fig-le-deunch has quit [Quit: Konversation terminated!]
mroutis has joined #ruby
sarink has joined #ruby
mroutis has quit [Ping timeout: 252 seconds]
sauvin has joined #ruby
wallace_mu has joined #ruby
sarink has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
sarink has joined #ruby
wallace_mu has quit [Ping timeout: 250 seconds]
sauvin has quit [Read error: Connection reset by peer]
sauvin has joined #ruby
dionysus69 has joined #ruby
romanblanco has quit [Ping timeout: 252 seconds]
mozzarella has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
donofrio has quit [Remote host closed the connection]
vrih has quit [Ping timeout: 265 seconds]
crella133 has joined #ruby
<crella133> &>> a = '5657'; b = a; b.gsub!('5', '4'); puts "a = #{a}, b = #{b}"
<rubydoc> # => a = 4647, b = 4647... check link for more (https://carc.in/#/r/87e1)
<crella133> Why does <gsub!> method affect 'a' here?
<crella133> ...... String has :clone method.
nixy37 has quit [Quit: The Lounge - https://thelounge.chat]
nixy37 has joined #ruby
crella133 has quit [Quit: crella133]
lineus has quit [Ping timeout: 260 seconds]
suukim has joined #ruby
lineus has joined #ruby
sarink has quit [Remote host closed the connection]
Inline has quit [Quit: Leaving]
sergioro has joined #ruby
sarink has joined #ruby
sarink has quit [Ping timeout: 245 seconds]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
sergioro has quit [Quit: leaving]
NODE has quit [Client Quit]
NODE has joined #ruby
buckworst has quit [Quit: WeeChat 2.3]
NODE has quit [Client Quit]
TCZ has joined #ruby
NODE has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
chalkmon1 has joined #ruby
schne1der has joined #ruby
teardown has joined #ruby
chalkmonster has quit [Ping timeout: 276 seconds]
TCZ has quit [Quit: Bye Bye]
TCZ has joined #ruby
mynameisbrian has joined #ruby
schne1der has quit [Ping timeout: 250 seconds]
MrCrackPot has joined #ruby
sarink has joined #ruby
sarink has quit [Ping timeout: 252 seconds]
NODE has quit [Quit: changing servers]
NODE has joined #ruby
andikr has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
i9zO5AP has joined #ruby
Ai9zO5AP has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
conta has joined #ruby
schne1der has joined #ruby
jenrzzz has joined #ruby
dionysus69 has joined #ruby
vondruch has quit [Quit: vondruch]
DaRock has quit [Remote host closed the connection]
fphilipe_ has joined #ruby
DaRock has joined #ruby
sarink has joined #ruby
ur5us has joined #ruby
sarink has quit [Ping timeout: 276 seconds]
turbo_choo has quit [Ping timeout: 268 seconds]
turbo_choo has joined #ruby
duderonomy has quit [Ping timeout: 265 seconds]
vondruch has joined #ruby
crova has joined #ruby
romanblanco has joined #ruby
william1 has joined #ruby
william1 has quit [Client Quit]
william1 has joined #ruby
Bish has quit [Ping timeout: 268 seconds]
skx86 has quit [Quit: Connection closed for inactivity]
ellcs has joined #ruby
<mynameisbrian> what's your guys' favorite ruby book?
Bish has joined #ruby
<mynameisbrian> im reading the "ruby programming language" but it's an old version of ruby, hope it won't be too annoying to catch up
ur5us has quit [Ping timeout: 245 seconds]
andikr has quit [Ping timeout: 246 seconds]
TCZ has quit [Quit: Bye Bye]
andikr has joined #ruby
Mrgoose845701915 has quit [Ping timeout: 250 seconds]
Mrgoose845701915 has joined #ruby
Mia has joined #ruby
vrih has joined #ruby
chalkmonster has joined #ruby
chalkmon1 has quit [Ping timeout: 265 seconds]
turbo_choo has quit [Ping timeout: 276 seconds]
conta has quit [Quit: conta]
turbo_choo has joined #ruby
andikr has quit [Quit: No Ping reply in 180 seconds.]
conta has joined #ruby
andikr has joined #ruby
zarkone has joined #ruby
<luminousnine> mynameisbrian: The Well Grounded Rubyist
<luminousnine> It's more up to speed and goes well into every aspect
<zarkone> hi everyone! diving into ruby and have some questions about code style. I have some code: `generated_json["endpoint-groups"][0]["endpoints"][0]["pipeline"]["units"].find { |obj| obj["id"] == "endpoint"}["config"]["attributes"]&.find { |obj| obj["name"] == '.status'}&["formula"] or nil
<zarkone> ` which i don't find very attractive :) any suggestions on improving it? 2) why &.find(...) returns `nil`, but &["config"] returns `false` in case of not found? Thanks, hope paste is not too long!
<mynameisbrian> oh nice, thanks, it was just updated this year too
<luminousnine> No problem
turbo_choo has quit [Ping timeout: 252 seconds]
Axy has joined #ruby
<Bish> mynameisbrian: ruby doesn't change as much as your otherlanguages™
Mia has quit [Ping timeout: 252 seconds]
<Bish> aside from Bignum, stabby operator, lonely operator, new hash literal notation i can't think of anything that has been added
<Bish> and nothing has been removed
<Bish> zarkone: maybe .fetch and .first ?
turbo_choo has joined #ruby
<Bish> .fetch("endpoint-groups').first.fetch("endpoints").first.fetch("pipeline","units")
<Bish> fetch does raise if the key is not found
<mynameisbrian> okay that's good!! im reading "the ruby programming language" so ill prob just stick with that since I already started it. I think it's 1.9
<Bish> zarkone: or "dig"
<zarkone> Bish: looks better, thanks! but i want to return nil but not raise
<al2o3-cr> generated_json.dig('endpoint-groups', 0, 'endpoints', 0, 'pipeline', 'units', ...)
<Bish> .dig("endpoint-groups",0,"endpoints",0,"pipeline","units")
<zarkone> al2o3-cr: Bish: oh, cool, thanks!
<zarkone> will use dig, thank you
crova has quit [Ping timeout: 246 seconds]
tekk has joined #ruby
matled has joined #ruby
Radar has joined #ruby
olblak has joined #ruby
Rudd0 has joined #ruby
sirecote has joined #ruby
ccooke has joined #ruby
daed has joined #ruby
Prira has joined #ruby
guardian has joined #ruby
marens has joined #ruby
olspookishmagus has joined #ruby
brer has joined #ruby
bhaak has joined #ruby
ltp has joined #ruby
pelegreno__ has joined #ruby
RiPuk has joined #ruby
jinie has joined #ruby
ByronJohnson has joined #ruby
`Alison has joined #ruby
Sp4rKy has joined #ruby
swistak35 has joined #ruby
yokel has joined #ruby
russt has joined #ruby
nofxx has joined #ruby
umjisus has joined #ruby
marens has quit [Changing host]
marens has joined #ruby
rapha has joined #ruby
cranq has joined #ruby
thebetra2 has joined #ruby
baweaver has joined #ruby
vdl has joined #ruby
Radar is now known as Guest97281
nullheroes has joined #ruby
olspookishmagus is now known as Guest47700
go|dfish has joined #ruby
lxsameer has joined #ruby
DTZUZU has joined #ruby
rapha has quit [Changing host]
rapha has joined #ruby
Mon_Ouie has joined #ruby
Arahael has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
edwardly has joined #ruby
Davey has joined #ruby
CalimeroTeknik has joined #ruby
ErhardtMundt has joined #ruby
agrecascino has joined #ruby
dviola has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
dinfuehr has joined #ruby
baweaver is now known as Guest20017
lxsameer is now known as Guest49918
gavlee has joined #ruby
nchambers has joined #ruby
xMopx has joined #ruby
JasonO has joined #ruby
pizzaiolo has joined #ruby
JasonO has quit [Changing host]
m27frogy has joined #ruby
JasonO has joined #ruby
NightMonkey has joined #ruby
phenom has joined #ruby
cpallares has joined #ruby
_phaul has joined #ruby
uplime has joined #ruby
shanks8080 has joined #ruby
duckpuppy has joined #ruby
priodev has joined #ruby
linuus has joined #ruby
<zarkone> i was about to use something like jsonpath, but dig looks good enough -- without need of introducing anthoer dependency
sarink has joined #ruby
crova has joined #ruby
<Bish> ruby is not javascript afterall
<Bish> no need to import leftpad :>
NODE has quit [Quit: changing servers]
<Bish> personally i like to convert every key in json to symbols
<Bish> , too
<Bish> if you can trust the input enough
<Bish> (i think there was a DoS issue a while ago)
<Bish> don't know if that's still the case
NODE has joined #ruby
sarink has quit [Ping timeout: 248 seconds]
NODE has quit [Client Quit]
<zarkone> > ruby is not javascript afterall
<zarkone> sure)
_phaul has quit [Ping timeout: 252 seconds]
NODE has joined #ruby
<Bish> was making fun of their ecosystem more than javascript itself
<zarkone> i like clojure approach, with keywords as functions
<zarkone> smth like (-> json :foo :bar (get 0))
infinityfye has joined #ruby
TCZ has joined #ruby
<zarkone> but i've heared in JS they recently introduced smth similar to & operator
<Bish> keywords as functions? i don't follow
<Bish> null safe navigation is not yet in JS, no
<Bish> atleast not last time i checked, some weeks ago
<Bish> sure you find some babel transpiler
<zarkone> yes, i think it just appeared in proposal or smth
<Bish> yeah es9999
<zarkone> > keywords as functions? i don't follow
<zarkone> yes ^^
<Bish> oh.. clojure you mean the language
<Bish> i was like clojures in js
_phaul has joined #ruby
<zarkone> no, not closures :)
_phaul has quit [Ping timeout: 268 seconds]
* Bish didn't even realize those get written differently
iNs has quit [Ping timeout: 260 seconds]
sphex has quit [Ping timeout: 250 seconds]
iNs has joined #ruby
_phaul has joined #ruby
RiPuk_ has joined #ruby
RiPuk has quit [Ping timeout: 250 seconds]
_phaul has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
sarink has joined #ruby
aspiers has joined #ruby
_phaul has quit [Ping timeout: 250 seconds]
erikh has quit [Ping timeout: 265 seconds]
sarink has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
al2o3-cr has quit [Ping timeout: 260 seconds]
erikh has joined #ruby
romanblanco has quit [Ping timeout: 246 seconds]
al2o3-cr has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
yann-kaelig has joined #ruby
_phaul has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
crova has quit [Read error: Connection reset by peer]
_phaul has joined #ruby
conta has quit [Quit: conta]
_phaul has quit [Ping timeout: 245 seconds]
turbo_choo has quit [Ping timeout: 268 seconds]
turbo_choo has joined #ruby
_phaul has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
_phaul has quit [Ping timeout: 245 seconds]
_phaul has joined #ruby
teardown has quit [Quit: leaving]
_phaul has quit [Ping timeout: 268 seconds]
zarkone has quit [Ping timeout: 276 seconds]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 248 seconds]
svankmajer has joined #ruby
romanblanco has joined #ruby
tsrt^ has quit [Ping timeout: 265 seconds]
_phaul has joined #ruby
svankmajer has quit [Ping timeout: 248 seconds]
_phaul has quit [Ping timeout: 268 seconds]
tsrt^ has joined #ruby
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #ruby
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #ruby
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #ruby
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #ruby
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #ruby
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #ruby
tsrt^ has quit [Max SendQ exceeded]
tsrt^ has joined #ruby
tsrt^ has quit [Max SendQ exceeded]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 250 seconds]
crella133 has joined #ruby
_phaul has joined #ruby
svankmajer has joined #ruby
_phaul has quit [Ping timeout: 248 seconds]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
crella133 has quit [Quit: crella133]
_phaul has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
_phaul has quit [Ping timeout: 268 seconds]
johnny56 has quit [Ping timeout: 240 seconds]
TCZ has quit [Quit: Bye Bye]
_phaul has joined #ruby
johnny56 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
_phaul has quit [Ping timeout: 246 seconds]
Guest49918 has quit [Quit: out]
crova has joined #ruby
chalkmonster has joined #ruby
_phaul has joined #ruby
mynameisbrian has quit [Quit: Leaving]
_phaul has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
zarkone has joined #ruby
romanblanco has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
svankmajer has quit [Ping timeout: 245 seconds]
_phaul has quit [Ping timeout: 248 seconds]
drincruz has joined #ruby
_phaul has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7]
_phaul has quit [Ping timeout: 268 seconds]
TCZ has joined #ruby
_phaul has joined #ruby
donofrio has joined #ruby
_phaul has quit [Ping timeout: 246 seconds]
<rapha> hey all
svankmajer has joined #ruby
<rapha> say, why does {foo: "bar}.merge({blah: "blubb"}) work fine, but {}.merge({blah: "blubb"}) returns {}?
_phaul has joined #ruby
svankmajer has quit [Ping timeout: 268 seconds]
_phaul has quit [Ping timeout: 248 seconds]
Esa_ has joined #ruby
_phaul has joined #ruby
<rapha> oh wait, i'm stupid, i forgot the bang
hiroaki has joined #ruby
_phaul has quit [Ping timeout: 245 seconds]
romanblanco has joined #ruby
jenrzzz_ has joined #ruby
_phaul has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
drincruz has quit [Ping timeout: 268 seconds]
lucasb has joined #ruby
romanblanco has quit [Ping timeout: 268 seconds]
schne1der has quit [Ping timeout: 265 seconds]
<al2o3-cr> rapha: fwiw Hash#update does what Hash#merge! does without having to remember the bang!
<rapha> Oh!
<rapha> Cool!
<rapha> \o/
svankmajer has joined #ruby
svankmajer has quit [Ping timeout: 245 seconds]
<rapha> al2o3-cr: is there also some neat way of chaining a delete-replacement and update directly?
sphex has joined #ruby
i9zO5AP has quit [Ping timeout: 246 seconds]
romanblanco has joined #ruby
TCZ has quit [Quit: Bye Bye]
i9zO5AP has joined #ruby
<al2o3-cr> rapha: you can use Object#tap to tap into the method chain.
<al2o3-cr> &>> {a: 1, b: 2, c: 3}.tap { |h| h.delete(:c) }.update(d: 4)
<rubydoc> # => {:a=>1, :b=>2, :d=>4} (https://carc.in/#/r/87gv)
<al2o3-cr> &>> {a: 1, b: 2, c: 3}.replace(a: 2, b: 3).update(a: 5, b: 10) { |_k, v1, v2| v1 + v2 }
<rubydoc> # => {:a=>7, :b=>13} (https://carc.in/#/r/87gw)
<rapha> oh wow, fancy
<rapha> but me likey
* rapha tries
sarink has joined #ruby
wallace_mu has joined #ruby
romanblanco has quit [Ping timeout: 245 seconds]
<rapha> sweet
jcalla has joined #ruby
<rapha> al2o3-cr: btw, i now also like #update to do "a = {two: 2, three: 3, one: 1}; a = Hash[:one, a.delete(:one)].update(a)" (&>> {one: 1, two: 2, three: 3})
<rapha> oh wait, i wanna try the bot
<rapha> &>> a = {two: 2, three: 3, one: 1}; a = Hash[:one, a.delete(:one)].update(a)
<rubydoc> # => {:one=>1, :two=>2, :three=>3} (https://carc.in/#/r/87h7)
<rapha> :-D
<al2o3-cr> ;)
Technodrome has joined #ruby
svankmajer has joined #ruby
dviola has quit [Quit: WeeChat 2.7]
_phaul has quit [Ping timeout: 246 seconds]
turbo_choo has quit [Ping timeout: 265 seconds]
svankmajer has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
sagax has quit [Ping timeout: 252 seconds]
Nicmavr has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
shokohsc has quit [Remote host closed the connection]
Swyper has joined #ruby
_phaul has joined #ruby
wallace_mu has quit [Remote host closed the connection]
crova has quit [Read error: Connection reset by peer]
_phaul has quit [Ping timeout: 246 seconds]
schne1der has joined #ruby
sarink has quit [Remote host closed the connection]
_phaul has joined #ruby
_phaul has quit [Ping timeout: 245 seconds]
drincruz has joined #ruby
_phaul has joined #ruby
SeepingN has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
sarink has joined #ruby
_phaul has joined #ruby
<NL3limin4t0r> al2o3-cr: I'm not sure if {a: 1, b: 2, c: 3}.replace(a: 2, b: 3) is the best example since the #replace operation isn't really usefull in this context. You could simply use {a: 2, b: 3} instead.
whiis has joined #ruby
svankmajer has joined #ruby
turbo_choo has joined #ruby
<al2o3-cr> NL3limin4t0r: i agree, bad example tbh.
_phaul has quit [Ping timeout: 250 seconds]
svankmajer has quit [Ping timeout: 250 seconds]
_phaul has joined #ruby
wallace_mu has joined #ruby
sagax has joined #ruby
infinityfye has quit [Quit: Leaving]
Inline has joined #ruby
krawchyk has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
_phaul has joined #ruby
<al2o3-cr> i wish this would work: {hash, **other}
<al2o3-cr> &>> {foo: :bar, **{baz: :qux}}
<rubydoc> # => {:foo=>:bar, :baz=>:qux} (https://carc.in/#/r/87hp)
_phaul has quit [Ping timeout: 268 seconds]
<NL3limin4t0r> al2o3-cr: That does work, but only for hashes with symbol keys.
<al2o3-cr> NL3limin4t0r: no, i mean when assigned to variables.
<NL3limin4t0r> What assignments would you expect with the above statement then?
<depesz> is there some kind of neat trick that would automatically create non-existing sub-hashes? something that would let me: o = Hash.some_magic; o["a"]["b"]["c"] = 123; ?
<NL3limin4t0r> depesz: Yes: hash = Hash.new { |hash, key| hash[key] = Hash.new(&hash.default_proc) }
<NL3limin4t0r> &>> hash = Hash.new { |hash, key| hash[key] = Hash.new(&hash.default_proc) }; hash[:a][:b][:c] = 123; h
<rubydoc> stderr: -e:4:in `<main>': undefined local variable or method `h' for main:Object (NameError)... check link for more (https://carc.in/#/r/87hq)
<NL3limin4t0r> &>> hash = Hash.new { |hash, key| hash[key] = Hash.new(&hash.default_proc) }; hash[:a][:b][:c] = 123; hash
<rubydoc> # => {:a=>{:b=>{:c=>123}}} (https://carc.in/#/r/87hr)
svankmajer has joined #ruby
<depesz> cool. thanks.
<al2o3-cr> too quick.
DTZUZO has quit [Ping timeout: 250 seconds]
_phaul has joined #ruby
<NL3limin4t0r> depesz: Note that accessing them without assignment also creates the structure
<NL3limin4t0r> &>> hash = Hash.new { |hash, key| hash[key] = Hash.new(&hash.default_proc) }; hash[:a][:b][:c]; hash
<rubydoc> # => {:a=>{:b=>{:c=>{}}}} (https://carc.in/#/r/87hs)
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
andikr has quit [Remote host closed the connection]
krawchyk has quit [Quit: krawchyk]
_phaul has quit [Ping timeout: 248 seconds]
<Technodrome> i swear the rails channel is officially dead
<Technodrome> i guess all the slack channels really phased it out in some ways
zarkone has quit [Ping timeout: 245 seconds]
_phaul has joined #ruby
<al2o3-cr> NL3limin4t0r: it does work, what was i thinking :?
krawchyk has joined #ruby
_phaul has quit [Ping timeout: 265 seconds]
zarkone has joined #ruby
Axy has quit [Read error: Connection reset by peer]
_phaul has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
Mia has quit [Read error: Connection reset by peer]
_phaul has joined #ruby
DaRock has quit [Ping timeout: 268 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
lalitmee has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
_phaul has joined #ruby
krawchyk has quit [Read error: Connection reset by peer]
NODE has quit [Quit: changing servers]
krawchyk has joined #ruby
NODE has joined #ruby
_phaul has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
Mia has quit [Read error: Connection reset by peer]
_phaul has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Swyper has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Swyper has quit [Remote host closed the connection]
romanblanco has joined #ruby
_phaul has joined #ruby
crova has joined #ruby
lalitmee has quit [Remote host closed the connection]
_phaul has quit [Ping timeout: 245 seconds]
romanblanco has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
yann-kaelig has quit [Quit: yann-kaelig]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Swyper has joined #ruby
_phaul has quit [Ping timeout: 245 seconds]
_phaul has joined #ruby
davidw has joined #ruby
_phaul has quit [Ping timeout: 248 seconds]
_phaul has joined #ruby
MrCrackPotBob has joined #ruby
MrCrackPot has quit [Read error: Connection reset by peer]
Axy has quit [Read error: Connection reset by peer]
_phaul has quit [Ping timeout: 268 seconds]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has quit [Read error: Connection reset by peer]
_phaul has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
_phaul has quit [Ping timeout: 248 seconds]
akemhp_ has quit [Quit: Leaving]
_phaul has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Mia has quit [Ping timeout: 252 seconds]
romanblanco has joined #ruby
nofxx has quit [Remote host closed the connection]
_phaul has quit [Ping timeout: 268 seconds]
sergioro has joined #ruby
_phaul has joined #ruby
ropeney_ has quit [Ping timeout: 245 seconds]
kn100 has joined #ruby
nofxx has joined #ruby
ropeney has quit [Ping timeout: 268 seconds]
_phaul has quit [Ping timeout: 250 seconds]
_phaul has joined #ruby
NODE has quit [Quit: changing servers]
zarkone has quit [Ping timeout: 248 seconds]
NODE has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
romanblanco has quit [Ping timeout: 246 seconds]
bvdw has quit [Read error: Connection reset by peer]
_phaul has joined #ruby
bvdw has joined #ruby
Axy has quit [Read error: Connection reset by peer]
ellcs1 has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
_phaul has quit [Ping timeout: 245 seconds]
_phaul has joined #ruby
whiis has quit [Quit: Connection closed for inactivity]
arup_r has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
animo8 has joined #ruby
_phaul has joined #ruby
_phaul has quit [Ping timeout: 252 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mia has quit [Read error: Connection reset by peer]
_phaul has joined #ruby
Mia has joined #ruby
_phaul has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
_phaul has joined #ruby
Technodrome has joined #ruby
fphilipe_ has quit [Ping timeout: 265 seconds]
_phaul has quit [Ping timeout: 245 seconds]
svankmajer has quit [Ping timeout: 276 seconds]
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
bluevinyl0x1 has quit [Remote host closed the connection]
romanblanco has joined #ruby
_phaul has joined #ruby
nofxx has quit [Remote host closed the connection]
davispuh has joined #ruby
nofxx has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
_phaul has joined #ruby
ellcs1 has quit [Ping timeout: 248 seconds]
nofxx has quit [Quit: Leaving]
nofxx has joined #ruby
_phaul has quit [Ping timeout: 248 seconds]
_phaul has joined #ruby
fphilipe_ has joined #ruby
_phaul has quit [Ping timeout: 250 seconds]
animo8 has quit [Remote host closed the connection]
ellcs1 has joined #ruby
_phaul has joined #ruby
morozovm has joined #ruby
fphilipe_ has quit [Ping timeout: 276 seconds]
morozovm has quit [Client Quit]
_phaul has quit [Ping timeout: 265 seconds]
suukim has quit [Quit: Konversation terminated!]
Swyper has quit [Remote host closed the connection]
DTZUZO has joined #ruby
_phaul has joined #ruby
sarink has quit [Remote host closed the connection]
arup_r has quit []
_phaul has quit [Ping timeout: 276 seconds]
_phaul has joined #ruby
crova has quit [Read error: Connection reset by peer]
_phaul has quit [Ping timeout: 248 seconds]
sarink has joined #ruby
_phaul has joined #ruby
al2o3-cr has quit [Remote host closed the connection]
Eiam_ has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
Eiam has quit [Ping timeout: 250 seconds]
al2o3-cr has joined #ruby
_phaul has quit [Ping timeout: 246 seconds]
dan64- has quit [Quit: ZNC - http://znc.in]
dan64 has joined #ruby
_phaul has joined #ruby
_phaul has quit [Ping timeout: 268 seconds]
ellcs1 has quit [Ping timeout: 265 seconds]
_phaul has joined #ruby
ljarvis has joined #ruby
RiPuk has joined #ruby
RiPuk_ has quit [Read error: Connection reset by peer]
_phaul has quit [Ping timeout: 245 seconds]
_phaul has joined #ruby
gix has joined #ruby
leitz has joined #ruby
Guest20017 is now known as baweaver
baweaver has quit [Changing host]
baweaver has joined #ruby
<baweaver> Should be doing a lot more writing soon
RiPuk has quit [Remote host closed the connection]
<leitz> Anyone know if any of the core Ruby reference books (O'Reilly's Ruby, the Pickaxe) are going to be updated for Ruby 3-ish?
RiPuk has joined #ruby
<baweaver> Presumably so.
<baweaver> Though remember that's 1+ years out
_phaul has quit [Ping timeout: 248 seconds]
ellcs1 has joined #ruby
<leitz> Understood. I had a short e-mail chat with Dave Thomas, and he asked if there was enough market interest. I assured him the "old fat guy learning Ruby because it's so awesome" market was pretty well 100%. :)
<leitz> There are several good Ruby book to learn, *cough*, but I like the reference materials in Flanagan's book, and the Pickaxe. Of course, it took me a while to become smart enough to read Flanagan's.
<leitz> "to learn from", sorry. Still ill.
NL3limin4t0r is now known as NL3limin4t0r_afk
_phaul has joined #ruby
_phaul has quit [Ping timeout: 248 seconds]
etupat has joined #ruby
_phaul has joined #ruby
Bish has quit [Disconnected by services]
RiPuk_ has joined #ruby
NODE has quit [Quit: changing servers]
RiPuk has quit [Read error: Connection reset by peer]
_phaul has quit [Client Quit]
ellcs1 has quit [Ping timeout: 248 seconds]
phaul has joined #ruby
ellcs1 has joined #ruby
svankmajer has joined #ruby
NODE has joined #ruby
sauvin has quit [Ping timeout: 276 seconds]
<baweaver> I'll probably be volunteering to help rewrite most of those later.
sarink has quit [Remote host closed the connection]
<baweaver> So if you want to suggest a writer to them leitz :P
ooheitooh has quit [Ping timeout: 276 seconds]
NODE has quit [Quit: changing servers]
jenrzzz_ has quit [Ping timeout: 268 seconds]
NODE has joined #ruby
NODE has quit [Client Quit]
<davidw> I haven't bought many programming books in years.
cliluw has quit [Read error: Connection reset by peer]
NODE has joined #ruby
etupat has quit [Remote host closed the connection]
cliluw has joined #ruby
fphilipe_ has joined #ruby
sameerynho has joined #ruby
svankmajer has quit [Ping timeout: 265 seconds]
william1 has quit [Ping timeout: 265 seconds]
svankmajer has joined #ruby
wildtrees has joined #ruby
hiroaki has quit [Ping timeout: 245 seconds]
akemhp has joined #ruby
akemhp_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
akem__ has joined #ruby
akemhp has quit [Ping timeout: 265 seconds]
akemhp_ has quit [Ping timeout: 246 seconds]
jmcgnh has quit [Read error: Connection reset by peer]
NODE has quit [Quit: changing servers]
hiroaki has joined #ruby
NODE has joined #ruby
jmcgnh has joined #ruby
Swyper has joined #ruby
ljarvis has quit [Quit: WeeChat 2.4]
mozzarella has joined #ruby
skx86 has joined #ruby
ur5us has joined #ruby
etupat has joined #ruby
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
etupat has quit [Remote host closed the connection]
sarink has joined #ruby
etupat has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
sarink_ has joined #ruby
etupat has quit [Ping timeout: 250 seconds]
sarink has quit [Ping timeout: 248 seconds]
etupat has joined #ruby
ellcs1 has quit [Ping timeout: 265 seconds]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jmcgnh has quit [Read error: Connection reset by peer]
jmcgnh has joined #ruby
ellcs1 has joined #ruby
davor_ has joined #ruby
davor has quit [Ping timeout: 268 seconds]
davor_ is now known as davor
svankmajer has quit [Ping timeout: 276 seconds]
<leitz> I have more books than brain cells, I think. I learn best when I start with books, and then have some mentoring along the way.
dogweather has joined #ruby
DTZUZO has quit [Read error: Connection reset by peer]
fphilipe_ has quit [Ping timeout: 245 seconds]
morozovm has joined #ruby
morozovm has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
schne1der has quit [Ping timeout: 246 seconds]
DTZUZO has joined #ruby
ur5us has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby
sphex_ has joined #ruby
AJA4350 has joined #ruby
Fernando-Basso has joined #ruby
wallace_mu has quit [Remote host closed the connection]
wallace_mu has joined #ruby
sphex has quit [Ping timeout: 276 seconds]
wallace_mu has quit [Read error: Connection reset by peer]
howdoi has joined #ruby
jordanm has quit [Ping timeout: 252 seconds]
sameerynho has quit [Ping timeout: 268 seconds]
jordanm has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
etupat has quit [Remote host closed the connection]
etupat has joined #ruby
devney has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
sarink_ has quit [Remote host closed the connection]
sarink has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
sarink has quit [Ping timeout: 248 seconds]
DaRock has joined #ruby
turbo_choo has quit [Ping timeout: 248 seconds]
ellcs1 has quit [Ping timeout: 248 seconds]
davidw has quit [Ping timeout: 245 seconds]
drincruz has quit [Ping timeout: 268 seconds]