« Back to channel list

#ruby - 16 December 2018

« Back 1 day Forward 1 day »
[00:07:56] nickjj: has joined #ruby
[00:08:00] serard_: has joined #ruby
[00:10:22] dbz: has joined #ruby
[00:21:47] Tom-_: has left #ruby: ("Leaving")
[00:23:47] serard__: has joined #ruby
[00:27:40] themsay: has joined #ruby
[00:28:15] houhoulis: has joined #ruby
[00:29:27] blackswan: has left #ruby: ()
[00:35:08] dbz: has joined #ruby
[00:35:24] baweaver: Question for the group
[00:35:38] baweaver: Array methods like push, pop, and shovel operators are fairly common
[00:35:46] baweaver: Queue-like methods seem less so
[00:36:02] baweaver: Would it be an altogether bad idea to skip explaining them in a beginners tutorial?
[00:36:46] baweaver: shift and unshift are so danged rare it seems except for command-line / bin type scripts. They're also substantially less efficient.
[00:37:07] baweaver: (unless Ruby started doing some real black magic to arrays recently)
[00:37:14] baweaver: havenwood: What say ye?
[00:39:43] phaul: baweaver: just my two cents. it doesnt matter. If your goal is to cover Array why not. I would myself put the emphasis on data structures, and how Array can represent many things, but that's my thinking, probably not what you want to teach them
[00:40:15] baweaver: More that I end up covering so much that I have to skiff on some areas.
[00:40:31] themsay: has joined #ruby
[00:41:30] phaul: I mean I agree its not the most essential or if you ask me the most elegant thing.. Seems Ruby array is everything. including Sets ..
[00:42:00] phaul: hard to find something an Array is not
[00:43:24] rubydoc: # => false (https://carc.in/#/r/5ssn)
[00:43:26] baweaver: Seems easy to me
[00:44:13] themsay: has joined #ruby
[00:47:25] Azure: has joined #ruby
[00:53:16] MasterAsia: has joined #ruby
[00:53:31] y0u: has joined #ruby
[00:56:15] leftylink: baweaver: I would show you https://stackoverflow.com/questions/8353026/what-is-the-run-time-of-shift-unshift-in-a-ruby-array/47683752#47683752 regarding the efficiency of shift/unshift, but I guess knowing this still doesn't necessarily mean you do want to explain them
[00:56:51] leftylink: I guess it just means that the performance wouldn't be the reason to disqualify them; if you disqualify them it'd be for other reasons
[01:00:37] baweaver: Aha, so they did fix it. I just use them so rarely I never check. Good find leftylink
[01:05:32] vonfry: has joined #ruby
[01:10:27] venmx: has joined #ruby
[01:10:52] KeyJoo: has joined #ruby
[01:11:28] nfk: has joined #ruby
[01:19:50] orbyt_: has joined #ruby
[01:31:33] cpruitt: has joined #ruby
[01:32:20] donofrio: has joined #ruby
[01:32:39] code_zombie: has joined #ruby
[01:35:23] Fusl: has joined #ruby
[01:35:26] donofrio: has joined #ruby
[01:35:39] serard_: has joined #ruby
[01:47:13] cpruitt: has joined #ruby
[02:09:41] donofrio: has joined #ruby
[02:23:24] kapil____: has joined #ruby
[02:30:40] serard_: has joined #ruby
[02:31:27] dbz: has joined #ruby
[02:35:17] cagomez: has joined #ruby
[02:39:44] donofrio: has joined #ruby
[02:47:24] nchambers: has joined #ruby
[02:49:26] cnsvc: has joined #ruby
[02:57:55] segy: has joined #ruby
[02:59:59] arescorpio: has joined #ruby
[03:01:44] cagomez: has joined #ruby
[03:10:54] BTRE: has joined #ruby
[03:14:20] cpruitt: has joined #ruby
[03:27:37] mikecmpbll: has joined #ruby
[03:39:11] _whitelogger: has joined #ruby
[03:42:04] lose: has joined #ruby
[03:47:34] cnsvc: has joined #ruby
[03:57:35] Arkantos: has joined #ruby
[04:09:07] braincrash: has joined #ruby
[04:09:19] DTZUZO: has joined #ruby
[04:16:14] roshanavand1: has joined #ruby
[04:19:19] serard_: has joined #ruby
[04:26:39] JoshS: has joined #ruby
[04:27:44] JoshS: has joined #ruby
[04:34:42] nchambers: has joined #ruby
[04:52:41] cpruitt: has joined #ruby
[05:19:00] spacesuitdiver: has joined #ruby
[05:19:56] jordanm: has joined #ruby
[05:20:50] serard_: has joined #ruby
[05:48:09] cnsvc: has joined #ruby
[06:01:16] rippa: has joined #ruby
[06:12:57] graphene: has joined #ruby
[06:20:57] graphene: has joined #ruby
[06:23:36] graphene: has joined #ruby
[06:25:49] graphene: has joined #ruby
[06:27:37] graphene: has joined #ruby
[06:35:23] Dbugger: has joined #ruby
[06:40:55] endemic: has joined #ruby
[06:42:28] CrazyEddy: has joined #ruby
[06:44:03] cpruitt: has joined #ruby
[06:57:40] serard_: has joined #ruby
[06:59:49] cnsvc: has joined #ruby
[07:03:03] cpruitt: has joined #ruby
[07:03:27] dinfuehr: has joined #ruby
[07:09:10] _whitelogger: has joined #ruby
[07:14:55] dbz: has joined #ruby
[07:20:31] donofrio: has joined #ruby
[07:20:51] JoshS: has joined #ruby
[07:27:01] dedRabbit: has joined #ruby
[07:33:31] dellavg_: has joined #ruby
[07:34:53] JoshS: has joined #ruby
[07:36:31] cpruitt: has joined #ruby
[07:39:04] stooj: has joined #ruby
[07:47:36] MasterAsia: has joined #ruby
[08:05:07] gigetoo: has joined #ruby
[08:08:00] neuraload: has joined #ruby
[08:09:03] RougeR: has joined #ruby
[08:21:23] serard_: has joined #ruby
[08:24:30] dbz: has joined #ruby
[08:29:07] roshanavand: has joined #ruby
[08:31:11] gix: has joined #ruby
[08:33:41] za1b1tsu: has joined #ruby
[08:36:00] conta: has joined #ruby
[09:05:05] RedNifre: has joined #ruby
[09:06:59] za1b1tsu: has joined #ruby
[09:08:57] graphene: has joined #ruby
[09:12:50] reber: has joined #ruby
[09:24:10] _whitelogger: has joined #ruby
[09:32:29] cnsvc_: has joined #ruby
[09:32:54] MasterAsia: has joined #ruby
[09:33:10] cpruitt: has joined #ruby
[09:34:21] horst: has joined #ruby
[09:38:50] ellcs: has joined #ruby
[09:39:06] cpruitt: has joined #ruby
[09:39:17] clemens3: has joined #ruby
[09:39:24] conta: has joined #ruby
[09:42:07] InfinityFye: has joined #ruby
[09:42:40] conta1: has joined #ruby
[09:47:05] za1b1tsu: has joined #ruby
[09:58:31] serard_: has joined #ruby
[10:00:37] ua: has joined #ruby
[10:20:28] universa1: has joined #ruby
[10:21:23] conta: has joined #ruby
[10:27:16] lucasb: has joined #ruby
[10:30:06] roshanavand: has joined #ruby
[10:33:58] cnsvc_: has joined #ruby
[10:34:47] phaul: has joined #ruby
[10:35:24] mikecmpbll: has joined #ruby
[11:18:45] xuyuheng: has joined #ruby
[11:19:04] serard_: has joined #ruby
[11:30:15] cpruitt: has joined #ruby
[11:49:54] kapil____: has joined #ruby
[12:04:28] Arkantos: has joined #ruby
[12:19:31] Inline: has joined #ruby
[12:19:56] gigetoo: has joined #ruby
[12:22:56] Inline: has joined #ruby
[12:29:36] Arkantos: has joined #ruby
[12:32:02] cd: has joined #ruby
[12:33:52] conta: has joined #ruby
[12:34:14] neuraload: has joined #ruby
[12:38:23] Inline: has joined #ruby
[12:43:27] lxsameer: has joined #ruby
[12:44:55] conta: has joined #ruby
[12:45:23] neuraload: has joined #ruby
[12:48:14] eb0t: has joined #ruby
[12:51:18] cpruitt: has joined #ruby
[13:04:54] Arkantos: has joined #ruby
[13:15:42] roshanavand: has joined #ruby
[13:21:09] _whitelogger: has joined #ruby
[13:31:00] graphene: has joined #ruby
[13:42:56] AJA4350: has joined #ruby
[13:51:55] KeyJoo: has joined #ruby
[14:05:18] themsay: has joined #ruby
[14:17:46] perique: has joined #ruby
[14:19:06] desperek: has joined #ruby
[14:23:41] serard_: has joined #ruby
[14:24:36] lose: has joined #ruby
[14:37:16] reber: has joined #ruby
[14:47:40] Sylario: has joined #ruby
[14:50:33] exchgr`: has joined #ruby
[14:55:59] perique: has joined #ruby
[15:02:02] elphe: has joined #ruby
[15:10:43] conta: has joined #ruby
[15:16:49] dellavg_: has joined #ruby
[15:18:06] graphene: has joined #ruby
[15:19:27] cnsvc_: has joined #ruby
[15:21:00] cow[moo]: has joined #ruby
[15:23:23] roshanavand: has joined #ruby
[15:29:26] graphene: has joined #ruby
[15:33:05] cpruitt: has joined #ruby
[15:35:36] cagomez: has joined #ruby
[15:35:57] davidw: has joined #ruby
[15:36:59] DTZUZO: has joined #ruby
[15:45:06] dellavg_: has joined #ruby
[15:54:27] Flonk: has joined #ruby
[15:55:13] serard_: has joined #ruby
[16:03:40] n13z: has joined #ruby
[16:09:49] dinfuehr: has joined #ruby
[16:13:13] dellavg_: has joined #ruby
[16:15:42] dinfuehr: has joined #ruby
[16:17:50] orbyt_: has joined #ruby
[16:18:47] conta: has joined #ruby
[16:25:52] dinfuehr: has joined #ruby
[16:26:28] conta1: has joined #ruby
[16:31:40] mads2: has joined #ruby
[16:43:47] knightblader: has joined #ruby
[16:45:50] knightblader: has left #ruby: ()
[16:46:34] kurko_: has joined #ruby
[16:51:54] dtzuzu: has joined #ruby
[16:59:01] graphene: has joined #ruby
[17:07:02] kurko_: has joined #ruby
[17:08:31] elphe: has joined #ruby
[17:09:32] conta: has joined #ruby
[17:17:12] dinfuehr: has joined #ruby
[17:18:04] dbz: has joined #ruby
[17:21:34] millerti: has joined #ruby
[17:24:43] za1b1tsu: has joined #ruby
[17:26:58] serard__: has joined #ruby
[17:27:19] yasserhussain111: has joined #ruby
[17:27:27] yasserhussain111: has left #ruby: ()
[17:29:34] dviola: has joined #ruby
[17:30:07] serard: has joined #ruby
[17:35:07] code_zombie: has joined #ruby
[17:37:48] houhoulis: has joined #ruby
[17:57:53] cnsvc_: has joined #ruby
[17:59:59] reber: has joined #ruby
[18:05:00] graphene: has joined #ruby
[18:05:35] dbz: has joined #ruby
[18:11:12] dbz: has joined #ruby
[18:13:11] s3nd1v0g1us: has joined #ruby
[18:20:33] alxd: has joined #ruby
[18:26:13] dbz: has joined #ruby
[18:26:22] hutch: has joined #ruby
[18:27:23] troulouliou_dev: has joined #ruby
[18:30:08] graphene: has joined #ruby
[18:30:36] akem: has joined #ruby
[18:31:36] mads2: has joined #ruby
[18:35:09] DTZUZO: has joined #ruby
[18:39:50] Dbugger: has joined #ruby
[18:52:39] donofrio: has joined #ruby
[18:55:47] johnny56: has joined #ruby
[19:00:40] ellcs: has joined #ruby
[19:07:04] hutch: has joined #ruby
[19:09:42] cnsvc_: has joined #ruby
[19:14:45] ua: has joined #ruby
[19:16:22] donofrio: has joined #ruby
[19:19:08] donofrio: has joined #ruby
[19:22:32] zenspider: has joined #ruby
[19:26:56] fluxAeon: has joined #ruby
[19:32:40] donofrio: has joined #ruby
[19:34:54] clemens3: has joined #ruby
[19:46:07] orbyt_: has joined #ruby
[20:02:13] Aqo: has joined #ruby
[20:07:48] orbyt_: has joined #ruby
[20:08:47] akem: has joined #ruby
[20:09:06] houhoulis: has joined #ruby
[20:13:58] Renich: has joined #ruby
[20:24:33] AndBobsYourUncle: has joined #ruby
[20:25:02] graphene: has joined #ruby
[20:28:19] _joes_: has joined #ruby
[20:28:48] BH23: has joined #ruby
[20:29:17] tiff: has joined #ruby
[20:30:59] akem: has joined #ruby
[20:33:14] akem: has joined #ruby
[20:34:00] donofrio: has joined #ruby
[20:35:52] ur5us: has joined #ruby
[20:36:08] TomyLobo: has joined #ruby
[20:37:11] akem: has joined #ruby
[20:38:14] hays: I have a module with a function in it, and I want to use this function two ways. but I can't seem to get it to work. when I use the function normally, I need it to be self.function in the module, and when I extend it in a class, it needs to be function
[20:40:32] kaleido: has joined #ruby
[20:42:09] hays: i feel like ruby is always fighting me on certain things...
[20:42:19] hays: I just want to reuse code :)
[20:43:11] _joes_: has joined #ruby
[20:43:12] BH23: has joined #ruby
[20:44:09] cow[moo]: has joined #ruby
[20:48:54] ellcs: has joined #ruby
[21:01:31] donofrio: has joined #ruby
[21:04:47] akem: has joined #ruby
[21:06:29] za1b1tsu: has joined #ruby
[21:09:13] BH23: has joined #ruby
[21:09:34] _joes_: has joined #ruby
[21:10:56] RougeR: has joined #ruby
[21:16:13] elphe: has joined #ruby
[21:17:48] fluxAeon: has joined #ruby
[21:18:30] Wafficus: has joined #ruby
[21:18:57] Wafficus: hi there, question regarding installing gems for Ruby in Linux, I have the same issue as in this GitHub issue: https://github.com/0xsauby/yasuo/issues/33
[21:19:13] Wafficus: can anyone help me adapt the final solution aka "sudo apt-get install zlib1g-dev libsqlite3-dev
[21:19:15] Wafficus: bundle install --path vey
[21:19:17] Wafficus: sudo apt-get install zlib1g-dev libsqlite3-dev
[21:19:19] Wafficus: bundle install --path vendor --gemfile ./Gemfile
[21:19:31] Wafficus: the second part is what I can't comprehend what they mean to make me do
[21:19:58] Wafficus: is it stating to go into a gem file path that was installed for sqllite 3?
[21:24:29] [rg]: has joined #ruby
[21:25:59] graphene: has joined #ruby
[21:28:35] eckhardt: has joined #ruby
[21:33:55] phaul: hays: can you elaborate on what you mean by "when I extend it in a class, it needs to be function". maybe a small code example would help
[21:38:39] cnsvc_: has joined #ruby
[21:44:41] donofrio: has joined #ruby
[21:47:02] cnsvc_: has joined #ruby
[22:02:52] elphe: has joined #ruby
[22:04:12] houhoulis: has joined #ruby
[22:05:42] phaul: hays: you might find this useful.. :
[22:05:48] phaul: &ri module_function
[22:05:48] rubydoc: https://ruby-doc.org/core-2.5.3/Module.html#method-i-module_function
[22:08:56] donofrio: has joined #ruby
[22:09:01] dbz: has joined #ruby
[22:11:30] cow[moo]: has joined #ruby
[22:21:12] dbz: has joined #ruby
[22:22:13] MasterAsia: has joined #ruby
[22:24:01] lucasb: has joined #ruby
[22:27:53] andrewray: has joined #ruby
[22:28:16] andrewray: I want to make a custom rspec matcher so I can do expect { x() }.to do_my_thing <- but having trouble definining do_my_thing
[22:28:47] andrewray: oh wait maybe it's https://relishapp.com/rspec/rspec-expectations/docs/custom-matchers/define-a-matcher-supporting-block-expectations
[22:39:24] donofrio: has joined #ruby
[22:41:25] andrewray: but I can't figure out how to do expect{a}.to raise_error().or *not* eq(some_thing)
[22:41:34] andrewray: is there a .or_not ?
[22:42:22] andrewray: I want to verify something either raises an error, *or* doesn't match some condition
[22:44:30] weaksauce: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[23:02:30] go|dfish: has joined #ruby
[23:09:40] andrewray: I'm doing `RSpec::Matchers.define_negated_matcher :not_eq, :eq` but it's not letting me `expect{a}.to raise_error().or not_eq('yyy')`
[23:13:04] andrewray: rspec dsl so funky
[23:13:49] mads2: has joined #ruby
[23:15:13] dviola: has joined #ruby
[23:16:02] elphe: has joined #ruby
[23:20:18] serard: has joined #ruby
[23:21:26] dbz: has joined #ruby
[23:28:54] donofrio: has joined #ruby
[23:31:52] lypsis: has joined #ruby
[23:35:45] donofrio: has joined #ruby
[23:40:24] lypsis: has joined #ruby
[23:44:45] [rg]: has left #ruby: ("Konversation terminated!")
[23:48:20] dbz: has joined #ruby
[23:58:01] mboekhoff: has joined #ruby