« Back to channel list

#ruby - 21 November 2018

« Back 1 day Forward 1 day »
[00:16:47] MoritaShinobu: has joined #ruby
[00:28:45] Arkantos: has joined #ruby
[00:55:04] queip: has joined #ruby
[01:18:04] cd: has joined #ruby
[01:35:31] arescorpio: has joined #ruby
[01:42:04] nertzy: has joined #ruby
[01:42:53] agent_white: has joined #ruby
[01:47:42] troulouliou_div2: has joined #ruby
[01:50:10] queip: has joined #ruby
[02:01:59] code_zombie: has joined #ruby
[02:08:55] elphe: has joined #ruby
[02:13:58] tAn: has joined #ruby
[02:18:58] Paraxial: has joined #ruby
[02:19:34] elphe: has joined #ruby
[02:21:22] esrse: has joined #ruby
[02:31:11] patr0clus: has joined #ruby
[02:51:00] pskosinski: has joined #ruby
[02:51:01] BTRE: has joined #ruby
[02:52:21] nchambers: has joined #ruby
[03:01:16] fluxAeon: has joined #ruby
[03:03:33] dbz: has joined #ruby
[03:17:28] kapil____: has joined #ruby
[03:24:15] bmurt: has joined #ruby
[03:38:08] dbz: has joined #ruby
[03:42:46] bambanx: has joined #ruby
[03:47:31] queip: has joined #ruby
[03:56:05] CustosLimen: has joined #ruby
[03:56:20] c0ncealed4: has joined #ruby
[03:57:25] oz: has joined #ruby
[04:11:10] braincrash: has joined #ruby
[04:25:02] CustosLimen: has joined #ruby
[04:31:36] Emmanuel_Chanel: has joined #ruby
[04:43:39] dellavg_: has joined #ruby
[04:47:59] queip: has joined #ruby
[04:49:39] MuffinPimp: has joined #ruby
[04:53:02] rawrg: has joined #ruby
[04:53:03] ByronJohnson: has joined #ruby
[04:55:07] mroutis: has joined #ruby
[05:02:10] luminous: has joined #ruby
[05:04:27] Exuma: has joined #ruby
[05:05:10] Exuma: has joined #ruby
[05:08:03] Exuma: has joined #ruby
[05:09:59] Exuma: has joined #ruby
[05:10:13] bambanxx: has joined #ruby
[05:12:37] Exuma: has joined #ruby
[05:13:31] Exuma: has joined #ruby
[05:14:17] Exuma: has joined #ruby
[05:19:06] CrazyEddy: has joined #ruby
[05:19:56] Exuma: has joined #ruby
[05:26:46] lupine: has joined #ruby
[05:29:15] Exuma: has joined #ruby
[05:30:42] Exuma: has joined #ruby
[05:31:34] awkwords: has joined #ruby
[05:33:42] meinside: has joined #ruby
[05:48:06] queip: has joined #ruby
[06:07:51] reber: has joined #ruby
[06:09:50] Arkantos: has joined #ruby
[06:15:19] jmcgnh: has joined #ruby
[06:15:21] aupadhye: has joined #ruby
[06:15:52] sauvin: has joined #ruby
[06:18:04] aupadhye: has joined #ruby
[06:22:03] marmotini_: has joined #ruby
[06:22:47] jordila: has joined #ruby
[06:24:03] conta: has joined #ruby
[06:27:37] Arkantos_: has joined #ruby
[06:29:06] Arkantos_: has joined #ruby
[06:40:02] aupadhye: has joined #ruby
[06:40:35] Milos: has joined #ruby
[06:41:25] rawrg: has joined #ruby
[06:45:00] Milos: has joined #ruby
[06:50:48] marz_d`ghostman_: has joined #ruby
[06:51:21] marz_d`ghostman_: I'm trying to declare a local variable inside a context block but it appears it is overriding a variable outside of it context though. https://gist.github.com/marzdgzmn/e7a1c04a62a7a79caba0410d06cf6dbd
[06:51:32] marz_d`ghostman_: The mirror variable
[07:09:44] arthurnn: has joined #ruby
[07:14:47] marmotini_: has joined #ruby
[07:35:54] clemens3: has joined #ruby
[07:43:25] dbz: has joined #ruby
[07:44:20] lomex: has joined #ruby
[07:48:36] sina: has joined #ruby
[07:52:27] elphe: has joined #ruby
[07:53:20] dbz: has joined #ruby
[07:56:46] clemens3_: has joined #ruby
[07:58:02] elphe: has joined #ruby
[08:14:54] phaul: has joined #ruby
[08:34:43] dbz: has joined #ruby
[08:44:50] burgestrand: has joined #ruby
[08:46:33] jordila: has joined #ruby
[08:47:32] dionysus69: has joined #ruby
[08:48:53] jmcgnh: has joined #ruby
[08:50:03] maufart__: has joined #ruby
[08:52:27] queip: has joined #ruby
[08:55:19] Nicmavr: has joined #ruby
[09:01:14] JamieD: has joined #ruby
[09:02:10] dbz: has joined #ruby
[09:06:54] whysthatso: has joined #ruby
[09:25:51] d^sh: has joined #ruby
[09:26:01] keden: has joined #ruby
[09:28:30] venmx: has joined #ruby
[09:32:50] jetchisel: has joined #ruby
[09:36:45] fredmorcos: has joined #ruby
[09:37:09] lomex: has joined #ruby
[09:42:27] gregf_: has joined #ruby
[09:53:26] mangold: has joined #ruby
[09:55:28] jordila: has joined #ruby
[10:01:58] Guest61808: has joined #ruby
[10:04:15] unreal: has joined #ruby
[10:05:16] marz_d`ghostman_: Why does line 16 outputs the value defined in line 23 instead of value defined in line 4? https://gist.github.com/marzdgzmn/e7a1c04a62a7a79caba0410d06cf6dbd
[10:15:04] ellcs: has joined #ruby
[10:16:15] yohji: has joined #ruby
[10:23:45] lomex: has joined #ruby
[10:27:03] fredmorcos: has joined #ruby
[10:29:46] jhass: marz_d`ghostman_: because code outside of any blocks given to context, it or let is run before the one inside
[10:30:26] jhass: eh sorry strike context, that's actually invoked directly
[10:30:48] jhass: but let and it memoize their blocks to run them later
[10:33:45] Fusl: has joined #ruby
[10:35:49] themsay: has joined #ruby
[10:35:52] marz_d`ghostman_: jhass: I don't really get it
[10:36:25] marz_d`ghostman_: so let and it caches their result?
[10:36:51] jhass: line 23 is executed before line 16 because it's outside of a block given to it
[10:38:51] marz_d`ghostman_: so the execution happens starting from the most specific block?
[10:39:07] marz_d`ghostman_: so after line 23 is executed it exeutes the it block that puts the variable?
[10:39:18] jhass: no, from the top of the file line by line, but `it` does not run the block given to it right away, however `context` does
[10:39:31] dbz: has joined #ruby
[10:39:47] jhass: not right after, but in general yes
[10:41:15] themsay: has joined #ruby
[10:44:05] Fusl: has joined #ruby
[10:45:29] jhass: marz_d`ghostman_: if we simplify what happens by a lot it'd look like this: https://carc.in/#/r/5l3l
[10:45:43] maufart__: has joined #ruby
[10:49:33] marahin: Is there any way to make rspec exit at the first usage of CTRL+C?
[10:49:40] marahin: (not wait for the graceful shutdown)
[10:50:01] marahin: I'm trying to forge a simple script to run a few scripts in the background.
[10:51:38] queip: has joined #ruby
[10:51:45] marz_d`ghostman_: jhass: thanks for clarifying that one
[10:52:32] jhass: marahin: https://relishapp.com/rspec/rspec-core/docs/command-line/fail-fast-option
[10:52:50] jhass: not sure whether it listens to ctrl+c but worht a shot
[10:53:02] marahin: jhass: i dont think that fixes the issue? :)
[10:53:12] marahin: it will exit itself on the first failed example (I dont want that)
[10:53:20] marahin: i want to be able to break-up rspec on a single ^C though.
[10:53:24] marahin: without having to repeat it
[10:53:51] jhass: yeah as said, it's something I'd give a try, not its purpose but I see potential for having the effect ;)
[10:54:14] marahin: well then but it breaks the idea for all the tests to go through :)
[10:54:19] marahin: we're using rerun later on
[10:54:24] marahin: which re runs only failed tests, isolated
[10:55:13] jhass: maybe just send it good ol' sigquit
[10:55:26] jhass: nobody remembers to handle it :D
[11:02:32] avelldiroll: has left #ruby: ("WeeChat 1.6")
[11:12:22] dbz: has joined #ruby
[11:14:26] themsay: has joined #ruby
[11:14:49] kapil____: has joined #ruby
[11:21:51] asphyxia: has joined #ruby
[11:25:09] wildermind: has joined #ruby
[11:25:55] jetchisel: has joined #ruby
[11:29:08] venmx: has joined #ruby
[11:39:52] KevinSjoberg: has joined #ruby
[11:52:17] queip: has joined #ruby
[12:01:02] c0ncealed4: has joined #ruby
[12:04:15] alem0lars: has joined #ruby
[12:28:25] ikbenhet: has joined #ruby
[12:31:03] jcalla: has joined #ruby
[12:35:50] LinuxKnight: has joined #ruby
[12:39:55] burgestrand: has joined #ruby
[12:43:46] bmurt: has joined #ruby
[12:45:40] jetchisel: has joined #ruby
[12:47:54] AJA4350: has joined #ruby
[12:49:48] Guest61808: has joined #ruby
[12:49:54] lomex: has joined #ruby
[12:50:20] dbz: has joined #ruby
[12:52:51] queip: has joined #ruby
[12:58:00] JamieD: has joined #ruby
[12:58:01] Guest61808: has joined #ruby
[13:18:35] Tempesta: has joined #ruby
[13:19:14] Puffball: has joined #ruby
[13:19:51] reber: has joined #ruby
[13:31:23] lxsameer: has joined #ruby
[13:41:03] roshanavand: has joined #ruby
[13:42:32] nickjj: has joined #ruby
[13:44:41] Puffball: has joined #ruby
[13:50:38] Azure: has joined #ruby
[13:52:57] queip: has joined #ruby
[13:54:11] lomex: has joined #ruby
[13:55:02] ams__: has joined #ruby
[14:08:41] voolik: has joined #ruby
[14:09:53] kapil____: has joined #ruby
[14:10:40] GodFather: has joined #ruby
[14:14:33] alan_w: has joined #ruby
[14:28:32] crankhar1er: has joined #ruby
[14:30:25] bmurt: has joined #ruby
[14:40:06] keden: has joined #ruby
[14:49:07] queip: has joined #ruby
[14:52:32] Inline: has joined #ruby
[14:54:06] akaiiro: has joined #ruby
[15:01:10] Arkantos: has joined #ruby
[15:01:57] vondruch_: has joined #ruby
[15:08:29] nowhere_man: has joined #ruby
[15:11:12] roshanavand: has joined #ruby
[15:11:52] alem0lars: has joined #ruby
[15:12:26] nchambers: has joined #ruby
[15:19:17] rippa: has joined #ruby
[15:21:54] ikbenhet: has joined #ruby
[15:24:03] chouhoulis: has joined #ruby
[15:38:14] pratik: has joined #ruby
[15:42:46] conta: has joined #ruby
[15:42:55] Fusl: has joined #ruby
[15:47:40] queip: has joined #ruby
[15:49:47] dviola: has joined #ruby
[15:54:44] vondruch: has joined #ruby
[15:59:13] bmurt: has joined #ruby
[16:00:13] Paraxial: has joined #ruby
[16:02:08] nchambers: has joined #ruby
[16:07:27] SeepingN: has joined #ruby
[16:09:14] hutch: has joined #ruby
[16:09:23] jetchisel: has joined #ruby
[16:09:34] ikbenhet: has joined #ruby
[16:14:26] Arkantos: has joined #ruby
[16:22:06] Fusl: has joined #ruby
[16:26:01] marz_d`ghostman: has joined #ruby
[16:32:07] im0nde: has joined #ruby
[16:33:13] jaddison: has joined #ruby
[16:36:19] planigan: has joined #ruby
[16:41:36] keden: has joined #ruby
[16:44:29] gix: has joined #ruby
[16:44:44] marz_d`ghostman: is it good practice to create a singleton for database operation or create a module with a class instance for database?
[16:45:24] marz_d`ghostman: I just want to abstract it out so I could swap database all I have to do is modify the singleton class or module
[16:48:19] queip: has joined #ruby
[17:04:49] GodFather: has joined #ruby
[17:05:51] whysthatso: has joined #ruby
[17:06:42] al2o3-cr: ffs, i know why i had `memory cost is too small` yesterday. i had `typealias "uint32_t", "unsigned char" lol
[17:07:22] al2o3-cr: i went over that for hours aswell.
[17:07:28] hiroaki: has joined #ruby
[17:07:37] SeepingN: unsigned char...
[17:08:07] al2o3-cr: yeah, instead of unsigned int
[17:10:39] al2o3-cr: i should of known yesterday when m_cost was 255. derrr brain me.
[17:11:45] al2o3-cr: man, that was driving me insane.
[17:13:25] chouhoulis: has joined #ruby
[17:13:32] hiroaki: has joined #ruby
[17:14:39] cd: has joined #ruby
[17:17:58] fredmorcos: has joined #ruby
[17:20:56] conta: has joined #ruby
[17:30:35] cthulchu: has joined #ruby
[17:32:03] lxsameer: has joined #ruby
[17:37:57] burgestrand: has joined #ruby
[17:49:19] sanscoeur: has joined #ruby
[17:50:42] \void: has joined #ruby
[17:52:45] jetchisel: has joined #ruby
[17:55:55] queip: has joined #ruby
[18:03:39] al2o3-cr: if a method could raise four times does that need four @raise in comments?
[18:23:45] dbz: has joined #ruby
[18:36:43] Puffball: has joined #ruby
[18:41:23] dellavg_: has joined #ruby
[18:49:30] queip: has joined #ruby
[18:58:49] dbz: has joined #ruby
[19:00:42] yokel: has joined #ruby
[19:07:03] Emmanuel_Chanel: has joined #ruby
[19:09:23] dbz: has joined #ruby
[19:09:41] cliluw: has joined #ruby
[19:14:38] dbz: has joined #ruby
[19:25:33] Arkantos: has joined #ruby
[19:28:10] dbz: has joined #ruby
[19:28:17] themsay: has joined #ruby
[19:33:07] bambanx: has joined #ruby
[19:35:05] Nicmavr: has joined #ruby
[19:35:05] tectonic: has joined #ruby
[19:36:08] tectonic: has joined #ruby
[19:38:14] dbz: has joined #ruby
[19:38:28] tectonic: has joined #ruby
[19:38:52] ellcs: has joined #ruby
[19:44:05] kristofferR: has joined #ruby
[19:47:30] hutch: has joined #ruby
[19:48:40] queip: has joined #ruby
[20:01:30] ur5us: has joined #ruby
[20:10:06] discopatrick: has joined #ruby
[20:11:41] keden: has joined #ruby
[20:17:48] venmx: has joined #ruby
[20:23:11] spiette: has joined #ruby
[20:25:50] venmx_: has joined #ruby
[20:28:55] ellcs: has joined #ruby
[20:29:31] reber: has joined #ruby
[20:34:04] OrangeManBad: has joined #ruby
[20:39:25] nfk: has joined #ruby
[20:43:36] elphe: has joined #ruby
[20:48:01] spiette: has joined #ruby
[20:48:44] themsay: has joined #ruby
[20:49:54] themsay: has joined #ruby
[20:51:07] themsay: has joined #ruby
[20:52:12] queip: has joined #ruby
[20:59:38] spiette: has joined #ruby
[21:01:56] Danielss89: has left #ruby: ("Bye")
[21:09:00] jaddison: has joined #ruby
[21:10:11] havenwood: marz_d`ghostman: If there's a single instance of state, singleton class. If there's no state, module.
[21:13:12] havenwood: marz_d`ghostman: So I'd lean towards singleton class, since it sounds like you do have a single instance.
[21:17:15] rubydoc: has joined #ruby
[21:25:57] ramfjord: has joined #ruby
[21:27:25] ua: has joined #ruby
[21:28:51] spiette: has joined #ruby
[21:34:41] spiette: has joined #ruby
[21:36:32] dviola: has joined #ruby
[21:37:25] hiroaki: has joined #ruby
[21:40:46] dbz: has joined #ruby
[21:46:46] kaleido: has joined #ruby
[21:49:04] dbz: has joined #ruby
[21:52:25] queip: has joined #ruby
[21:52:38] kaleido: has joined #ruby
[21:56:40] crankhar1er: has joined #ruby
[21:56:51] kaleido: has joined #ruby
[22:00:03] lxsameer: has joined #ruby
[22:00:16] keden: has joined #ruby
[22:03:16] venmx: has joined #ruby
[22:08:19] dbz: has joined #ruby
[22:11:52] jcarl43: has joined #ruby
[22:16:43] RougeR: has joined #ruby
[22:17:11] crankhar1er: has joined #ruby
[22:21:35] Azure: has joined #ruby
[22:36:01] dbz: has joined #ruby
[22:37:48] crankhar1er: has joined #ruby
[22:50:28] queip: has joined #ruby
[22:52:51] GodFather: has joined #ruby
[22:57:33] keden: has joined #ruby
[22:58:23] crankhar1er: has joined #ruby
[23:01:53] spiette: has joined #ruby
[23:03:18] dbz: has joined #ruby
[23:03:47] agent_white: has joined #ruby
[23:07:40] crankhar1er: has joined #ruby
[23:10:06] spiette: has joined #ruby
[23:15:23] nchambers: has joined #ruby
[23:16:02] agent_white: has joined #ruby
[23:24:34] spiette: has joined #ruby
[23:24:53] dbz: has joined #ruby
[23:26:01] RougeR: has joined #ruby
[23:28:18] crankhar1er: has joined #ruby
[23:29:00] cow[moo]: has joined #ruby
[23:50:03] queip: has joined #ruby
[23:57:07] crankhar1er: has joined #ruby