baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.4.6: 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!
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
truenito has joined #ruby
truenito has quit [Remote host closed the connection]
bambanx has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
galaxie has quit [Ping timeout: 256 seconds]
Dbugger has quit [Ping timeout: 264 seconds]
Swyper has quit [Remote host closed the connection]
jrafanie has joined #ruby
jrafanie has quit [Client Quit]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<Net> Is there a better way to write `@users[@users.index { |u| u.id == id }] = user`?
Swyper has joined #ruby
tdy2 has joined #ruby
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
<adam12> Net: Maybe? Can you share more than a single line?
<Net> adam12: you're wondering if @users should be a hash?
<adam12> Net: It might be faster lookup when concerning big-O, but in reality you have 2 guest objects so I'm presuming the puzzle is larger than a single line.
<Net> adam12: it's not, I'm just lazy. It'll get refactored to a hash later
<Net> my question was solely if there was a better way to update an element on an array based on a condition
AJA4351 has joined #ruby
<Net> trying to familiarize myself with the stdlib :)
<adam12> Net: It looks fine as it is, but if that line is nested in a loop there's a chance it's suboptimal.
<Net> thanks!
AJA4350 has quit [Ping timeout: 245 seconds]
AJA4351 is now known as AJA4350
<havenwood> Net: Are there no duplicates in the Array?
<Net> havenwood: no dupes
<havenwood> Net: A Set would also work. You could delete the old and add the new.
<havenwood> Net: A Hash has appealing aspects if you're searching by ID.
<Net> interesting. in this case it's just a hacky way to update some json in redis until I move this data into postgres, but I'll keep that in mind
tdy2 is now known as tdy
<havenwood> Net: With a Set: @users.delete(@users.find { |u| u.id == id }) << user
<Net> Any recommended books or articles for learning ruby and RoR?
<Net> I've worked with both years ago, but I could use some reading to brush up—I don't remember much.
<Net> Really I just want to get a feel for common idioms and more advanced concepts
<havenwood> Net: The Rails docs are a pretty good read. I like just reading nicely written Ruby code for patterns.
<Net> and where might I find nicely written Ruby code? :)
<havenwood> Net: I just saw a reallly nice Ruby cookbook, but it's in Japanese. ¯\_(ツ)_/¯
<havenwood> Maybe there's an English version?
sylario has quit [Quit: Connection closed for inactivity]
<havenwood> The Well Grounded Rubyist isn't super advanced, but it just had a new version released.
<havenwood> Net: It looks like there's "Wicked Cool Ruby Scripts" (i haven't read it)
<havenwood> Net: or Kestrels, Quirky Birds, and Hopeless Egocentricity
mangold has joined #ruby
<havenwood> Net: Or GitHub has a ton of great code reading!
<Net> I've got The Well Grounded Rubyest 3rd ed. on Kindle, What's Kestrels, Quirky Birds, and Hopeless Egocentricity about?
<Net> Looks like haskell in ruby
<Net> any specific GitHub projects?
<havenwood> Net: Jeremy Evans is about to give a talk at RubyKaigi on how he used best practices to make Sequel and Roda competitively fast. Those are great.
<Net> Do I need to learn Japanese?
<havenwood> Net: Nope!
<havenwood> Net: Here're some Ruby project's I've starred: https://github.com/havenwood?language=ruby&tab=stars
<Net> Worth watching past RubyKaigi talks?
<Net> thanks!
<havenwood> Net: Yeah, RubyKaigi talks are great! I'd suggest watching RubyConf and RailsConf talks too.
<Net> Will do, thank you!
<Net> great commenting in roda
<havenwood> Net: And all talks Rich Hickey has given ;) He's an oracle
<adam12> Just beware that Roda is obsessed with performance and some code is a bit more opaque because of that. Jeremy comes up with some very creative solutions.
<Net> 👍🏼
<adam12> Any talks with Sandy Metz are great too.
<Net> noted
AndroidKitKat has quit [Ping timeout: 255 seconds]
<havenwood> +1
duderonomy has joined #ruby
<adam12> havenwood: are you at rubykaigi now?
<havenwood> adam12: yup!
<adam12> havenwood: favourite talk so far?
<havenwood> adam12: Day 1, Fibers are the Right Solution by ioquatix
<adam12> havenwood: Ah yeah. Excited to watch that. Been following Falcon fairly closely.
<havenwood> adam12: Day 2, Beyond `puts`: TruffleRuby's Modern Debugger using Chrome y nirvdrum
<adam12> havenwood: That sounds like a good one. I feel like CRuby getting that ability would be a huge step forward too.
<havenwood> I think those are both really exciting!
<havenwood> adam12: Yeah, it seems very possible for CRuby and JRuby too
<adam12> havenwood: Did you catch the zeitwork loader one?
<adam12> havenwood: or the new gem dependency one from matthewd? interested in both.
<havenwood> adam12: No, I wanted to but missed it
<adam12> Code loading is probably my biggest painpoint right now.
<adam12> (and in that, code reloading to some degree)
<havenwood> For folk who aren't familiar, Gel! https://github.com/gel-rb/gel
<havenwood> `gem install -g` ftw ;P
<unixabg> havenwood: first thank you for the response. I did not know if there was something built in I could not see. I will look into a gem.
<havenwood> adam12: I look forward to Zeitwerk - seems like a huge improvement
mangold has quit [Quit: This computer has gone to sleep]
ricekrispie has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
mat_bug has joined #ruby
wallace_mu has quit [Remote host closed the connection]
unixabg has left #ruby [#ruby]
AJA4350 has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mat_bug has quit [Ping timeout: 245 seconds]
noobineer has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
<IGnorAND> I seriously need to go read up on rspec with context/describe and let. I'm getting errors because my let isn't being executed :(
mat_bug has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
laaron has joined #ruby
Ai9zO5AP has joined #ruby
mat_bug has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby
apparition has joined #ruby
s3nd1v0g1us has quit [Quit: WeeChat 2.2]
KeyJoo has joined #ruby
braincrash has quit [Quit: bye bye]
DmitryBochkarev has joined #ruby
braincras has joined #ruby
pupsikov has joined #ruby
dsmythe has quit [Ping timeout: 268 seconds]
AndroidKitKat has joined #ruby
dsmythe has joined #ruby
Nicmavr has quit [Quit: ZNC 1.7.0 - https://znc.in]
Nicmavr has joined #ruby
tdy has joined #ruby
_whitelogger has joined #ruby
apparition has quit [Quit: Bye]
mat_bug has joined #ruby
maryo has quit [Ping timeout: 245 seconds]
DmitryBochkarev has quit [Ping timeout: 246 seconds]
maryo has joined #ruby
houhoulis has quit [Remote host closed the connection]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guatajuk has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pupsikov has joined #ruby
pupsikov has quit [Client Quit]
noobineer has quit [Ping timeout: 250 seconds]
maryo has quit [Ping timeout: 246 seconds]
kapil____ has joined #ruby
bambanx has quit [Quit: Leaving]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
mat_bug has quit [Ping timeout: 250 seconds]
rippa has joined #ruby
Swyper has quit [Remote host closed the connection]
cd has joined #ruby
DmitryBochkarev has joined #ruby
Ai9zO5AP has quit [Quit: WeeChat 2.4]
pupsikov has joined #ruby
dellavg_ has joined #ruby
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schleppel has joined #ruby
imadper has quit [Remote host closed the connection]
imadper has joined #ruby
ramfjord has joined #ruby
KeyJoo has quit [Quit: KeyJoo]
nadir has quit [Quit: Connection closed for inactivity]
ramfjord has quit [Ping timeout: 250 seconds]
DmitryBochkarev has quit [Ping timeout: 244 seconds]
duderonomy has joined #ruby
apparition has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
hightower2 has joined #ruby
apparition has quit [Quit: Bye]
Swyper has joined #ruby
ljarvis__ has quit [Ping timeout: 255 seconds]
sameerynho has joined #ruby
ljarvis__ has joined #ruby
nakuku has joined #ruby
nakuku has quit [Remote host closed the connection]
bugtender has joined #ruby
DmitryBochkarev has joined #ruby
flak has joined #ruby
mat_bug has joined #ruby
cedum has joined #ruby
rippa has quit [Ping timeout: 244 seconds]
j416 has quit [Ping timeout: 244 seconds]
ua has quit [Ping timeout: 252 seconds]
sagax has quit [Ping timeout: 250 seconds]
bugtender has quit [Remote host closed the connection]
j416 has joined #ruby
sagax has joined #ruby
ua has joined #ruby
guatajuk has quit [Quit: guatajuk]
bugtender has joined #ruby
uranoss has quit [Quit: Connection closed for inactivity]
def_jam has joined #ruby
eb0t_ has joined #ruby
eblip has quit [Ping timeout: 250 seconds]
eb0t has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
mat_bug has quit [Ping timeout: 246 seconds]
mat_bug has joined #ruby
bugtender has quit []
mangold has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
cedum has quit [Ping timeout: 250 seconds]
eb0t has joined #ruby
eblip has joined #ruby
kyrylo has joined #ruby
def_jam has quit [Ping timeout: 255 seconds]
eb0t_ has quit [Ping timeout: 246 seconds]
Dbugger has joined #ruby
conta has joined #ruby
hightower2 has quit [Ping timeout: 268 seconds]
dsmythe has quit [Remote host closed the connection]
ziyadb has left #ruby [#ruby]
dsmythe has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
mat_bug has quit [Remote host closed the connection]
mat_bug has joined #ruby
mat_bug has quit [Ping timeout: 244 seconds]
dhollinger has quit [Read error: Connection reset by peer]
dhollinger has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
RedNifre has quit [Ping timeout: 259 seconds]
DmitryBochkarev has quit [Ping timeout: 255 seconds]
jefffrails35 has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
jefffrails35 has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
jefffrails35 has joined #ruby
hanmac has quit [Remote host closed the connection]
fphilipe has joined #ruby
mangold has joined #ruby
Inline has quit [Quit: Leaving]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
nowhere_man has joined #ruby
tdy has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
fphilipe has quit [Read error: Connection reset by peer]
Inline has joined #ruby
fphilipe has joined #ruby
tdy has quit [Ping timeout: 244 seconds]
RedNifre has joined #ruby
clemens3_ has joined #ruby
nowhere_man has quit [Ping timeout: 258 seconds]
Inline has quit [Ping timeout: 264 seconds]
Inline has joined #ruby
ellcs has joined #ruby
pwnd_nsfw` has joined #ruby
nowhere_man has joined #ruby
pwnd_nsfw has quit [Ping timeout: 255 seconds]
fphilipe has quit [Read error: Connection reset by peer]
conta has quit [Quit: conta]
AJA4350 has joined #ruby
nowhere_man has quit [Ping timeout: 258 seconds]
ellcs has quit [Ping timeout: 240 seconds]
kyrylo has joined #ruby
nowhere_man has joined #ruby
clemens3_ has quit [Ping timeout: 246 seconds]
Inline has quit [Ping timeout: 264 seconds]
RedNifre has quit [Ping timeout: 264 seconds]
matti has joined #ruby
RedNifre has joined #ruby
DmitryBochkarev has joined #ruby
nowhere_man has quit [Ping timeout: 258 seconds]
UncleCid__ has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 244 seconds]
Inline has joined #ruby
Inline is now known as oleo
oleo is now known as Inline
DmitryBochkarev has quit [Ping timeout: 268 seconds]
Inline is now known as temporal_0
nowhere_man has joined #ruby
temporal_0 has quit [Quit: Leaving]
temporal_0 has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
_whitelogger has joined #ruby
mangold has joined #ruby
nadir has joined #ruby
nowhere_man has quit [Ping timeout: 258 seconds]
iNs has quit [Remote host closed the connection]
iNs has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
phaul has quit [Quit: :wq]
temporal_0 is now known as Inline
RedNifre has left #ruby ["WeeChat 1.9.1"]
Inline has quit [Quit: Leaving]
Inline has joined #ruby
Fernando-Basso has joined #ruby
hightower2 has joined #ruby
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
galaxie has joined #ruby
phaul has joined #ruby
guatajuk has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
galeido has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
pupsikov has joined #ruby
pupsikov has quit [Client Quit]
Nicmavr has quit [Ping timeout: 245 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cranq has quit [Remote host closed the connection]
cranq has joined #ruby
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
nadir has quit [Quit: Connection closed for inactivity]
cow[moo] has joined #ruby
tdy has joined #ruby
sphenxes has joined #ruby
lomex has joined #ruby
TiglatePileser has joined #ruby
h3ll0w0rld has joined #ruby
lucasb has joined #ruby
Nicmavr has joined #ruby
Swyper has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
nadir has joined #ruby
jottr has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TiglatePileser has quit []
DmitryBochkarev has joined #ruby
h3ll0w0rld has quit [Ping timeout: 246 seconds]
cd has quit [Quit: cd]
h3ll0w0rld has joined #ruby
h3ll0w0rld has quit [Ping timeout: 255 seconds]
h3ll0w0rld has joined #ruby
DmitryBochkarev has quit [Read error: Connection reset by peer]
DmitryBochkarev has joined #ruby
Swyper has quit [Remote host closed the connection]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has joined #ruby
suukim has joined #ruby
cow[moo] has joined #ruby
fphilipe has joined #ruby
DmitryBochkarev has quit [Ping timeout: 250 seconds]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
cow[moo] has joined #ruby
DmitryBochkarev has joined #ruby
DmitryBochkarev has quit [Max SendQ exceeded]
DmitryBochkarev has joined #ruby
guatajuk has quit [Quit: guatajuk]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
jefffrails35 has quit [Remote host closed the connection]
jesfre has joined #ruby
guatajuk has joined #ruby
DmitryBochkarev has quit [Ping timeout: 246 seconds]
h3ll0w0rld has quit [Quit: Konversation terminated!]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DmitryBochkarev has joined #ruby
reber has joined #ruby
cow[moo] has joined #ruby
guatajuk has quit [Quit: guatajuk]
hiroaki has quit [Ping timeout: 255 seconds]
zachk has joined #ruby
zachk has quit [Changing host]
zachk has joined #ruby
reber has quit [Remote host closed the connection]
jefffrails35 has joined #ruby
jefffrails35 has quit [Remote host closed the connection]
vrih has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d^sh has quit [Ping timeout: 268 seconds]
d^sh has joined #ruby
cow[moo] has joined #ruby
guatajuk has joined #ruby
SuperL4g has joined #ruby
SuperLag has quit [Ping timeout: 255 seconds]
layer has joined #ruby
Swyper has quit [Remote host closed the connection]
pupsikov has joined #ruby
SuperLag has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
SuperL4g has quit [Ping timeout: 255 seconds]
cow[moo] has quit [Client Quit]
pupsikov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hightower3 has joined #ruby
Swyper has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
Swyper has quit [Remote host closed the connection]
jesfre has quit []
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
ellcs has joined #ruby
DmitryBochkarev has quit [Ping timeout: 250 seconds]
hiroaki has joined #ruby
DmitryBochkarev has joined #ruby
AJA4350 has quit [Ping timeout: 250 seconds]
Swyper has joined #ruby
guatajuk has quit [Quit: guatajuk]
kapil____ has quit [Quit: Connection closed for inactivity]
agent_white has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
s3nd1v0g1us has joined #ruby
DmitryBochkarev has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
suukim has quit [Quit: Konversation terminated!]
laaron has quit [Remote host closed the connection]
s3nd1v0g1us is now known as w4ld0
laaron has joined #ruby
dsmythe has quit [Read error: Connection reset by peer]
dsmythe has joined #ruby
clemens3_ has joined #ruby
s3nd1v0g1us has joined #ruby
w4ld0 has quit [Ping timeout: 258 seconds]
nadir has joined #ruby
_joes_ has joined #ruby
hightower3 has quit [Changing host]
hightower3 has joined #ruby
BH23 has joined #ruby
weird_error has joined #ruby
Dbugger has quit [Quit: Leaving]
layer has quit [Remote host closed the connection]
jottr has quit [Quit: WeeChat 2.4]
jottr has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
fphilipe has quit [Ping timeout: 255 seconds]
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
mozzarella has quit [Remote host closed the connection]
fphilipe has joined #ruby
mozzarella has joined #ruby
mozzarella has quit [Remote host closed the connection]
DmitryBochkarev has quit [Ping timeout: 255 seconds]
mozzarella has joined #ruby
houhoulis has joined #ruby
fphilipe has quit [Quit: WeeChat 2.4]
minimal_life has joined #ruby
flak has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
AJA4350 has joined #ruby
weird_error has quit [Quit: weird_error]
sphenxes has quit [Quit: Leaving]
s3nd1v0g1us has quit [Quit: WeeChat 2.2]
_joes_ has quit [Ping timeout: 245 seconds]
BH23 has quit [Ping timeout: 255 seconds]
fphilipe has joined #ruby
fphilipe has left #ruby ["WeeChat 2.4"]
fphilipe has joined #ruby
_whitelogger has joined #ruby
fphilipe has quit [Quit: WeeChat 2.4]
reber has joined #ruby
fphilipe has joined #ruby
fphilipe has quit [Client Quit]
fphilipe has joined #ruby
fphilipe_ has joined #ruby
hightower3 has quit [Read error: Connection timed out]
hightower3 has joined #ruby
fphilipe_ has quit [Client Quit]
wildermind has joined #ruby
dviola has quit [Quit: WeeChat 2.4]
dsmythe_ has joined #ruby
dsmythe has quit [Ping timeout: 244 seconds]
dsmythe_ has quit [Ping timeout: 240 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
dsmythe has joined #ruby
vrih has quit [Ping timeout: 255 seconds]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
minimal_life has quit [Quit: I am functioning within established parameters.]
ellcs has quit [Ping timeout: 258 seconds]
sagax has quit [Ping timeout: 246 seconds]
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
dkmueller has joined #ruby
dkmueller has quit [Remote host closed the connection]
sameerynho has quit [Ping timeout: 255 seconds]
dkmueller has joined #ruby
fphilipe has quit [Ping timeout: 246 seconds]
SCHAPiE has quit [Quit: ZNC - https://znc.in]
dkmueller has quit [Remote host closed the connection]
dkmueller has joined #ruby
dkmueller has quit [Remote host closed the connection]
dkmueller has joined #ruby
dkmueller has quit [Remote host closed the connection]
dkmueller has joined #ruby
dkmueller has quit [Remote host closed the connection]
SCHAPiE has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
reber has quit [Remote host closed the connection]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 255 seconds]
AJA4351 is now known as AJA4350
RiPuk has quit [Ping timeout: 255 seconds]
RiPuk has joined #ruby
fphilipe has joined #ruby
jottr_ has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
clemens3_ has quit [Ping timeout: 255 seconds]
krawchyk has joined #ruby
wildermind has quit [Quit: Connection closed for inactivity]
krawchyk has quit [Client Quit]
jottr has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 246 seconds]
fphilipe has quit [Ping timeout: 255 seconds]
agent_white has quit [Quit: brb]
agent_white has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]