#ruby - 20 April 2019
« Back 1 day Forward 1 day »
[01:03:08] 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.
[01:04:07] Net: my question was solely if there was a better way to update an element on an array based on a condition
[01:05:14] adam12: Net: It looks fine as it is, but if that line is nested in a loop there's a chance it's suboptimal.
[01:08:32] 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
[01:10:42] Net: I've worked with both years ago, but I could use some reading to brush up—I don't remember much.
[01:11:58] havenwood: Net: The Rails docs are a pretty good read. I like just reading nicely written Ruby code for patterns.
[01:13:39] havenwood: The Well Grounded Rubyist isn't super advanced, but it just had a new version released.
[01:15:32] Net: I've got The Well Grounded Rubyest 3rd ed. on Kindle, What's Kestrels, Quirky Birds, and Hopeless Egocentricity about?
[01:17:04] 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.
[01:18:53] havenwood: Net: Here're some Ruby project's I've starred: https://github.com/havenwood?language=ruby&tab=stars
[01:19:41] havenwood: Net: Yeah, RubyKaigi talks are great! I'd suggest watching RubyConf and RailsConf talks too.
[01:21:13] 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.
[01:25:05] havenwood: adam12: Day 2, Beyond `puts`: TruffleRuby's Modern Debugger using Chrome y nirvdrum
[01:25:30] adam12: havenwood: That sounds like a good one. I feel like CRuby getting that ability would be a huge step forward too.
[01:28:47] 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.
[02:27:11] 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 :(