« Back to channel list

#ruby - 06 July 2019

« Back 1 day Forward 1 day »
[00:02:32] u0_a238: has joined #ruby
[00:10:50] orbyt_: has joined #ruby
[00:11:57] queip: has joined #ruby
[00:19:30] involans: has joined #ruby
[00:20:37] dviola: has joined #ruby
[00:25:46] octos: has joined #ruby
[00:31:59] exmortus: has joined #ruby
[00:34:08] staticx: has joined #ruby
[00:34:28] Swyper: has joined #ruby
[00:44:15] codefriar: has joined #ruby
[00:47:42] cadeskywalker: has joined #ruby
[00:52:42] lepepe: has joined #ruby
[00:55:07] sarink: has joined #ruby
[00:57:17] brool: has joined #ruby
[00:58:50] matheusmoreira: has joined #ruby
[01:03:20] Swyper: has joined #ruby
[01:06:25] lepepe: has joined #ruby
[01:13:32] duckpuppy: has joined #ruby
[01:16:26] emptyfl4sk: has joined #ruby
[01:24:38] fphilipe_: has joined #ruby
[01:28:03] chalkmonster: has joined #ruby
[01:45:22] yokel: has joined #ruby
[01:58:56] Swyper: has joined #ruby
[01:59:12] matheusmoreira: has joined #ruby
[02:02:57] Madper: has joined #ruby
[02:05:04] Freshnuts: has joined #ruby
[02:06:44] madper`: has joined #ruby
[02:09:49] ellcs: has joined #ruby
[02:19:26] emptyfl4sk: has joined #ruby
[02:20:06] Megamos: has joined #ruby
[02:46:32] code_zombie: has joined #ruby
[02:49:13] galaxie: has joined #ruby
[02:49:15] iNs: has joined #ruby
[02:56:29] moei: has joined #ruby
[02:59:16] matheusmoreira: has joined #ruby
[03:03:55] gix-: has joined #ruby
[03:04:14] ellcs: has joined #ruby
[03:07:57] emptyfl4sk: has joined #ruby
[03:10:24] braincrash: has joined #ruby
[03:11:50] christiandsg: has joined #ruby
[03:25:04] jaequery: has joined #ruby
[03:25:17] ascarter: has joined #ruby
[03:25:34] fphilipe_: has joined #ruby
[03:31:01] jcalla: has joined #ruby
[03:41:44] emptyfl4sk: has joined #ruby
[03:45:23] asprillia: has joined #ruby
[03:47:04] sarink: has joined #ruby
[03:59:36] matheusmoreira: has joined #ruby
[04:01:00] moei: has joined #ruby
[04:08:47] shakes: has joined #ruby
[04:10:00] shakes: has joined #ruby
[04:14:34] sarink: has joined #ruby
[04:14:58] sarink_: has joined #ruby
[04:20:04] sarink: has joined #ruby
[04:23:50] sarink: has joined #ruby
[04:31:33] emptyfl4sk: has joined #ruby
[04:33:20] sarink: has joined #ruby
[04:33:48] asprillia: has joined #ruby
[04:41:06] sarink: has joined #ruby
[04:42:09] ellcs: has joined #ruby
[04:48:37] sarink: has joined #ruby
[04:55:14] DTZUZO: has joined #ruby
[04:59:31] matheusmoreira: has joined #ruby
[05:00:54] sarink: has joined #ruby
[05:01:33] Dbugger: has joined #ruby
[05:13:56] sarink: has joined #ruby
[05:19:41] sarink: has joined #ruby
[05:19:44] Dbugger: has joined #ruby
[06:00:23] matheusmoreira: has joined #ruby
[06:00:37] fphilipe_: has joined #ruby
[06:12:44] kyrylo: has joined #ruby
[06:23:58] sandstrom: has joined #ruby
[06:24:42] dellavg_: has joined #ruby
[06:26:36] absolutejam4: has joined #ruby
[06:32:30] emptyfl4sk: has joined #ruby
[07:00:37] matheusmoreira: has joined #ruby
[07:00:45] sarink: has joined #ruby
[07:17:52] suukim: has joined #ruby
[07:28:38] asprillia: has joined #ruby
[07:28:52] asprillia: has left #ruby: ()
[07:34:57] queip: has joined #ruby
[07:45:10] _whitelogger: has joined #ruby
[07:54:10] _whitelogger: has joined #ruby
[07:59:02] twe4ked: has joined #ruby
[08:00:21] Joufflu: has joined #ruby
[08:01:05] matheusmoreira: has joined #ruby
[08:01:35] fphilipe_: has joined #ruby
[08:03:05] xco: has joined #ruby
[08:08:15] emptyfl4sk: has joined #ruby
[08:26:44] Freshnuts: has joined #ruby
[08:34:47] lepepe: has joined #ruby
[08:56:00] stooj: has joined #ruby
[09:01:17] matheusmoreira: has joined #ruby
[09:22:16] fphilipe_: has joined #ruby
[09:28:26] Nicmavr: has joined #ruby
[09:35:08] unreal: has joined #ruby
[09:35:42] lepepe: has joined #ruby
[09:41:37] akem_lnvo: has joined #ruby
[09:58:53] matheusm1reira: has joined #ruby
[10:09:13] emptyfl4sk: has joined #ruby
[10:10:17] akem_lnvo: Hey, is it possible for ruby to detect this syntax error without calling the method: https://pastebin.com/hc6KNbmj
[10:10:18] ruby[bot]: akem_lnvo: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[10:10:42] Inline_: has joined #ruby
[10:11:56] akem_lnvo: If i just do ruby "test.rb" or -wc, ruby say the syntax is fine, but it doesn't detect the "qsdsqd".
[10:20:16] vjacob: has joined #ruby
[10:22:46] Inline: has joined #ruby
[10:23:50] leftylink: well indeed, because it is not a syntax error. there could very well be a function named qsdsqd, which would then be called
[10:24:11] leftylink: for this sort of thing to be detected beforehand, that sounds more like the job of a type checker or something similar
[10:30:11] _whitelogger: has joined #ruby
[10:43:42] absolutejam4: has joined #ruby
[10:45:35] Dbugger: has joined #ruby
[10:56:15] loseyourmind: has joined #ruby
[10:56:17] loseyourmind: has left #ruby: ()
[10:56:23] loseyourmind: has joined #ruby
[10:56:29] loseyourmind: has left #ruby: ()
[10:56:33] loseyourmind: has joined #ruby
[10:56:40] loseyourmind: has left #ruby: ()
[11:03:57] Fernando-Basso: has joined #ruby
[11:04:26] matheusmoreira: has joined #ruby
[11:07:54] leitz: has joined #ruby
[11:13:01] jrafanie: has joined #ruby
[11:14:26] ur5us: has joined #ruby
[11:15:36] ur5us: has joined #ruby
[11:16:24] leitz: class A has getter and setter methods. Other methods are needed to generate what the getters receive. Should the "generators" go into class A itself or into a factory?
[11:16:58] sarink_: has joined #ruby
[11:21:44] eject_ck: has joined #ruby
[11:22:58] eject_ck: Hi guys, I'm srruggling to convert my string '05/Jul/2019:14:39:31.452' to datetime object. Then I will be able to convert it with something like DateTime.strftime(mydate, '%d/%b/%Y:%H:%M:%S.%3N')
[11:25:07] leftylink: &ri DateTime.strptime
[11:25:07] rubydoc: https://ruby-doc.org/stdlib-2.6/libdoc/date/rdoc/DateTime.html#method-c-strptime
[11:25:21] leftylink: I hope that strptime is able to help in this instance
[11:25:25] eject_ck: for DateTime.strptime it's not an issue
[11:25:36] eject_ck: my problem is to get string parsed
[11:25:49] leftylink: isn't that exactly what strptime does? to parse?
[11:26:02] sarink: has joined #ruby
[11:28:27] leftylink: I don' tknow what the p stands for
[11:31:11] eject_ck: got it working
[11:50:58] eject_ck: has left #ruby: ()
[11:58:54] ua: has joined #ruby
[12:04:45] matheusmoreira: has joined #ruby
[12:06:49] eject_ck: has joined #ruby
[12:07:07] eject_ck: with DateTime.strptime , how can I parse microseconds ?
[12:10:04] emptyfl4sk: has joined #ruby
[12:11:50] henninb: has joined #ruby
[12:12:36] henninb: has joined #ruby
[12:14:27] AJA4350: has joined #ruby
[12:25:30] Inline: has joined #ruby
[12:27:42] TheMadDoc: has joined #ruby
[12:28:09] ur5us: has joined #ruby
[12:43:29] henninb: has joined #ruby
[12:44:14] henninb: has joined #ruby
[12:48:12] falconfox: has joined #ruby
[12:49:04] lepepe: has joined #ruby
[12:49:30] absolutejam4: has joined #ruby
[13:04:53] matheusmoreira: has joined #ruby
[13:08:29] sandstrom: has joined #ruby
[13:16:19] ur5us: has joined #ruby
[13:18:33] Inline_: has joined #ruby
[13:22:03] involans: has joined #ruby
[13:22:45] davor: has joined #ruby
[13:26:48] kyrylo: has joined #ruby
[13:27:37] cd: has joined #ruby
[13:33:01] akem_lnvo: leftylink, about that type checker thing, is ruby by itself not able to find out the function is not defined and throw the error after parsing the file or something? because if i'm calling the function explicitly it will throw the error that the function does not exist.
[13:33:11] ur5us: has joined #ruby
[13:44:38] sandstrom: has joined #ruby
[13:45:41] jrafanie: has joined #ruby
[13:50:48] xco: has joined #ruby
[13:52:34] LightStalker: has joined #ruby
[13:54:04] bhaak: has joined #ruby
[13:58:22] akem-lnvo: has joined #ruby
[14:03:49] akem-lnvo: has joined #ruby
[14:05:51] akem_lnvo: has joined #ruby
[14:11:00] emptyfl4sk: has joined #ruby
[14:15:29] matheusmoreira: has joined #ruby
[14:16:48] Swyper: has joined #ruby
[14:19:39] Swyper: has joined #ruby
[14:20:14] fuzzface: has joined #ruby
[14:28:31] mniip: has joined #ruby
[14:29:15] sandstrom: has joined #ruby
[14:36:29] jaequery: has joined #ruby
[14:47:45] Swyper: has joined #ruby
[14:52:27] ovnimancer: has joined #ruby
[14:55:16] fuzzface: has joined #ruby
[15:05:41] matheusmoreira: has joined #ruby
[15:06:38] sandstrom: has joined #ruby
[15:08:15] Swyper: has joined #ruby
[15:09:12] emptyfl4sk: has joined #ruby
[15:14:01] henninb: has joined #ruby
[15:15:13] moriarty: has joined #ruby
[15:15:20] moriarty: has left #ruby: ()
[15:15:27] emptyfl4sk: has joined #ruby
[15:24:15] lepepe: has joined #ruby
[15:28:06] Swyper: has joined #ruby
[15:33:26] lepepe: has joined #ruby
[15:51:51] Swyper: has joined #ruby
[15:58:15] stooj: has joined #ruby
[16:04:59] garyserj: i have a method jkl that takes 3 parameters. I do jkl 3,4,{puts "x"} it gives an error. why?
[16:06:18] matheusmoreira: has joined #ruby
[16:06:38] phaul: because {puts "x" } is not a parameter. it's a block. but that's normal value but special syntax
[16:07:06] phaul: and it's not counted in arity, has to be the last, and you can't put comma in front of it
[16:07:31] phaul: so this would work jkl(3,4) { puts "x" }
[16:07:58] phaul: arity is 2 and a block is additionally passed
[16:08:16] kyrylo: has joined #ruby
[16:08:19] garyserj: do you always need parentheses around prior parameters?
[16:08:27] garyserj: when passing a block
[16:08:38] Swyper: has joined #ruby
[16:08:39] phaul: depends if you use the do end vs the braces syntax
[16:09:01] phaul: do end doesn't iirc
[16:13:56] emptyflask: has joined #ruby
[16:33:04] Swyper: has joined #ruby
[16:35:43] Inline: has joined #ruby
[16:35:52] Swyper: has joined #ruby
[16:36:37] orbyt_: has joined #ruby
[16:38:22] lepepe: has joined #ruby
[16:43:34] garyserj: I have def abc. when I call it, this doesn't give an error abc do puts blahrandom end any idea why?
[16:43:58] Swyper: has joined #ruby
[16:44:01] garyserj: blahrandom could be asfsdfd just a non-existant variable
[16:45:06] garyserj: I guess it only becomes an error when it runs
[16:45:27] garyserj: yeah, i see now, only an error when it runs so when i do yield
[16:46:19] phaul: you can pass a block to anything, they might just ignore it.
[16:46:40] phaul: &>> 1.+(2) { puts hello }
[16:46:43] rubydoc: # => 3 (https://carc.in/#/r/76v5)
[16:46:58] phaul: passing a block to integer addition..
[16:51:52] falconfox: has joined #ruby
[16:52:46] reber: has joined #ruby
[17:00:12] gix: has joined #ruby
[17:02:15] tpanarch1st: has joined #ruby
[17:02:49] chalkmonster: has joined #ruby
[17:03:51] Swyper: has joined #ruby
[17:05:22] Swyper: has joined #ruby
[17:05:56] matheusmoreira: has joined #ruby
[17:14:50] sandstrom: has joined #ruby
[17:16:01] cow[moo]: has joined #ruby
[17:28:15] cow[moo]: has joined #ruby
[17:28:47] lepepe: has joined #ruby
[17:29:21] za1b1tsu: has joined #ruby
[17:34:17] orbyt_: has joined #ruby
[17:36:24] reber: has joined #ruby
[17:45:35] Menteb: has joined #ruby
[17:46:28] Sylario: has joined #ruby
[17:46:29] Menteb: has left #ruby: ()
[17:50:51] mniip: has joined #ruby
[17:53:40] Swyper: has joined #ruby
[17:55:02] Fusl: has joined #ruby
[17:56:04] lepepe: has joined #ruby
[17:57:00] absolutejam4: has joined #ruby
[17:59:43] GodFather: has joined #ruby
[18:01:21] Swyper: has joined #ruby
[18:02:29] Joufflu: has joined #ruby
[18:06:02] matheusmoreira: has joined #ruby
[18:06:50] Swyper: has joined #ruby
[18:09:15] garyserj: if i have a method def abc x, and hash with more than one key-value pair, then let's say I want to do the call without parentheses, so I guess then a hash cannot then have curly braces? is it possible to pass the hash? abc "f":1 works, but abc "f":1,"g":2 and it thinks i'm passing multiple arguments. If I want to pass as one hash do I have to use {} and then have to use parentheses?
[18:09:55] Megamos: has joined #ruby
[18:10:43] ytti: [1] pry(main)> def foo hash; pp hash; end
[18:10:43] ytti: [2] pry(main)> foo first: "moi", second: "hei"
[18:10:43] ytti: {:first=>"moi", :second=>"hei"}
[18:10:46] ytti: => {:first=>"moi", :second=>"hei"}
[18:13:48] garyserj: ah, thanks.
[18:14:52] garyserj: so if i wanted to pass two hashes would i need parens?
[18:15:32] emptyfl4sk: has joined #ruby
[18:15:33] ytti: this keyword argument style can be done only for one hash
[18:15:39] ytti: rest would need to be passed like normal hash
[18:16:19] garyserj: what is 'keyword argument style'?
[18:16:31] ytti: what i showed
[18:16:53] garyserj: well, you showed omitting curly braces and omitting parens
[18:16:54] ytti: you may want to google 'ruby keyword argument'
[18:17:00] garyserj: and you showed colon.
[18:17:03] garyserj: ok i illw, thanks
[18:17:15] lepepe: has joined #ruby
[18:21:39] Technodrome: has joined #ruby
[18:29:59] Joufflu: has joined #ruby
[18:42:47] xfbs: has joined #ruby
[18:46:15] lepepe: has joined #ruby
[18:47:11] staticx: has joined #ruby
[18:54:21] yaewa: has joined #ruby
[19:01:37] moei: has joined #ruby
[19:07:26] absolutejam4: has joined #ruby
[19:10:16] dviola: has joined #ruby
[19:15:40] hightower2: has joined #ruby
[19:17:08] hightower2: Hey what's a good library for finding files on disk, filtering by pattern, etc.
[19:19:41] hightower2: well, might go with Dir's functionality
[19:21:22] queip: has joined #ruby
[19:34:43] lepepe: has joined #ruby
[19:44:14] twoone: has joined #ruby
[19:44:32] absolutejam1: has joined #ruby
[19:47:39] twoone: has joined #ruby
[19:50:06] haxx0r79: has joined #ruby
[19:59:04] dubalubdub: has joined #ruby
[20:00:44] jaequery: has joined #ruby
[20:06:29] sandstrom: has joined #ruby
[20:07:00] chalkmonster: has joined #ruby
[20:08:42] Nicmavr: has joined #ruby
[20:14:55] dviola: has joined #ruby
[20:16:17] queip: has joined #ruby
[20:17:40] chalkmonster: has joined #ruby
[20:18:11] henninb: has joined #ruby
[20:18:59] emptyfl4sk: has joined #ruby
[20:31:30] jrafanie: has joined #ruby
[20:35:39] exmortus: has joined #ruby
[20:39:07] lepepe: has joined #ruby
[20:43:30] AJA4350: has joined #ruby
[20:54:31] sarink: has joined #ruby
[21:01:20] lepepe: has joined #ruby
[21:06:12] reber: has joined #ruby
[21:06:36] Esa_: has joined #ruby
[21:10:29] sarink: has joined #ruby
[21:19:59] darix: zenspider: woof?
[21:27:50] queip: has joined #ruby
[21:32:16] sandstrom: has joined #ruby
[21:37:02] kyrylo: has joined #ruby
[21:38:17] lepepe: has joined #ruby
[21:40:12] schne1der: has joined #ruby
[21:50:08] fphilipe_: has joined #ruby
[21:50:39] queip: has joined #ruby
[21:56:11] Swyper: has joined #ruby
[22:04:19] stooj: has joined #ruby
[22:07:44] stooj: has joined #ruby
[22:13:01] Exuma: has joined #ruby
[22:19:16] sandstrom: has joined #ruby
[22:20:00] emptyfl4sk: has joined #ruby
[22:29:52] lepepe: has joined #ruby
[22:32:34] orbyt_: has joined #ruby
[22:33:44] lepepe_: has joined #ruby
[22:37:20] Azure: has joined #ruby
[22:39:09] lepepe_: has joined #ruby
[22:46:58] Azure: has joined #ruby
[23:04:37] sandstrom: has joined #ruby
[23:04:43] sarink: has joined #ruby
[23:08:14] involans: has joined #ruby
[23:11:29] queip: has joined #ruby
[23:14:14] 92AACINWE: has joined #ruby
[23:14:14] 17WACS0MC: has joined #ruby
[23:19:13] emptyfl4sk: has joined #ruby
[23:41:30] _falsebay_: has joined #ruby