« Back to channel list

#ruby - 06 August 2019

« Back 1 day Forward 1 day »
[00:06:32] skryking__: has joined #ruby
[00:09:56] ramfjord: has joined #ruby
[00:21:12] _whitelogger: has joined #ruby
[00:28:36] Tempesta: has joined #ruby
[00:32:04] Tempesta: has joined #ruby
[00:38:27] mochiyoda: has joined #ruby
[00:57:11] mochiyoda: has joined #ruby
[01:00:25] jenrzzz: has joined #ruby
[01:01:40] tf2ftw: has joined #ruby
[01:02:23] tf2ftw: has joined #ruby
[01:03:13] tf2ftw: has joined #ruby
[01:03:58] tf2ftw: has joined #ruby
[01:04:42] tf2ftw: has joined #ruby
[01:05:03] henninb: has joined #ruby
[01:17:26] kyrylo: has joined #ruby
[01:36:45] funnel: has joined #ruby
[01:37:28] hc^: has joined #ruby
[01:40:19] bmurt: has joined #ruby
[01:43:51] eo^: has joined #ruby
[02:03:27] Nicmavr: has joined #ruby
[02:12:40] kyrylo: has joined #ruby
[02:13:11] jenrzzz: has joined #ruby
[02:16:48] AJA4350: has joined #ruby
[02:18:26] AJA4350: has joined #ruby
[02:54:21] duderonomy: has joined #ruby
[03:02:12] BH23: has joined #ruby
[03:07:24] jenrzzz: has joined #ruby
[03:12:02] Exuma: has joined #ruby
[03:16:22] drincruz: has joined #ruby
[03:21:29] oetjenj: has joined #ruby
[03:22:24] oetjenj: has joined #ruby
[03:23:07] oetjenj: has joined #ruby
[03:23:49] oetjenj: has joined #ruby
[03:24:39] oetjenj: has joined #ruby
[03:25:17] oetjenj: has joined #ruby
[03:26:15] oetjenj: has joined #ruby
[03:26:57] oetjenj: has joined #ruby
[03:27:47] oetjenj: has joined #ruby
[03:28:31] oetjenj: has joined #ruby
[03:29:23] oetjenj: has joined #ruby
[03:30:05] oetjenj: has joined #ruby
[03:30:29] nfip^: has joined #ruby
[03:30:46] oetjenj: has joined #ruby
[03:31:34] oetjenj: has joined #ruby
[03:32:23] oetjenj: has joined #ruby
[03:33:12] oetjenj: has joined #ruby
[03:40:33] bruce_lee: has joined #ruby
[03:40:35] bruce_lee: has joined #ruby
[04:03:04] nowhereman: has joined #ruby
[04:04:23] jenrzzz: has joined #ruby
[04:05:55] kyrylo: has joined #ruby
[04:12:10] kyrylo: has joined #ruby
[04:23:51] jenrzzz: has joined #ruby
[04:30:23] matheusmoreira: has joined #ruby
[04:56:51] pwnd_nsfw`: has joined #ruby
[04:58:06] Exuma: has joined #ruby
[05:05:08] mlt-`: has joined #ruby
[05:21:31] jenrzzz: has joined #ruby
[05:33:39] za1b1tsu: has joined #ruby
[05:48:43] cako: has joined #ruby
[05:52:18] kyrylo: has joined #ruby
[05:56:31] aupadhye: has joined #ruby
[06:02:03] kyrylo: has joined #ruby
[06:06:34] oetjenj: has joined #ruby
[06:06:36] pycer: has joined #ruby
[06:09:29] davor: has joined #ruby
[06:16:37] oetjenj: has joined #ruby
[06:17:22] oetjenj: has joined #ruby
[06:17:55] jenrzzz: has joined #ruby
[06:18:10] oetjenj: has joined #ruby
[06:18:52] oetjenj: has joined #ruby
[06:19:39] oetjenj: has joined #ruby
[06:20:28] oetjenj: has joined #ruby
[06:21:12] oetjenj: has joined #ruby
[06:21:58] oetjenj: has joined #ruby
[06:22:44] oetjenj: has joined #ruby
[06:23:22] oetjenj: has joined #ruby
[06:24:22] oetjenj: has joined #ruby
[06:24:59] oetjenj: has joined #ruby
[06:25:55] Exuma: has joined #ruby
[06:25:59] oetjenj: has joined #ruby
[06:26:26] oetjenj: has joined #ruby
[06:27:22] oetjenj: has joined #ruby
[06:28:04] oetjenj: has joined #ruby
[06:28:58] oetjenj: has joined #ruby
[06:29:33] oetjenj: has joined #ruby
[06:30:07] jenrzzz: has joined #ruby
[06:30:31] oetjenj: has joined #ruby
[06:46:47] deepredsky: has joined #ruby
[06:50:50] lxsameer: has joined #ruby
[06:51:05] kyrylo: has joined #ruby
[07:06:24] corellian: has joined #ruby
[07:13:12] duderonomy: has joined #ruby
[07:13:55] dellavg: has joined #ruby
[07:15:07] prestorium: has joined #ruby
[07:22:05] Sylario: has joined #ruby
[07:25:40] mochiyoda: has joined #ruby
[07:38:47] fphilipe: has joined #ruby
[07:42:01] sauvin: has joined #ruby
[07:48:33] deepredsky: has joined #ruby
[07:49:47] jangid: has joined #ruby
[07:49:59] kapilp: has joined #ruby
[07:55:54] mikecmpbll: has joined #ruby
[07:56:02] sauvin_: has joined #ruby
[08:09:32] nowhereman: has joined #ruby
[08:10:03] DarthGandalf: has joined #ruby
[08:12:07] deepredsky: has joined #ruby
[08:16:10] za1b1tsu: has joined #ruby
[08:19:55] deepredsky: has joined #ruby
[08:31:55] ramfjord: has joined #ruby
[08:36:40] deepredsky: has joined #ruby
[08:43:20] drnerdius: has joined #ruby
[08:53:03] CrazyEddy: has joined #ruby
[08:53:23] kyrylo: has joined #ruby
[09:02:15] ellcs: has joined #ruby
[09:13:45] nerdius: has joined #ruby
[09:17:19] kyrylo: has joined #ruby
[09:32:03] jenrzzz: has joined #ruby
[09:39:20] nerdius: has joined #ruby
[09:41:04] kyrylo: has joined #ruby
[09:43:21] TomyWork: has joined #ruby
[09:43:23] jenrzzz: has joined #ruby
[10:00:26] skryking: has joined #ruby
[10:04:40] kyrylo: has joined #ruby
[10:09:12] nerdius: has joined #ruby
[10:09:51] BH23: has joined #ruby
[10:10:06] drincruz: has joined #ruby
[10:13:51] nerdius: has joined #ruby
[10:14:24] kyrylo: has joined #ruby
[10:15:16] nerdius: has joined #ruby
[10:30:12] _whitelogger: has joined #ruby
[10:31:13] nerdius: has joined #ruby
[10:35:56] nerdius: has joined #ruby
[10:36:21] jenrzzz: has joined #ruby
[10:51:39] poontangmessiah: has joined #ruby
[11:02:11] za1b1tsu: has joined #ruby
[11:26:35] sh7d: has joined #ruby
[11:28:43] jenrzzz: has joined #ruby
[11:49:46] tuor: has joined #ruby
[11:54:46] tuor: Hi, is there something like shellcheck for bash for ruby?
[12:02:01] drnerdius: has joined #ruby
[12:04:50] jenrzzz: has joined #ruby
[12:05:54] prestorium: has joined #ruby
[12:07:32] drincruz: has joined #ruby
[12:10:46] poontangmessiah_: has joined #ruby
[12:13:10] AJA4350: has joined #ruby
[12:43:10] GodFather: has joined #ruby
[12:43:42] Nicmavr: has joined #ruby
[12:44:22] GodFather_: has joined #ruby
[12:45:47] TheBrayn: Tuor: do you mean a linter? There is rubocop
[12:47:12] drnerdius: has joined #ruby
[12:52:35] tuor: yea ah nice. thx.
[12:54:14] bmurt: has joined #ruby
[12:55:08] bmurt: has joined #ruby
[12:55:36] lucasb: has joined #ruby
[13:03:15] dviola: has joined #ruby
[13:16:51] BTRE: has joined #ruby
[13:18:56] AJA4351: has joined #ruby
[13:33:06] tf2ftw: has joined #ruby
[13:34:56] jenrzzz: has joined #ruby
[13:36:48] yalue: has joined #ruby
[13:39:03] kyrylo: has joined #ruby
[13:59:16] brool: has joined #ruby
[14:01:55] zapata: has joined #ruby
[14:02:50] suukim: has joined #ruby
[14:08:51] drincruz_: has joined #ruby
[14:17:08] duderonomy: has joined #ruby
[14:22:41] BrianWGray: has joined #ruby
[14:23:19] conta1: has joined #ruby
[14:24:12] tdy: has joined #ruby
[14:28:09] AJA4351: has joined #ruby
[14:32:09] sytherax: has joined #ruby
[14:37:19] Frobozz: has joined #ruby
[14:40:49] haxx0r: has joined #ruby
[14:43:22] Frem: has joined #ruby
[14:45:36] wildermind: has joined #ruby
[14:50:15] kyrylo: has joined #ruby
[14:50:39] Inline: has joined #ruby
[14:51:01] eds^: has joined #ruby
[14:54:36] salerace: has joined #ruby
[14:58:49] BrianWGray: has joined #ruby
[14:59:15] yalue_: has joined #ruby
[15:01:35] kyrylo: has joined #ruby
[15:02:59] salerace_: has joined #ruby
[15:05:06] jenrzzz: has joined #ruby
[15:08:07] kyrylo: has joined #ruby
[15:08:43] kyrylo: has joined #ruby
[15:09:05] Ryctolagus: has joined #ruby
[15:12:44] drincruz_: has joined #ruby
[15:21:00] nhk^: has joined #ruby
[15:23:28] AJA4350: has joined #ruby
[15:24:04] ndi^: has joined #ruby
[15:25:42] kyrylo: has joined #ruby
[15:33:38] cd: has joined #ruby
[15:38:43] salerace_: has joined #ruby
[15:44:46] salerace: has joined #ruby
[15:45:32] sytherax: has joined #ruby
[15:52:04] AJA4351: has joined #ruby
[15:57:39] deepredsky: has joined #ruby
[16:01:04] sh7d: has joined #ruby
[16:03:31] efet^: has joined #ruby
[16:08:50] drincruz_: has joined #ruby
[16:18:16] impermanence: has joined #ruby
[16:33:27] kyrylo: has joined #ruby
[16:35:13] jenrzzz: has joined #ruby
[16:38:10] r29v: has joined #ruby
[16:44:17] rippa: has joined #ruby
[16:52:43] kyrylo: has joined #ruby
[16:53:49] al2o3-cr: has joined #ruby
[16:57:49] bmurt: has joined #ruby
[16:59:28] Exuma: has joined #ruby
[17:01:52] conta1: has joined #ruby
[17:02:42] newalexandria: has joined #ruby
[17:04:23] fphilipe: has joined #ruby
[17:07:43] sytherax: has joined #ruby
[17:11:54] suukim: has joined #ruby
[17:13:26] iffraff: has joined #ruby
[17:14:04] kyrylo: has joined #ruby
[17:15:37] Rapture: has joined #ruby
[17:16:39] kyrylo_: has joined #ruby
[17:18:04] drnerdius: has joined #ruby
[17:19:00] jinie: has joined #ruby
[17:20:22] kyrylo: has joined #ruby
[17:21:20] AJA4350: has joined #ruby
[17:28:04] elated: has joined #ruby
[17:30:28] dviola: has joined #ruby
[17:32:30] drincruz: has joined #ruby
[17:32:33] naught-fowl: has joined #ruby
[17:34:29] snk: has joined #ruby
[17:36:58] cako: has joined #ruby
[17:39:55] code_zombie: has joined #ruby
[17:46:41] ramfjord: has joined #ruby
[17:50:16] kyrylo: has joined #ruby
[17:58:56] kyrylo: has joined #ruby
[17:59:04] jenrzzz: has joined #ruby
[18:04:12] kyrylo: has joined #ruby
[18:04:17] sytherax: has joined #ruby
[18:15:43] kyrylo: has joined #ruby
[18:20:40] gix: has joined #ruby
[18:40:44] stryek: has joined #ruby
[18:48:02] fphilipe: has joined #ruby
[18:48:42] dviola: has joined #ruby
[19:00:17] AJA4350: has joined #ruby
[19:11:25] SeepingN: has joined #ruby
[19:11:55] Aloy: has joined #ruby
[19:27:51] duderonomy: has joined #ruby
[19:32:35] sameerynho: has joined #ruby
[19:56:28] user_corrupt: has joined #ruby
[19:58:55] user_corrupt: hi everyone.. I'm going through process of installing ruby gem (jekyll) in order to support local development of github pages site (I guess I need it for bulndling???) latest thing I did was add "export PATH=$HOME/.gem/ruby/2.6.0/bin:$PATH" to .bash-profile, and I am now checking gem paths by doing "gem env".. here are the results:
[19:59:00] user_corrupt: - /usr/local/lib/ruby/gems/2.6.0
[19:59:00] user_corrupt: - /Users/mac/.gem/ruby/2.6.0
[19:59:02] user_corrupt: - /usr/local/Cellar/ruby/2.6.3/lib/ruby/gems/2.6.0
[19:59:08] user_corrupt: does that look ok?
[20:08:19] kyrylo: has joined #ruby
[20:08:19] bmurt: has joined #ruby
[20:11:55] drincruz: has joined #ruby
[20:18:15] Xiti: has joined #ruby
[20:18:56] cako: has joined #ruby
[20:22:36] jenrzzz: has joined #ruby
[20:35:40] phroa: has joined #ruby
[20:47:45] mlt-: has joined #ruby
[20:48:18] kashike: has joined #ruby
[20:48:48] fphilipe: has joined #ruby
[20:55:07] jenrzzz: has joined #ruby
[20:59:53] ascarter: has joined #ruby
[21:01:09] duderonomy: has joined #ruby
[21:01:38] cako: has joined #ruby
[21:08:10] GodFather: has joined #ruby
[21:08:14] GodFather_: has joined #ruby
[21:11:57] AJA4350: has joined #ruby
[21:12:40] danst: has joined #ruby
[21:14:07] ascarter: has joined #ruby
[21:29:33] bmurt: has joined #ruby
[21:34:58] evdubs: has joined #ruby
[21:42:11] Swyper: has joined #ruby
[21:43:45] jenrzzz: has joined #ruby
[21:43:52] SeepingN: has joined #ruby
[21:47:42] Swyper: has joined #ruby
[21:48:23] fphilipe: has joined #ruby
[21:52:27] bmurt: has joined #ruby
[21:59:57] ramfjord: has joined #ruby
[22:03:45] ellcs: has joined #ruby
[22:04:43] ellcs: has joined #ruby
[22:10:45] baweaver: Going to be giving a keynote at Bay Bridge Ruby Conf in September: https://twitter.com/keystonelemur/status/1158843268135702529
[22:12:14] Swyper: has joined #ruby
[22:21:45] drincruz: has joined #ruby
[22:29:40] Swyper: has joined #ruby
[22:38:12] klaas: has joined #ruby
[22:39:21] Exuma: has joined #ruby
[22:42:38] Renich: has joined #ruby
[22:44:12] brool: has joined #ruby
[23:01:01] ramfjord: has joined #ruby
[23:02:53] `Alison: has joined #ruby
[23:12:02] jenrzzz: has joined #ruby
[23:15:45] Exuma: has joined #ruby
[23:18:43] Swyper: has joined #ruby
[23:20:18] zapata: has joined #ruby
[23:23:55] Nicmavr: has joined #ruby
[23:29:20] ramfjord: has joined #ruby
[23:29:42] sagax: i have question
[23:30:05] sagax: how to pretty this code?
[23:30:07] sagax: http://susepaste.org/80249581
[23:32:33] leftylink: note that `what_team_have_win(c1, c2)` is just a 1-to-1 mapping of `c1 <=> c2` . consider if this may be useful.
[23:32:53] drincruz: has joined #ruby
[23:33:09] sagax: small fix http://susepaste.org/78986561
[23:36:01] phaul: there is a youtube vid Sandi M doing the gilded rose, which might give you ideas on nested conditions like that
[23:37:45] havenwood: sagax: You can put assignment outside an if statement.
[23:38:16] leftylink: also consider that lines 50-54 are exactly the same as lines 56-60, except for line 50 and 56 are different.
[23:39:28] jinie: has joined #ruby
[23:40:27] leftylink: note that the guessed value of the loser's score is not important. this may lead to questions about whether it is appropriate to even ask for a loser's score as a param. perhaps it is wiser to instead simply take the guessed winner and guessed winning score.
[23:41:34] leftylink: .... okay, actually the actual value of the loser's score is also unimportant. so the same idea applies to those as well.
[23:42:02] jenrzzz: has joined #ruby
[23:42:06] sagax: actual value important for return 2 or 1
[23:42:12] leftylink: the loser, I said
[23:42:20] leftylink: of course the actual value is important for the winners.
[23:44:49] havenwood: sagax: https://gist.github.com/havenwood/2b290276bf89140fc938e703bf63e120
[23:44:50] havenwood: sagax: Based ^ on leftylink's suggestion
[23:45:56] sagax: ha ha, not bad! xD
[23:46:00] leftylink: unverified knee-jerk reaction: t2 and t1 need to be switched.
[23:46:29] leftylink: knee-jerk reaction is wrong
[23:46:30] havenwood: leftylink: I don't think so, but a good sign it's *too clever*.
[23:46:34] sagax: i think, with <=> construction - i will be not needed t1, t2, n
[23:46:41] leftylink: I got schooled
[23:46:53] tabakhase: has joined #ruby
[23:48:21] leftylink: because of me forgetting the polarity of <=>. minus is a good mnemonic for remembering the polarity
[23:48:55] leftylink: and then I must to keep in mind that since team wins looks for the larger, not the smaller
[23:49:33] fphilipe: has joined #ruby
[23:50:13] sagax: http://susepaste.org/71258374
[23:50:16] sagax: new version
[23:50:27] sagax: better then before
[23:52:16] jenrzzz: has joined #ruby
[23:54:00] havenwood: sagax: https://gist.github.com/havenwood/e194acecc6836ebfea8a105bcedd021c
[23:54:34] sagax: cool, but i don't understand it xD
[23:54:50] sagax: my short version http://susepaste.org/87402011
[23:55:18] havenwood: sagax: Swap it to: return 0 if rw != pw
[23:55:34] havenwood: sagax: return 2 if r1 == p1 && r2 == p2
[23:55:39] sagax: great, thanks
[23:55:39] leftylink: well I was about to write some longer sentences about "some people may dislike `if A; LONG_CODE else return thing end` and prefer `return thing if !A; LONG_CODE` since then one can unindent LONG_CODE
[23:55:46] leftylink: but it looks like that has already been covered.
[23:58:53] jinie: has joined #ruby
[23:58:58] poontangmessiah: has joined #ruby
[23:59:34] leftylink: at some point, one might also consider whether to use a ternary. although I do admit it may make the structure of the code... a bit less balanced