« Back to channel list

#ruby - 22 April 2019

« Back 1 day Forward 1 day »
[00:05:18] bokwoon: has joined #ruby
[00:08:43] fphilipe_: has joined #ruby
[00:22:58] Puffball: has joined #ruby
[00:26:29] houhoulis: has joined #ruby
[00:31:19] crankharder: has joined #ruby
[00:31:58] bokwoon: has joined #ruby
[00:34:01] wallace__: has joined #ruby
[00:48:05] doodlebug: has joined #ruby
[00:54:03] SeepingN: has joined #ruby
[01:09:28] fphilipe_: has joined #ruby
[01:21:04] crankharder: has joined #ruby
[01:42:26] Swyper: has joined #ruby
[01:49:58] nones: has joined #ruby
[02:02:57] dsmythe: has joined #ruby
[02:12:10] _whitelogger: has joined #ruby
[02:13:32] esrse: has joined #ruby
[02:20:33] crankharder: has joined #ruby
[02:39:58] fphilipe_: has joined #ruby
[02:42:27] fanta1: has joined #ruby
[02:46:12] dsmythe: has joined #ruby
[02:54:29] mrtnpwn: has joined #ruby
[03:00:47] ramfjord: has joined #ruby
[03:06:14] DTZUZO: has joined #ruby
[03:10:55] braincrash: has joined #ruby
[03:17:45] tdy: has joined #ruby
[03:44:34] fphilipe_: has joined #ruby
[03:50:04] wallace_mu: has joined #ruby
[04:10:24] Lytol: has joined #ruby
[04:11:30] wallace_mu: has joined #ruby
[04:39:41] DmitryBochkarev: has joined #ruby
[04:55:29] laaron: has joined #ruby
[05:00:29] crankharder: has joined #ruby
[05:03:13] Swyper: has joined #ruby
[05:08:32] duderonomy: has joined #ruby
[05:10:33] crankharder: has joined #ruby
[05:13:57] duderonomy: has joined #ruby
[05:15:02] fphilipe_: has joined #ruby
[05:15:10] xlued: has joined #ruby
[05:16:43] duderonomy: has joined #ruby
[05:19:25] sagax: has joined #ruby
[05:27:18] iMadper: has joined #ruby
[06:11:24] Swyper: has joined #ruby
[06:14:07] fanta1: has joined #ruby
[06:22:44] schleppel: has joined #ruby
[06:30:23] nowhere_man: has joined #ruby
[06:36:06] Lytol: has joined #ruby
[06:37:54] dellavg_: has joined #ruby
[06:45:39] Swyper: has joined #ruby
[06:46:06] kapil____: has joined #ruby
[06:48:24] jottr: has joined #ruby
[06:56:32] dionysus69: has joined #ruby
[07:00:37] jottr: has joined #ruby
[07:03:03] sleetdrop: has joined #ruby
[07:03:21] Swyper: has joined #ruby
[07:05:43] laaron: has joined #ruby
[07:09:56] aupadhye: has joined #ruby
[07:11:04] laaron: has joined #ruby
[07:15:36] fphilipe_: has joined #ruby
[07:18:31] wolfshappen_: has joined #ruby
[07:30:12] jefffh4h: has joined #ruby
[07:32:11] almdrx: has joined #ruby
[07:32:17] jefffh4h: has joined #ruby
[07:43:05] dsmythe: has joined #ruby
[07:43:17] hightower2: has joined #ruby
[07:44:01] suukim: has joined #ruby
[07:51:44] phaul: has joined #ruby
[07:53:17] teardown: has joined #ruby
[07:54:06] laaron: has joined #ruby
[07:56:13] laaron: has joined #ruby
[08:00:58] sameerynho: has joined #ruby
[08:07:25] ramfjord: has joined #ruby
[08:18:32] crankharder: has joined #ruby
[08:19:55] fphilipe_: has joined #ruby
[08:23:58] ellcs: has joined #ruby
[08:25:07] ellcs: has joined #ruby
[08:26:06] ellcs: has joined #ruby
[08:26:45] ellcs: has joined #ruby
[08:27:59] ellcs: has joined #ruby
[08:28:46] ellcs: has joined #ruby
[08:31:17] PaulePanter: has joined #ruby
[08:31:43] crankharder: has joined #ruby
[08:35:03] clemens3_: has joined #ruby
[08:41:44] crankharder: has joined #ruby
[08:43:18] reber: has joined #ruby
[08:49:44] CrazyEddy: has joined #ruby
[08:51:41] crankharder: has joined #ruby
[09:01:15] dhollin3: has joined #ruby
[09:21:25] crankharder: has joined #ruby
[09:29:27] kyrylo: has joined #ruby
[09:31:19] crankharder: has joined #ruby
[09:41:18] crankharder: has joined #ruby
[09:47:30] za1b1tsu: has joined #ruby
[09:48:17] mhlei: has joined #ruby
[09:53:19] pwnd_nsfw: has joined #ruby
[10:05:22] dsmythe: has joined #ruby
[10:14:33] jefffh4h: has joined #ruby
[10:17:27] jefffh4h: has joined #ruby
[10:19:38] ltem: has joined #ruby
[10:21:09] dinfuehr: has joined #ruby
[10:21:13] crankharder: has joined #ruby
[10:30:16] lomex: has joined #ruby
[10:30:56] crankharder: has joined #ruby
[10:34:43] aqd: has joined #ruby
[10:40:50] crankharder: has joined #ruby
[10:50:47] crankharder: has joined #ruby
[10:54:11] _whitelogger: has joined #ruby
[10:55:04] _joes_: has joined #ruby
[10:55:13] DarthGandalf: has joined #ruby
[11:00:42] crankharder: has joined #ruby
[11:23:33] AJA4350: has joined #ruby
[11:29:14] jottr: has joined #ruby
[11:38:45] nowhere_man: has joined #ruby
[11:39:11] DmitryBochkarev: has joined #ruby
[11:40:45] vrih: has joined #ruby
[11:45:39] doodleb16: has joined #ruby
[11:47:11] hiroaki: has joined #ruby
[11:53:04] ldnunes: has joined #ruby
[12:04:48] fanta1: has joined #ruby
[12:22:33] doodlebug: has joined #ruby
[12:24:09] DTZUZO: has joined #ruby
[12:31:25] crankharder: has joined #ruby
[12:39:11] ldnunes: has joined #ruby
[12:40:24] s3nd1v0g1us: has joined #ruby
[12:40:43] ltem: has joined #ruby
[12:43:50] gix: has joined #ruby
[12:45:20] doodleb79: has joined #ruby
[12:48:40] doodlebug: has joined #ruby
[12:48:44] wildermind: has joined #ruby
[12:50:29] DmitryBochkarev: has joined #ruby
[12:50:52] doodlebug: has joined #ruby
[12:53:27] cd: has joined #ruby
[12:53:56] doodleb56: has joined #ruby
[12:56:18] doodlebug: has joined #ruby
[12:58:45] jcalla: has joined #ruby
[13:05:52] dsmythe: has joined #ruby
[13:10:55] crankharder: has joined #ruby
[13:15:45] pupsikov: has joined #ruby
[13:18:37] dionysus69: so I had to do weird hack to achieve passing hash into method args and then converting back to hash
[13:18:39] dionysus69: json['params'], = *args
[13:18:57] dionysus69: method({a: 1, b: 2})
[13:19:21] dionysus69: any ideas why I Had to use comma there? splat args didnt work without comma
[13:21:40] cow[moo]: has joined #ruby
[13:27:58] mguy: has joined #ruby
[13:29:59] iMadUtil`: has joined #ruby
[13:33:21] SeepingN: has joined #ruby
[13:34:47] doodlebug: has joined #ruby
[13:35:10] crankharder: has joined #ruby
[13:57:30] wallace_mu: has joined #ruby
[14:01:08] kapil____: has joined #ruby
[14:08:01] cthulchu: has joined #ruby
[14:14:02] gnufied: has joined #ruby
[14:14:05] aqd: has joined #ruby
[14:18:55] Rapture: has joined #ruby
[14:20:46] Hobbyboy: has joined #ruby
[14:33:48] adam12: dionysus69: maybe you wanted **?
[14:34:05] adam12: dionysus69: Hard to say without looking at something reproducable since those 2 lines don't look directly connected?
[14:37:26] teclator: has joined #ruby
[14:42:29] cthu|: has joined #ruby
[14:47:59] tdy: has joined #ruby
[14:51:53] _sandman: has joined #ruby
[14:53:35] Sandman: has joined #ruby
[15:02:48] aupadhye: has joined #ruby
[15:04:41] rippa: has joined #ruby
[15:05:16] old_relik: has joined #ruby
[15:07:10] old_relik: what do people think of code like this https://dpaste.de/8YF3
[15:07:53] old_relik: this service is called via a sidekiq job, and to avoid creating multiple jobs for multiple types, I dispatch methods on types
[15:08:02] old_relik: but then it feels a bit icky for some reason
[15:09:04] adam12: old_relik: Seems like a violation of SRP, depending on what those methods will actually do.
[15:09:34] lupine: all of ruby is one giant SRP violation
[15:09:50] old_relik_: has joined #ruby
[15:09:56] old_relik_: adam12: sorry connection dropped
[15:10:04] old_relik_: adam12: they will do very similar things
[15:10:11] old_relik_: they are basically variations of each other
[15:10:28] adam12: old_relik_: In that case I'd probably reach for regular composition techniques and keep the classes separate.
[15:11:26] old_relik_: adam12: so I think the methods are pretty related to each other and all belong to the service
[15:11:37] old_relik_: in a non-send scenario, I would just call these methods individually
[15:12:00] old_relik_: but my awkward limitation is that I'm calling these from a sidekiq job
[15:12:23] old_relik_: and that would then involve creating job classes for each of these method dispatches basically
[15:12:51] old_relik_: JobForThing1, JobForThing2 etc.
[15:13:09] old_relik_: Which would then just end up doing ThingService.new().thing_1, ThingService.new().thing_2 etc.
[15:14:49] adam12: old_relik_: Too hard to presume with vague terms. I'd just use your instinct and see what feels right.
[15:15:23] old_relik_: code reviews on IRC are hard
[15:15:45] old_relik_: how does one simplify the problem enough to not overburden with context without losing context...
[15:15:54] adam12: old_relik_: It's tough, that's for sure.
[15:18:16] uranoss: has joined #ruby
[15:18:37] Xeago_: has joined #ruby
[15:21:14] old_relik_: ok, I went with a case statement
[15:21:23] old_relik_: within the job
[15:22:50] jcalla: has joined #ruby
[15:30:28] terabytes: has joined #ruby
[15:32:10] Swyper: has joined #ruby
[15:37:40] millerti: has joined #ruby
[15:38:28] Swyper: has joined #ruby
[15:48:53] elomatreb: has joined #ruby
[15:52:21] DmitryBochkarev: has joined #ruby
[15:53:36] DmitryBochkarev: has joined #ruby
[15:54:16] cthulchu: has joined #ruby
[15:54:56] DmitryBochkarev: has joined #ruby
[15:56:06] DmitryBochkarev: has joined #ruby
[15:57:16] DmitryBochkarev: has joined #ruby
[15:57:32] delimited: has joined #ruby
[16:02:31] polishdub: has joined #ruby
[16:03:13] ErhardtMundt: has joined #ruby
[16:10:12] s2013: has joined #ruby
[16:16:33] jcarl43: has joined #ruby
[16:16:34] Swyper: has joined #ruby
[16:17:33] dellavg__: has joined #ruby
[16:19:33] shakes: has joined #ruby
[16:21:04] laaron: has joined #ruby
[16:23:44] AJA4351: has joined #ruby
[16:28:31] laaron: has joined #ruby
[16:51:23] duderonomy: has joined #ruby
[17:00:18] AJA4351: has joined #ruby
[17:00:48] cthu|: has joined #ruby
[17:03:42] AJA4350: has joined #ruby
[17:07:11] Eiam: has joined #ruby
[17:11:16] jottr: has joined #ruby
[17:12:56] CommanderViral: has joined #ruby
[17:13:02] doodleb73: has joined #ruby
[17:13:36] AJA4351: has joined #ruby
[17:13:40] pupsikov: has joined #ruby
[17:17:58] houhoulis: has joined #ruby
[17:21:57] agent_white: has joined #ruby
[17:24:19] CommanderViral: has joined #ruby
[17:36:43] ramfjord: has joined #ruby
[17:45:32] reber: has joined #ruby
[17:49:16] pupsikov: has joined #ruby
[17:58:32] elomatreb: has joined #ruby
[18:11:08] dtzuzu: has joined #ruby
[18:14:21] clemens3_: has joined #ruby
[18:14:45] _delimited_: has joined #ruby
[18:15:52] tdy: has joined #ruby
[18:17:51] _delimited_: has joined #ruby
[18:17:57] elomatreb: has joined #ruby
[18:26:16] lucz: has joined #ruby
[18:27:02] Swyper: has joined #ruby
[18:27:31] Swyper: has joined #ruby
[18:28:53] doodlebug: has joined #ruby
[18:35:15] PaulePanter: has joined #ruby
[18:38:26] fphilipe_: has joined #ruby
[18:40:13] AJA4350: has joined #ruby
[18:45:18] conta1: has joined #ruby
[18:47:33] contradictioned: has joined #ruby
[18:48:04] SeepingN: has joined #ruby
[18:51:16] pupsikov: has joined #ruby
[19:00:33] yokel: has joined #ruby
[19:00:58] Renich: has joined #ruby
[19:02:05] ramfjord_: has joined #ruby
[19:20:05] Swyper: has joined #ruby
[19:22:57] mochiyoda: has joined #ruby
[19:26:12] Renich: has joined #ruby
[19:31:38] pupsikov: has joined #ruby
[19:43:06] Iarfen: has joined #ruby
[19:44:19] dsmythe_: has joined #ruby
[19:48:26] dsmythe: has joined #ruby
[19:57:23] nowhere_man: has joined #ruby
[20:00:40] fredmorcos: has joined #ruby
[20:02:20] crankharder: has joined #ruby
[20:06:51] ramfjord: has joined #ruby
[20:09:13] crankharder: has joined #ruby
[20:12:34] lomex: has joined #ruby
[20:14:19] jordanm: has joined #ruby
[20:14:21] Exuma: has joined #ruby
[20:16:53] doodleb26: has joined #ruby
[20:20:03] AJA4350: has joined #ruby
[20:29:27] s2013: has joined #ruby
[20:52:09] Swyper: has joined #ruby
[20:52:53] doodlebug: has joined #ruby
[20:56:25] Swyper: has joined #ruby
[20:57:09] uranoss: has joined #ruby
[20:58:05] hahuang65: has joined #ruby
[20:58:53] doodlebug: has joined #ruby
[21:01:19] dviola: has joined #ruby
[21:01:19] Pillus: has joined #ruby
[21:08:18] BuildTheRobots: has joined #ruby
[21:08:25] Pillus: has joined #ruby
[21:08:30] Net: has joined #ruby
[21:08:49] justache: has joined #ruby
[21:09:34] hsiktas: has joined #ruby
[21:11:15] uranoss: has joined #ruby
[21:13:05] iamdevnul: has joined #ruby
[21:13:57] jetpack_joe: has joined #ruby
[21:14:04] Exuma: has joined #ruby
[21:14:28] hahuang65: has joined #ruby
[21:17:33] lucasb: has joined #ruby
[21:42:38] kspencer: has joined #ruby
[21:54:40] clemens3: has joined #ruby
[21:55:26] silviu: has joined #ruby
[21:56:55] duderono_: has joined #ruby
[21:57:37] mkaito: has joined #ruby
[21:57:37] mkaito: has joined #ruby
[21:57:41] m27frogy_: has joined #ruby
[21:57:47] arthurnn_: has joined #ruby
[21:58:14] swistak35_: has joined #ruby
[21:58:57] Some-body_: has joined #ruby
[21:59:07] LtHummus_: has joined #ruby
[21:59:11] ammar: has joined #ruby
[21:59:30] Cyrus: has joined #ruby
[21:59:52] RiPuk: has joined #ruby
[21:59:55] noobineer: has joined #ruby
[22:00:19] Exagone313: has joined #ruby
[22:00:21] connor_goodwolf: has joined #ruby
[22:00:21] hays: has joined #ruby
[22:00:37] alnk: has joined #ruby
[22:00:39] [spoiler]: has joined #ruby
[22:00:39] al2o3-cr: has joined #ruby
[22:00:41] towo: has joined #ruby
[22:00:56] PaulePanter: has joined #ruby
[22:01:05] woodruffw: has joined #ruby
[22:01:08] woodruffw: has joined #ruby
[22:01:09] livcd: has joined #ruby
[22:01:12] wolfshappen: has joined #ruby
[22:01:15] shanks8080: has joined #ruby
[22:01:15] Sp4rKy: has joined #ruby
[22:01:36] SCHAPiE: has joined #ruby
[22:01:49] kspencer: has joined #ruby
[22:02:10] jcalla: has joined #ruby
[22:02:28] ErhardtMundt: has joined #ruby
[22:03:05] delimited__: has joined #ruby
[22:04:36] LtHummus: has joined #ruby
[22:04:59] Ropeney: has joined #ruby
[22:05:00] Axsuul: has joined #ruby
[22:05:05] fphilipe_: has joined #ruby
[22:06:49] crankhar1er: has joined #ruby
[22:07:10] s3nd1v0g1us: has joined #ruby
[22:07:15] ramfjord_: has joined #ruby
[22:07:23] hsiktas: has joined #ruby
[22:07:31] ZummiG777: has joined #ruby
[22:07:38] syndikate: has joined #ruby
[22:07:47] shanks8080: has joined #ruby
[22:09:23] helpa-bot: has joined #ruby
[22:09:31] _delimited_: has joined #ruby
[22:09:56] ZummiG777: Hello all! In a complex codebase I'm finding that, a variable fully of YAML settings 'DEFAULT_SETTINGS' is getting modified. I'd like to find a way to identify whose code is modifying that variable and a way to totally make the value immutable in a Python-language way.
[22:10:15] agit0: has joined #ruby
[22:10:23] rf`: has joined #ruby
[22:10:30] jtdowney7: has joined #ruby
[22:10:43] ged_: has joined #ruby
[22:10:49] papcx82: has joined #ruby
[22:11:05] ujjain-: has joined #ruby
[22:11:53] helpa-bot: has joined #ruby
[22:11:55] irdr_: has joined #ruby
[22:12:21] Ropeney_: has joined #ruby
[22:12:23] ta_-: has joined #ruby
[22:12:36] Renich_: has joined #ruby
[22:13:08] Swyper: has joined #ruby
[22:13:09] edwardly_: has joined #ruby
[22:13:10] edwardly_: has joined #ruby
[22:13:15] Sp4rKy_: has joined #ruby
[22:13:22] pookie: has joined #ruby
[22:13:27] marens_: has joined #ruby
[22:13:34] teardown_: has joined #ruby
[22:13:40] pabst: has joined #ruby
[22:13:48] funnel_: has joined #ruby
[22:13:48] z4phod_: has joined #ruby
[22:14:03] ltd_: has joined #ruby
[22:14:27] genpaku_: has joined #ruby
[22:14:28] knight-: has joined #ruby
[22:15:22] Jello_Raptor_: has joined #ruby
[22:16:33] helpa-bot: has joined #ruby
[22:16:35] interruptinuse: has joined #ruby
[22:16:51] cliluw: has joined #ruby
[22:16:56] Sirecote: has joined #ruby
[22:16:57] gnufied: has joined #ruby
[22:16:58] giraffe: has joined #ruby
[22:17:12] go|dfish: has joined #ruby
[22:17:19] CJKinni: has joined #ruby
[22:17:24] Vircung: has joined #ruby
[22:17:57] zululee_: has joined #ruby
[22:17:58] txdv: has joined #ruby
[22:18:18] PaulePanter: has joined #ruby
[22:18:34] russt: has joined #ruby
[22:18:36] gsingh93: has joined #ruby
[22:19:08] helpa: has joined #ruby
[22:19:39] kspencer: has joined #ruby
[22:20:08] LightStalker: has joined #ruby
[22:20:09] Swyper: has joined #ruby
[22:20:10] mangold: has joined #ruby
[22:22:54] doodlebug: has joined #ruby
[22:23:15] fredolinhares: has joined #ruby
[22:27:24] Swyper: has joined #ruby
[22:30:04] Swyper: has joined #ruby
[22:40:17] ryouba: has joined #ruby
[22:40:38] weteamsteve: has joined #ruby
[22:40:53] doodleb97: has joined #ruby
[22:45:56] weteamsteve: has joined #ruby
[22:48:08] weteamsteve: has joined #ruby
[22:49:39] orbyt_: has joined #ruby
[22:50:28] weteamsteve: has joined #ruby
[22:51:45] ricer2: has joined #ruby
[22:58:57] laaron: has joined #ruby
[23:11:58] Swyper: has joined #ruby
[23:16:00] Azure|dc: has joined #ruby
[23:16:37] pupsikov: has joined #ruby
[23:22:54] doodlebug: has joined #ruby
[23:37:58] postmodern: has joined #ruby
[23:47:18] AJA4350: has joined #ruby
[23:48:41] Renich: has joined #ruby
[23:53:20] cloaked1: has joined #ruby
[23:53:20] cloaked1: has joined #ruby
[23:55:42] kyrylo: has joined #ruby
[23:57:58] kyrylo_: has joined #ruby