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!
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
markoong has quit [Ping timeout: 256 seconds]
lightstalker has quit [Ping timeout: 260 seconds]
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
lightstalker has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand_ has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ChmEarl has quit [Quit: Leaving]
oddp_ has quit [Ping timeout: 246 seconds]
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Mia has quit [Ping timeout: 246 seconds]
SeepingN has joined #ruby
alfiemax has joined #ruby
roshanavand__ has joined #ruby
cthu| has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 240 seconds]
cthu| has joined #ruby
roshanavand_ has quit [Ping timeout: 256 seconds]
gix has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
ur5us has quit [Ping timeout: 260 seconds]
hassox has joined #ruby
troulouliou_div2 has joined #ruby
cd has quit [Quit: cd]
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
troulouliou_div2 has quit [Ping timeout: 272 seconds]
troulouliou_dev has joined #ruby
troulouliou_div2 has joined #ruby
ur5us has joined #ruby
mozzarella has quit [Quit: WeeChat 2.8]
pwnd_nsfw has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
postmodern has quit [Quit: Leaving]
mozzarella has joined #ruby
orbyt_ has joined #ruby
bsdbandit-01 has quit [Quit: -a- Connection Timed Out]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
bambanx has quit [Quit: Leaving]
bsdbandit-01 has joined #ruby
bsdbandit-01 has quit [Excess Flood]
bsdbandit-01 has joined #ruby
Omnilord has quit [Quit: Leaving]
cthu| has quit [Ping timeout: 240 seconds]
jetchisel has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
troulouliou_div2 has quit [Remote host closed the connection]
houhoulis has joined #ruby
drincruz has joined #ruby
braincrash has quit [Quit: bye bye]
r29v has quit [Quit: r29v]
braincrash has joined #ruby
Esa__ has quit []
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
alfiemax has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
secret-fire__ has quit [Quit: Leaving]
Secret-Fire has joined #ruby
elphe has joined #ruby
xco has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
donofrio has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
dualfade has quit [Ping timeout: 240 seconds]
mossplix has joined #ruby
hassox_ has joined #ruby
hassox has quit [Ping timeout: 272 seconds]
mossplix has quit [Ping timeout: 258 seconds]
alfiemax has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ur5us has quit [Ping timeout: 260 seconds]
cliluw has quit [Ping timeout: 272 seconds]
dualfade has joined #ruby
arzWZM has quit [Read error: Connection reset by peer]
arzWZM has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
houhoulis has quit [Remote host closed the connection]
hassox_ has quit [Quit: Leaving...]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
cliluw has joined #ruby
BenDover has joined #ruby
schne1der has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
skx86 has quit [Quit: Connection closed for inactivity]
Secret-Fire has joined #ruby
pwnd_nsfw has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
fandre1986 has joined #ruby
alexherbo2 has joined #ruby
Mikaela has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
alexherbo29 has joined #ruby
alfiemax has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 264 seconds]
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo29 is now known as alexherbo2
alfiemax has joined #ruby
elphe has joined #ruby
evdubs_ has joined #ruby
maidhc has joined #ruby
evdubs has quit [Ping timeout: 260 seconds]
evdubs_ is now known as evdubs
xco has joined #ruby
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maidhc has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baojg has quit [Remote host closed the connection]
baojg_ has joined #ruby
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maidhc has joined #ruby
mikhailnovikov has joined #ruby
mossplix has joined #ruby
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
alfiemax has quit [Remote host closed the connection]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
maidhc has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maidhc has joined #ruby
schne1der has quit [Ping timeout: 256 seconds]
mossplix has quit [Remote host closed the connection]
xco has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
mossplix has joined #ruby
Secret-Fire has joined #ruby
alfiemax has joined #ruby
imode has quit [Ping timeout: 260 seconds]
Xiti` is now known as Xiti
Secret-Fire has quit [Read error: Connection reset by peer]
Secret-Fire has joined #ruby
akem has quit [Quit: Leaving]
dionysus69 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
jetchisel has quit [Ping timeout: 256 seconds]
alfiemax has quit [Remote host closed the connection]
oddp_ has joined #ruby
fercell has joined #ruby
alfiemax has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
Secret-Fire has joined #ruby
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cnsvc has quit [Ping timeout: 240 seconds]
elphe has quit [Ping timeout: 240 seconds]
akem has joined #ruby
maidhc has joined #ruby
maidhc has quit [Client Quit]
maidhc has joined #ruby
In0perable has quit [Quit: All your buffer are belong to us!]
sauvin_ has joined #ruby
elphe has joined #ruby
Inoperable has joined #ruby
bocaneri has quit [Ping timeout: 264 seconds]
sauvin_ is now known as Sauvin
alexherbo2 has quit [Ping timeout: 240 seconds]
arzWZM has quit [Ping timeout: 264 seconds]
arzWZM has joined #ruby
postmodern has joined #ruby
markoong has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baojg_ has quit [Remote host closed the connection]
baojg has joined #ruby
markoong has quit [Ping timeout: 240 seconds]
markoong has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
Secret-Fire has joined #ruby
ur5us has joined #ruby
schne1der has joined #ruby
alexherbo2 has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
sagax has quit [Ping timeout: 272 seconds]
mikhailnovikov has quit [Read error: Connection reset by peer]
yxhuvud has quit [Remote host closed the connection]
mikhailnovikov has joined #ruby
yxhuvud has joined #ruby
xyhuvud has joined #ruby
yxhuvud has quit [Client Quit]
mikhailnovikov has quit [Read error: Connection reset by peer]
mikhailnovikov has joined #ruby
fandre1986 has quit [Ping timeout: 246 seconds]
sagax has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
fercell has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
mossplix has quit [Remote host closed the connection]
konsolebox has joined #ruby
mossplix has joined #ruby
gitter1234 has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
bamdad has quit [Write error: Broken pipe]
_aeris_ has quit [Remote host closed the connection]
iNs has quit [Write error: Broken pipe]
_aeris_ has joined #ruby
iNs has joined #ruby
bamdad has joined #ruby
donofrio has joined #ruby
drincruz has joined #ruby
elphe has quit [Ping timeout: 256 seconds]
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BSaboia has joined #ruby
mossplix has quit [Remote host closed the connection]
chalkmonster has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
<pwnd_nsfw> Who here has written an IRC in any language that implements some ability for a user to authenticate with the bot alone?
<pwnd_nsfw> IRC bot* my apologies
BSaboia has quit [Quit: This computer has gone to sleep]
mossplix has joined #ruby
maidhc has joined #ruby
nofxx has joined #ruby
BSaboia has joined #ruby
drincruz has joined #ruby
BSaboia has quit [Client Quit]
postmodern has quit [Quit: Leaving]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
alfiemax has quit [Remote host closed the connection]
kyrylo has joined #ruby
BSaboia has joined #ruby
kyrylo has quit [Client Quit]
alfiemax has joined #ruby
fercell has quit [Quit: WeeChat 2.8]
<adam12> pwnd_nsfw: I wrote one for eggdrop in TCL back in the 90's... but that's about as much as I remember.
BSaboia has quit [Client Quit]
cd has joined #ruby
BSaboia has joined #ruby
<pwnd_nsfw> Heard. I'm trying to weigh options for managing authentication/orization in IRC, but I'm having trouble accumulating options lol
BSaboia has quit [Quit: This computer has gone to sleep]
schne1der has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
troulouliou_div2 has joined #ruby
BSaboia has joined #ruby
BSaboia has quit [Remote host closed the connection]
mossplix has quit [Remote host closed the connection]
dfucci has joined #ruby
gitter1234 has quit [Quit: Connection closed for inactivity]
<mnathani> If this is what my nested hash look like, how would I remove the key orderid? {"product"=>[{"id"=>40043, "clientid"=>23787, "orderid"=>0, "pid"=>84, "regdate"=>"2018-01-01", "name"=>"Name One"}, {"id"=>42693, "clientid"=>23787, "orderid"=>0, "pid"=>90, "regdate"=>"0000-00-00", "name"=>"Name Two"}]}
impermanence has joined #ruby
<mnathani> I have tried - jhash[:product].delete(:orderid)
<mnathani> and jhash["product"].delete("orderid")
<adam12> mnathani: The class of hash["product" is Array, so delete won't work. You need to map the array then call delete.
<adam12> mnathani: Is there always one product key?
mossplix has joined #ruby
<al2o3-cr> mnathani: h['product'].each { |h| h.delete('orderid') } will remove both orderid keys in the example hash you've shown.
<al2o3-cr> mnathani: or use #delete_if and some condition.
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maidhc has joined #ruby
<mnathani> yes, one product key
impermanence has quit [Quit: Connection closed]
GodFather has joined #ruby
<mnathani> al2o3-cr: Thank you. That works
mossplix has quit [Remote host closed the connection]
<mnathani> is there a short hand to delete say the orderid and the pid at the same time?
mossplix has joined #ruby
<al2o3-cr> mnathani: not that i can think of, you'd have to iterate.
alfiemax has quit [Remote host closed the connection]
GodFather has quit [Remote host closed the connection]
<adam12> mnathani: You could try `slice(_1.keys - %w[orderid pid])`, but you'd need to `map!` instead of `each`.
GodFather has joined #ruby
MrCrackPot has quit [Quit: Leaving]
<al2o3-cr> mnathani: you can put any wanted keys to be removed in a set, it saves iterating over an array of keys as set uses a hash internally.
<al2o3-cr> mnathani: keys = %w(orderid pid).to_set; h['product'].each{ |h| h.delete_if{ |k,| keys.member? k }}
dfucci has quit [Ping timeout: 264 seconds]
<al2o3-cr> mnathani: that might only be performant with a bigger collection though. worth bench pressing :P
<mnathani> I get : combined.rb:150:in `<main>': undefined method `to_set' for ["orderid", "pid"]:Array (NoMethodError)
<al2o3-cr> mnathani: you have to: require 'set'
mossplix has quit [Remote host closed the connection]
<al2o3-cr> mnathani: if you hash is small, it probably be wiser using an array.
mossplix has joined #ruby
<adam12> I benchmarked it. `slice` is the slowest (by about 4x). delete_if with Array and/or Set is comparable.
<mnathani> Thank you
<mnathani> The actual hash is longer and has some nil values in it
<mnathani> So when I test, I get: combined.rb:91:in `<main>': undefined method `each' for nil:NilClass (NoMethodError)
<adam12> mnathani: compact before iterating.
dfucci has joined #ruby
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
<al2o3-cr> adam12: with a more sizeable hash, set would be way more performant. :)
dfucci has quit [Ping timeout: 246 seconds]
<mnathani> did this: jhash.compact!
<adam12> al2o3-cr: Indeed. I'd probably reach for slice almost every time so it's interesting to see how much slower it would of been. Presumably because of the generation of the two Array's vs just the one loop.
<mnathani> However, still getting that error
davispuh has joined #ruby
<adam12> mnathani: You'll need to compact the Array. jhash["product"].compact.each
ChmEarl has joined #ruby
mossplix has quit [Remote host closed the connection]
davispuhh has joined #ruby
davispuh has quit [Ping timeout: 240 seconds]
mossplix has joined #ruby
<mnathani> turns out there is more than one nested array in there
<mnathani> perhaps I should start over with xml from the api?
<mnathani> rather than json > json parse
skx86 has joined #ruby
konsolebox has quit [*.net *.split]
xco has quit [*.net *.split]
lightstalker has quit [*.net *.split]
canton7 has quit [*.net *.split]
lxsameer has quit [*.net *.split]
thecoffemaker has quit [*.net *.split]
dviola has quit [*.net *.split]
pppktz has quit [*.net *.split]
mniip has quit [*.net *.split]
cadeskywalker has quit [*.net *.split]
edwardly has quit [*.net *.split]
arooni_team_b has quit [*.net *.split]
hagabaka has quit [*.net *.split]
SoF has quit [*.net *.split]
ruskie has quit [*.net *.split]
bodgix_ has quit [*.net *.split]
balo has quit [*.net *.split]
JasonO has quit [*.net *.split]
lightstalker has joined #ruby
canton7 has joined #ruby
lxsameer has joined #ruby
xco has joined #ruby
konsolebox has joined #ruby
mniip has joined #ruby
thecoffemaker has joined #ruby
arooni_team_b has joined #ruby
edwardly has joined #ruby
dviola has joined #ruby
pppktz has joined #ruby
cadeskywalker has joined #ruby
SoF has joined #ruby
JasonO has joined #ruby
bodgix_ has joined #ruby
ruskie has joined #ruby
hagabaka has joined #ruby
balo has joined #ruby
orbyt_ has joined #ruby
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Esa__ has joined #ruby
jobewan has quit [Quit: jobewan]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
TCZ has joined #ruby
<al2o3-cr> mnathani: what's not working?
<al2o3-cr> mnathani: show what you're doing in code to get these errors, otherwise it's like the blind leading the blind.
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arzWZM has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 260 seconds]
arzWZM has joined #ruby
bvdw has quit [Quit: The Lounge - https://thelounge.chat]
graphicsv has joined #ruby
bvdw has joined #ruby
infernix has joined #ruby
<al2o3-cr> github dark theme chromium extension is so much easier on the eyes.
makerleader has joined #ruby
<makerleader> what am I doing wrong in that match, where it's lopping off the []?
GodFather has joined #ruby
<adam12> makerleader: \w won't match square bracket.
<havenwood> &>> '[]'.match? /\w/
<rubydoc> # => false (https://carc.in/#/r/9f54)
<adam12> atleast if I remember.
<adam12> makerleader: .* might work better for that match.
<makerleader> nice thanks
<havenwood> makerleader: \w is only: [a-zA-Z0-9_]
<havenwood> &>> '[]'.match? /[[:graph:]]/
<rubydoc> # => true (https://carc.in/#/r/9f55)
<havenwood> "Non-blank character (excludes spaces, control characters, and similar)"
<havenwood> Inverted POSIX bracket expressions should probably be documented...
<havenwood> [[:^graph:]]
<havenwood> Or we could keep it secret. Shhhh!
<havenwood> If anyone wants a low-hanging Ruby contribution, betcha a sentence on ^ would be accepted.
bvdw has quit [Quit: The Lounge - https://thelounge.chat]
bvdw has joined #ruby
alfiemax has joined #ruby
schne1der has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Ping timeout: 265 seconds]
cd has quit [Quit: cd]
cthu| has joined #ruby
makerleader has quit [Ping timeout: 245 seconds]
BenDover has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
Azure|dc has quit [Ping timeout: 256 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
phykos has joined #ruby
<phykos> hello there
eddof13 has joined #ruby
xco has joined #ruby
s2013 has joined #ruby
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
Exagone314 is now known as Exagone313
parallels has quit [Remote host closed the connection]
BenDover has joined #ruby
TCZ has quit [Quit: Leaving]
nofxx has quit [Quit: Leaving]
AlwaysInTime has joined #ruby
<havenwood> phykos: hi!
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
gray_-_wolf has joined #ruby
duderonomy has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
cliluw has quit [Ping timeout: 260 seconds]
cliluw has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexherbo2 has joined #ruby
_aeris has joined #ruby
xco has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
_aeris is now known as _aeris_
solars has quit [Quit: Connection closed for inactivity]
elphe has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
elphe has joined #ruby
howdoi has joined #ruby
alfiemax has quit [Ping timeout: 272 seconds]
gray_-_wolf has quit [Quit: WeeChat 2.8]
cliluw has quit [Ping timeout: 260 seconds]
cliluw has joined #ruby
cnsvc has joined #ruby
xyhuvud has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Tempesta_ has joined #ruby
Tempesta has quit [Ping timeout: 264 seconds]
CrazyEddy has quit [Ping timeout: 240 seconds]
akem has quit [Quit: Leaving]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
wymillerlinux has joined #ruby
nate48423 has quit [Ping timeout: 256 seconds]
nate48423 has joined #ruby
Sauvin has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
GodFather has quit [Read error: Connection reset by peer]
dfucci has joined #ruby
bocaneri has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
SeepingN has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
stryek has joined #ruby
gray_-_wolf has joined #ruby
Secret-Fire has quit [Remote host closed the connection]
GodFather has joined #ruby
greypack has quit [Ping timeout: 256 seconds]
<phykos> for Ruby 3, it will be released in 2020?
<phykos> I mean, the development is going strong and fast
Secret-Fire has joined #ruby
Secret-Fire has quit [Max SendQ exceeded]
greypack has joined #ruby
Secret-Fire has joined #ruby
<rapha> W00t? So early?
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phykos> well maybe in the end of the year
<phykos> (?)
s2013 has quit [Quit: Textual IRC Client: www.textualapp.com]
<phykos> Ruby 2.8 is already in development state and man, it's already a bit faster than Ruby 2.7.1 (on my raspberry pi 4)
<havenwood> phykos: The plan is December 25, but that's pending Matz's final approval.
<adam12> phykos: Impossible to know really. Only one who knows is Matz.
<phykos> oh k then
<havenwood> phykos: Watch for 2.8-dev being renamed to 3.0-dev. That'll mean it's on.
<havenwood> phykos: The expectation is that'll happen in the coming months, but Matz has reserved the decision.
<phykos> nah, it's too much immature ruby 2.8
<havenwood> phykos: This year is likely.
<phykos> well I have to go, see you asap guys
<havenwood> phykos: Guilds may delay things.
<havenwood> phykos: Later!
phykos has quit [Quit: Leaving]
<havenwood> Isolates, I mean. :P
<havenwood> Types (Ruby::RDS) and 3x faster on NES emulation have materialized.
<havenwood> Async looks good but are Isolates far enough alonng?
<adam12> My wishlist is probably blessed types of some sort, anonymous structs but without the Perl look, and _maybe_ even something like modulation. I'm reaching a bit on the last one.
<adam12> havenwood: Did you say macro's were being a bit more in favour with Matz?
xco has joined #ruby
<havenwood> adam12: Yeah, I did. What I understood was that Matz was considering using backticks for the new macro syntax but it was determined too much would break to yank them from shelling out.
<havenwood> adam12: But... that means macros are being considered for real!
<adam12> Interesting.
gitter1234 has joined #ruby
<havenwood> adam12: And the ${} anonymous Struct syntax is on the dev meeting schedule for this mo too.
<adam12> I kinda wish Hash's were strict by default like Python too, but that's another story.
DaniG2k has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
<uplime> whats a strict hash?
braincrash has quit [Ping timeout: 240 seconds]
kinduff has joined #ruby
braincrash has joined #ruby
DaniG2k has quit [Ping timeout: 240 seconds]
<adam12> uplime: Doesn't return nil on missing key, but raises KeyError
<adam12> ie. fetch() as the default vs [].
<uplime> ah
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Esa__ has quit []
xco has joined #ruby
<havenwood> #fetch ftw!
<adam12> I just wish fetch == [] and [] == peek or something.
vondruch has quit [Ping timeout: 240 seconds]
<havenwood> mm, yeah - that'd spare a lot of bugs
<adam12> Probably no changing it now :P
CrazyEddy has joined #ruby
Nahra has joined #ruby
DaniG2k has joined #ruby
ruurd has joined #ruby
imode has joined #ruby
ruurd has quit [Quit: Textual IRC Client: www.textualapp.com]
ruurd has joined #ruby
<al2o3-cr> adam12: [1,2,3][5] nil or IndexError
<adam12> al2o3-cr: I'm inclined to say IndexError _but_ only because I can't think of many times I access an array positionally, out side of #first or #last.
<al2o3-cr> adam12: fair. :P
<adam12> I feel like the shorthand should always be strict. You should go out of your way to get nil back. _shrug_
<adam12> But I doubt that will ever change. We'd have to get new constructs in the language to gradually shift to.
maidhc has joined #ruby
<adam12> Is anybody using the new `break` debugger and has seen it work? I havent' been able to go up or down frames any time I've reached for it. Always have to go back to byebug.
alfiemax has quit [Ping timeout: 246 seconds]
<al2o3-cr> adam12: this one: https://github.com/gsamokovarov/break
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12> al2o3-cr: Yes
<al2o3-cr> adam12: first i've come across it tbh.
<al2o3-cr> adam12: i'll give it whirl :P
<adam12> al2o3-cr: Let me know :) It would be nice to end up in an irb or pry session and have debugging capabilities, but anytime I do, it just complains there's no frame to go up or down.
<al2o3-cr> adam12: will do :)
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
DaniG2k has quit [Ping timeout: 240 seconds]
arzWZM has quit [Read error: Connection reset by peer]
arzWZM has joined #ruby
GodFather has quit [Read error: Network is unreachable]
maidhc has joined #ruby
<al2o3-cr> adam12: i get the errors you're getting: 'Cannot go further up/down the stack'
<adam12> al2o3-cr: Weird. I'm watching the YT video right now about it. Maybe they'll demo. https://www.youtube.com/watch?v=3QADeUVwJtA
<al2o3-cr> adam12: i'll take a look too.
<adam12> I think I watched it before and it did. I'm just surprised I havent' been able to use it.
<al2o3-cr> it looks promising aswell.
DaniG2k has joined #ruby
Nahra has quit [Quit: leaving]
ur5us has joined #ruby
<adam12> al2o3-cr: Interestingly, I can get it to work now.
<al2o3-cr> how?
<adam12> al2o3-cr: Video kind of helped. You can't go up frames that break hasn't seen yet.
<adam12> So you need to step into one before you can go up.
<adam12> next seems to work.
<al2o3-cr> ah! let me retry.
<adam12> I'd been trying it constantly to go back up the stack to poke at something I didn't want to step through. I think that was my issue.
yxhuvud has joined #ruby
<al2o3-cr> adam12: hmm.. no joy.
chalkmonster has quit [Quit: WeeChat 2.8]
<al2o3-cr> it works in irb with binding.irb but not in pry with binding.pry for some weird reason. in pry just next or step just jump to From: /usr/lib/ruby/2.7.0/forwardable.rb:229 Pry#hooks:
BenDover has quit [Quit: BenDover]
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr> i'll take a proper look tomorrow.
DaniG2k has quit [Quit: leaving]
jetchisel has joined #ruby
maidhc has joined #ruby
maidhc has quit [Client Quit]
maidhc has joined #ruby
wymillerlinux has quit [Ping timeout: 258 seconds]
belak has quit [Quit: The Lounge - https://thelounge.chat]
belak has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
alfiemax has joined #ruby
markoong has quit [Ping timeout: 240 seconds]
AlwaysInTime has quit [Quit: Leaving]
markoong has joined #ruby
jetchisel has quit [Ping timeout: 240 seconds]
belak has left #ruby ["The Lounge - https://thelounge.chat"]
jetchisel has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
schne1der has joined #ruby
troulouliou_dev has joined #ruby
TCZ has joined #ruby
postmodern has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby
mnathani has quit []
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
greypack has quit [Quit: All your IRC are belong to ZNC]
elphe has quit [Ping timeout: 272 seconds]
maidhc has joined #ruby
wymillerlinux has joined #ruby
maidhc has quit [Client Quit]
schne1der has quit [Ping timeout: 264 seconds]
skx86 has quit [Quit: Connection closed for inactivity]
maidhc has joined #ruby
TCZ has quit [Quit: Leaving]
ruurd has quit [Quit: Textual IRC Client: www.textualapp.com]
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maidhc has joined #ruby
greypack has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
roshanavand_ has joined #ruby
gray_-_wolf has quit [Quit: WeeChat 2.8]
roshanavand__ has quit [Ping timeout: 256 seconds]
drincruz has quit [Ping timeout: 256 seconds]
elphe has joined #ruby
alexherbo2 has quit [Ping timeout: 246 seconds]
elphe has quit [Ping timeout: 264 seconds]
roshanavand_ has quit [*.net *.split]
gix has quit [*.net *.split]
troulouliou_dev has quit [*.net *.split]
nate48423 has quit [*.net *.split]
konsolebox has quit [*.net *.split]
dviola has quit [*.net *.split]
lightstalker has quit [*.net *.split]
canton7 has quit [*.net *.split]
lxsameer has quit [*.net *.split]
thecoffemaker has quit [*.net *.split]
mniip has quit [*.net *.split]
pppktz has quit [*.net *.split]
edwardly has quit [*.net *.split]
arooni_team_b has quit [*.net *.split]
cadeskywalker has quit [*.net *.split]
SoF has quit [*.net *.split]
ruskie has quit [*.net *.split]
hagabaka has quit [*.net *.split]
bodgix_ has quit [*.net *.split]
balo has quit [*.net *.split]
JasonO has quit [*.net *.split]
nate48423 has joined #ruby
Guest37202 has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
baweaver is now known as Guest43691
cadeskywalker has joined #ruby
canton7 has joined #ruby
roshanavand_ has joined #ruby
dviola has joined #ruby
lightstalker has joined #ruby
lxsameer has joined #ruby
mniip has joined #ruby
edwardly has joined #ruby
gix has joined #ruby
troulouliou_dev has joined #ruby
konsolebox has joined #ruby
thecoffemaker has joined #ruby
pppktz has joined #ruby
SoF has joined #ruby
ruskie has joined #ruby
arooni_team_b has joined #ruby
balo has joined #ruby
bodgix_ has joined #ruby
JasonO has joined #ruby
hagabaka has joined #ruby
Guest43691 has quit [Ping timeout: 246 seconds]
lemur has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
davispuhh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
eddof13 has quit [Read error: Connection reset by peer]
wymillerlinux has quit [Ping timeout: 240 seconds]
cthu| has quit [Ping timeout: 256 seconds]
markoong has quit [Ping timeout: 240 seconds]
maidhc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]