havenwood changed the topic of #ruby to: Ruby 3.4.2, 3.3.7 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
cappy has quit [Quit: Leaving]
xorgwomp has quit [Ping timeout: 240 seconds]
STASIdownunder_ has joined #ruby
STASIdownunder_ has quit [K-Lined]
STASIdownunder has quit [Ping timeout: 248 seconds]
fercell has quit [Ping timeout: 260 seconds]
fercell has joined #ruby
jmcantrell has quit [Quit: WeeChat 4.6.0]
jmcantrell_ is now known as jmcantrell
__jmcantrell__ has joined #ruby
jmcantrell has quit [Killed (tungsten.libera.chat (Nickname regained by services))]
__jmcantrell__ is now known as jmcantrell
jmcantrell_ has joined #ruby
STASIdownunder has joined #ruby
R2robot has joined #ruby
hwpplayer1 has joined #ruby
roger_rabbit has quit [Quit: WeeChat 4.5.2]
<o0ox1eef> havenwood: Fuzzy memory so I may be completely off base on this one, but I think I found it hard to use with your "own" objects, and there was an assumption you'd use it with Hash, etc, instead. Your example clearly says otherwise though, but I more so meant for traversing through your own Hash-like object. IIRC it was actually with Ryo I had this issue.
schn31d3r has joined #ruby
STASIdownunder has quit [Quit: Leaving]
grenierm has joined #ruby
jmcantrell has quit [Quit: WeeChat 4.6.0]
jmcantrell_ is now known as jmcantrell
STASIdownunder has joined #ruby
hwpplayer1 has quit [Quit: escapist :D]
STASIdownunder has quit [Remote host closed the connection]
fantazo has joined #ruby
o0ox1eef has quit [Quit: Quit]
o0x1eef has joined #ruby
TomyWork has joined #ruby
o0x1eef has quit [Quit: Quit]
graywolf has joined #ruby
graywolf has quit [Quit: WeeChat 4.6.0]
o0x1eef has joined #ruby
gr33n7007h has quit [Quit: WeeChat 4.5.2]
gr33n7007h has joined #ruby
<nakilon> so I logged in into Confluence, asked boss how to create a TOC with unexisting yet pages, i.e. how to create the https://en.wikipedia.org/wiki/Wikipedia:Red_link and he asked that I can apply any color to the link and that to create the link to not existing yet page, "you just... that's easy, I don't know, I'll tell you later"
<nakilon> I come up with a conclusion that Confluence is just fundamentally not a wiki
<nakilon> in Russian we call the approach to do things from wrong direction a "doing via ass", and creating the page before the link is basically what it is
schne1der has joined #ruby
schn31d3r has quit [Ping timeout: 272 seconds]
schne1der has quit [Ping timeout: 260 seconds]
o0x1eef has quit [Quit: Quit]
grenierm has quit [Quit: Client closed]
o0x1eef has joined #ruby
dviola has joined #ruby
fercell has quit [Ping timeout: 272 seconds]
schne1der has joined #ruby
fercell has joined #ruby
STASIdownunder has joined #ruby
o0x1eef has quit [Quit: Quit]
schne1der is now known as schn31d3r
STASIdownunder has quit [Read error: Connection reset by peer]
o0x1eef has joined #ruby
GreenResponse has joined #ruby
STASIdownunder has joined #ruby
gemmaro_ has quit [Ping timeout: 248 seconds]
gemmaro has joined #ruby
Rounin has quit [Ping timeout: 265 seconds]
Rounin has joined #ruby
Rounin has quit [Ping timeout: 265 seconds]
STASIdownunder has quit [Read error: Connection reset by peer]
STASIdownunder has joined #ruby
STASIdownunder has quit [Max SendQ exceeded]
STASIdownunder has joined #ruby
STASIdownunder has quit [Read error: Connection reset by peer]
STASIdownunder has joined #ruby
STASIdownunder has quit [Read error: Connection reset by peer]
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
STASIdownunder has joined #ruby
STASIdownunder has quit [Read error: Connection reset by peer]
<havenwood> o0x1eef: You can define #deconstruct and #deconstruct_keys and you get full support. They do just have those two variants, one Array, one Hash, but you can at least add them to any class.
<o0x1eef> I'll have to look into it again
<o0x1eef> Thanks :)
<havenwood> o0x1eef: Like adding for String: class String def deconstruct = grapheme_clusters end; 'hiya' in ['h', *, letter]
<o0x1eef> Nice
<havenwood> For the deconstruct_keys, just make sure to have the keys be Symbols: class String def deconstruct_keys(hash) = chars.to_h { |char| [char.to_sym, char] } end
user71 has joined #ruby
<o0x1eef> Makes sense. To be honest I see no reason why it wouldn't work and I was probably just doing it wrong the first time around
<havenwood> I meant: deconstruct_keys(keys)
<havenwood> o0x1eef: I should implement them more. Seeing libraries like HTTPX use them nicely.
<o0x1eef> Yep, we should not resign ourselves to how things are and innovate always :)
trillion_exabyte has quit [Ping timeout: 252 seconds]
trillion_exabyte has joined #ruby
donofrio has joined #ruby
dviola has quit [Ping timeout: 252 seconds]
diego has joined #ruby
__jmcantrell__ has joined #ruby
jmcantrell is now known as Guest4549
Guest4549 has quit [Killed (zirconium.libera.chat (Nickname regained by services))]
__jmcantrell__ is now known as jmcantrell
jmcantrell_ has joined #ruby
Thanzex02 has quit [Quit: Ping timeout (120 seconds)]
Thanzex02 has joined #ruby
fantazo has quit [Quit: Lost terminal]
Rounin has quit [Ping timeout: 272 seconds]
STASIdownunder has joined #ruby
hexreel has joined #ruby
sarna has quit [Ping timeout: 265 seconds]
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
sarna has joined #ruby
hexreel has quit [Quit: leaving]
gr33n7007h has quit [Ping timeout: 245 seconds]
wbooze has quit [Quit: Leaving]
gr33n7007h has joined #ruby
sandra_ has joined #ruby
infinityfye has joined #ruby
Thanzex02 has quit [Ping timeout: 272 seconds]
Thanzex02 has joined #ruby
infinityfye has quit [Killed (NickServ (GHOST command used by infinity__fye))]
infinity__fye has joined #ruby
cappy has joined #ruby
hernan604 is now known as HER
HER is now known as hernan604
hernan604 is now known as hernan
hernan is now known as hernan604
R2robot has quit [Ping timeout: 276 seconds]
schn31d3r has quit [Ping timeout: 248 seconds]
schn31d3r has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
Sheilong has joined #ruby
R2robot has joined #ruby
<o0x1eef> havenwood: Hey, nice! It works :)
<o0x1eef> More or less a one-line change: def deconstruct_keys(keys); keys.to_h { [_1, self[_1]] }; end
wbooze has joined #ruby
donofrio has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
<havenwood> o0x1eef: Or 3.5-style I think "send it" is funny: def deconstruct_keys(keys) = keys.to_h { [it, send(it)] }
<havenwood> I wanna use `public_send` but it just doesn't read as snazzy.
<havenwood> Oh, I mean 3.4 where `it` was added not 3.5-dev. Oops.
<havenwood> o0x1eef: The endless methods do make a more onelinery feel since you don't need a semicolon.
<havenwood> o0x1eef: Ah, nice, looks like it works well in Ryo. 👏
<o0x1eef> :))
<o0x1eef> I haven't jumped on the 'it' train (yet)
donofrio has joined #ruby
donofrio has quit [Ping timeout: 260 seconds]
sandra_ has quit [Remote host closed the connection]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 272 seconds]
donofrio has joined #ruby
<o0x1eef> Oh wow. Definitely going to hard-pin dependencies like rubocop-rspec. Haven't got time for all that spam every time it updates
donofrio has quit [Ping timeout: 265 seconds]
<adam12> lol
donofrio has joined #ruby
wbooze has quit [Read error: Connection reset by peer]
blacknova has joined #ruby
donofrio has quit [Ping timeout: 268 seconds]
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 260 seconds]
rvalue- is now known as rvalue
donofrio has joined #ruby
donofrio has quit [Ping timeout: 248 seconds]
TomyWork has quit [Remote host closed the connection]
fantazo has joined #ruby
donofrio has joined #ruby
cappy has quit [Quit: Leaving]
donofrio has quit [Ping timeout: 244 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 248 seconds]
schn31d3r has quit [Ping timeout: 246 seconds]
donofrio has joined #ruby
user71 has quit [Quit: Leaving]
fantazo has quit [Quit: Lost terminal]
donofrio has quit [Ping timeout: 244 seconds]
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 268 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
Pixi has quit [Read error: Connection reset by peer]
Pixi has joined #ruby
donofrio has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
donofrio has quit [Ping timeout: 245 seconds]
ruby[bot] has joined #ruby
TomyLobo has joined #ruby
GreenResponse has quit [Quit: Leaving]
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 244 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
donofrio has joined #ruby
donofrio has quit [Ping timeout: 272 seconds]
donofrio has joined #ruby
infinity__fye has quit [Quit: Leaving]
donofrio has quit [Ping timeout: 268 seconds]
donofrio has joined #ruby
R2robot has quit [Quit: Pull the lever, Kronk. Wrong leverrrrrrr!]
donofrio has quit [Ping timeout: 244 seconds]
R2robot has joined #ruby
donofrio has joined #ruby
donofrio has quit [Ping timeout: 248 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 265 seconds]