« Back to channel list

#ruby - 17 June 2017

« Back 1 day Forward 1 day »
[00:00:57] Bhootrk_: has joined #ruby
[00:08:13] MrBusiness: has joined #ruby
[00:13:41] Jameser: has joined #ruby
[00:14:03] Cohedrin: has joined #ruby
[00:17:31] zululee_: has joined #ruby
[00:21:31] zululee: has joined #ruby
[00:22:38] jenrzzz: has joined #ruby
[00:22:38] jenrzzz: has joined #ruby
[00:24:16] Bounga: has joined #ruby
[00:25:07] cschneid_: has joined #ruby
[00:28:15] charliesome: has joined #ruby
[00:36:51] Hunter1: has joined #ruby
[00:38:26] TinkerTyper: has joined #ruby
[00:39:50] ur5us: has joined #ruby
[00:39:54] charliesome: has joined #ruby
[00:46:13] brent__: has joined #ruby
[00:48:25] jenrzzz: has joined #ruby
[00:48:25] jenrzzz: has joined #ruby
[00:53:50] lowtide: has joined #ruby
[00:54:02] lowtide: is it okay to indent with spaces
[00:54:32] Papierkorb: lowtide: "2 spaces" for indention is community standard
[01:00:20] nankyokusei: has joined #ruby
[01:01:12] duderonomy: has joined #ruby
[01:05:12] eblip: has joined #ruby
[01:07:02] eb0t: has joined #ruby
[01:07:21] Cohedrin: has joined #ruby
[01:07:44] Hunter1: has joined #ruby
[01:09:13] ruby[bot]: Ruby community standards recommend using 2 spaces as indentation (see https://github.com/bbatsov/ruby-style-guide#spaces-indentation and https://ukupat.github.io/tabs-or-spaces/).
[01:16:20] jenrzzz: has joined #ruby
[01:16:20] jenrzzz: has joined #ruby
[01:17:32] poloych: has joined #ruby
[01:20:15] arescorpio: has joined #ruby
[01:24:54] Bounga: has joined #ruby
[01:26:12] skweek: has joined #ruby
[01:32:59] ketan: has joined #ruby
[01:36:03] nicesignal: has joined #ruby
[01:58:38] herbmillerjr: has joined #ruby
[01:59:47] astrobunny: has joined #ruby
[02:00:33] benlieb: has joined #ruby
[02:00:44] d^sh: has joined #ruby
[02:00:57] astrobunny: has joined #ruby
[02:18:11] _whitelogger: has joined #ruby
[02:20:24] genpaku: has joined #ruby
[02:24:13] jenrzzz: has joined #ruby
[02:24:13] jenrzzz: has joined #ruby
[02:25:46] Bounga: has joined #ruby
[02:33:41] hutch34: has joined #ruby
[02:34:12] FastJack: has joined #ruby
[02:39:03] ornerymoose: has joined #ruby
[02:40:39] ur5us: has joined #ruby
[02:41:23] uZiel: has joined #ruby
[02:43:15] ryzokuken_: has joined #ruby
[02:44:31] gothicsouth: has joined #ruby
[02:47:47] borei1: has left #ruby: ()
[02:49:07] d3d1rty: has joined #ruby
[02:49:48] jerryskye: has joined #ruby
[02:50:35] FastJack: has joined #ruby
[02:50:36] ivanskie: has joined #ruby
[02:51:19] d^sh: has joined #ruby
[03:01:12] nankyokusei: has joined #ruby
[03:06:08] jerryskye: has left #ruby: ()
[03:11:38] tubuliferous: has joined #ruby
[03:17:45] skweek: has joined #ruby
[03:24:22] patarr: has joined #ruby
[03:26:06] hutch34: has joined #ruby
[03:26:24] Bounga: has joined #ruby
[03:32:42] lacuna: has joined #ruby
[03:33:50] ketan: has joined #ruby
[03:36:19] kent\n: has joined #ruby
[03:40:47] cadillac_: has joined #ruby
[03:42:58] eightlimbed: has joined #ruby
[03:44:29] gix: has joined #ruby
[03:45:57] hutch34: has joined #ruby
[03:48:29] ryzokuken_: has joined #ruby
[03:59:58] segy: has joined #ruby
[04:02:52] bauruine: has joined #ruby
[04:10:11] rideh: has joined #ruby
[04:13:28] skweek: has joined #ruby
[04:21:16] Silthias: has joined #ruby
[04:27:23] Bounga: has joined #ruby
[04:29:57] nowhere_man: has joined #ruby
[04:41:09] kies: has joined #ruby
[04:41:24] ur5us: has joined #ruby
[04:47:41] charliesome: has joined #ruby
[04:49:01] bauruine: has joined #ruby
[05:01:46] nankyokusei: has joined #ruby
[05:06:18] hkdsun: has joined #ruby
[05:18:38] nocaberi: has joined #ruby
[05:21:42] podlech: has joined #ruby
[05:21:53] nocaberi: has joined #ruby
[05:25:23] patarr: has joined #ruby
[05:28:10] Bounga: has joined #ruby
[05:34:42] ketan: has joined #ruby
[05:39:42] that2: has joined #ruby
[05:40:07] that2: has left #ruby: ()
[05:44:13] tubuliferous: has joined #ruby
[05:47:06] rohitpaulk: has joined #ruby
[05:49:33] nicesignal: has joined #ruby
[05:52:49] quobo: has joined #ruby
[05:55:43] KeyJoo: has joined #ruby
[06:00:20] _whitelogger: has joined #ruby
[06:08:11] brent__: has joined #ruby
[06:12:23] hutch34: has joined #ruby
[06:14:38] harfangk: has joined #ruby
[06:20:17] khaki: has joined #ruby
[06:22:26] creshiem: has joined #ruby
[06:24:54] username: has joined #ruby
[06:24:57] mtkd: has joined #ruby
[06:26:23] latemus: has joined #ruby
[06:26:42] TomyLobo: has joined #ruby
[06:29:02] Bounga: has joined #ruby
[06:32:59] bkxd: has joined #ruby
[06:33:00] bkxd_: has joined #ruby
[06:36:59] dionysus69: has joined #ruby
[06:38:26] rippa: has joined #ruby
[06:40:01] ur5us: has joined #ruby
[06:41:53] dionysus69: has joined #ruby
[06:46:36] lacuna: has joined #ruby
[06:47:16] andrzejku: has joined #ruby
[06:57:14] _whitelogger: has joined #ruby
[06:58:41] muelleme_: has joined #ruby
[07:02:56] nankyokusei: has joined #ruby
[07:06:02] enterprisey: has joined #ruby
[07:11:42] drptbl: has joined #ruby
[07:12:17] ericmathison: has joined #ruby
[07:13:22] bauruine: has joined #ruby
[07:16:52] Cohedrin: has joined #ruby
[07:17:37] muelleme_: has joined #ruby
[07:20:03] Abhijit: has joined #ruby
[07:20:22] Abhijit: whats the Ruby way to decide if date is in future, past or in between two dates
[07:21:18] apeiros: one way would be: if date > end_date then … future … elsif date < start_date then … past … else … between … end
[07:21:55] Abhijit: this will work for DateTime or Date object?
[07:25:13] elomatreb: Can't you use ranges with dates?
[07:25:33] apeiros: but if you need all 3 branches, I see no point
[07:25:50] apeiros: also if you only want "between a & b" I prefer between? over ranges too
[07:25:58] apeiros: date.between?(start_date, end_date)
[07:26:06] patarr: has joined #ruby
[07:26:33] elomatreb: I was thinking of coaxing this to a case switch, but since there are three branches that probably won't work
[07:26:38] apeiros: ranges are mighty nice if you have multiple "slots", though: case date; when in_range1 then … when in_range2 …
[07:27:28] apeiros: it would, but you'd need special "smaller than all" and "bigger than all" objects like these: https://github.com/apeiros/sorting/blob/master/lib/sorting/smaller.rb and https://github.com/apeiros/sorting/blob/master/lib/sorting/bigger.rb
[07:28:10] elomatreb: Doesn't Date.new return the lowest representable date at least? So you could cover past, the timespan, and everything else is the future
[07:29:07] bkxd: has joined #ruby
[07:29:29] apeiros: no, Date.new return a "base date"
[07:29:40] Bounga: has joined #ruby
[07:29:52] apeiros: >> [Date.new.year, Date.civil(-5000).year)]
[07:29:53] ruby[bot]: apeiros: # => /tmp/execpad-8d86f552d7f6/source-8d86f552d7f6:2: syntax error, unexpected ')', expecting ']' ...check link for more (https://eval.in/818073)
[07:29:59] apeiros: >> [Date.new.year, Date.civil(-5000).year]
[07:30:00] ruby[bot]: apeiros: # => uninitialized constant Date ...check link for more (https://eval.in/818074)
[07:30:06] apeiros: >> require 'date'; [Date.new.year, Date.civil(-5000).year]
[07:30:07] ruby[bot]: apeiros: # => [-4712, -5000] (https://eval.in/818075)
[07:30:48] elomatreb: Mh, what's the significance of -4712?
[07:30:58] apeiros: google julian date
[07:31:38] apeiros: The Julian Day Number (JDN) is the integer assigned to a whole solar day in the Julian day count starting from noon Universal time, with Julian day number 0 assigned to the day starting at noon on January 1, 4713 BC, proleptic Julian calendar (November 24, 4714 BC, in the proleptic Gregorian calendar)
[07:31:56] apeiros: (wikipedia)
[07:35:34] ketan: has joined #ruby
[07:37:14] bauruine: has joined #ruby
[07:42:30] bkxd_: has joined #ruby
[07:44:03] Lyubo1: has joined #ruby
[07:44:12] Mutter: has joined #ruby
[08:02:05] mahlon_: has joined #ruby
[08:03:29] Mutter: has joined #ruby
[08:08:48] Silthias: has joined #ruby
[08:08:48] brent__: has joined #ruby
[08:09:54] tubuliferous: has joined #ruby
[08:12:05] govg: has joined #ruby
[08:13:56] hutch34: has joined #ruby
[08:15:22] fxa90id: has joined #ruby
[08:16:46] hightower2: has joined #ruby
[08:19:12] moei: has joined #ruby
[08:22:16] govg: has joined #ruby
[08:25:37] andrzejku: has joined #ruby
[08:30:32] Bounga: has joined #ruby
[08:34:20] FastJack_: has joined #ruby
[08:35:24] mahlon: has joined #ruby
[08:39:16] ur5us: has joined #ruby
[08:39:26] acalycine: has joined #ruby
[08:39:48] acalycine: How can I access the name of a method from inside it? Is there a var for this?
[08:40:19] apeiros: __method__
[08:40:23] ineb: ofc __meth...
[08:40:28] apeiros: though usually you should know what method you defined :-p
[08:40:43] acalycine: Yeah, just for debugging purposes.
[08:43:31] govg: has joined #ruby
[08:44:10] biberu: has joined #ruby
[08:45:34] cadillac_: has joined #ruby
[08:46:58] nofxxxx: has joined #ruby
[08:48:51] govg: has joined #ruby
[08:50:40] lxsameer: has joined #ruby
[08:50:46] ytti: oops http://www.nydailynews.com/news/national/woman-sues-casino-offered-steak-43-million-article-1.3253502
[08:53:56] Mia: has joined #ruby
[08:53:57] Mia: has joined #ruby
[08:54:20] bauruine: has joined #ruby
[08:54:28] biberu: has joined #ruby
[08:59:32] ineb: ytti: and this glitch was caused by ruby how?
[09:03:29] ytti: i doubt so, considering ruby doesn't have fixed size integers
[09:03:47] nankyokusei: has joined #ruby
[09:03:57] roshanavand: has joined #ruby
[09:06:27] acalycine: has joined #ruby
[09:06:39] meshsmith: has joined #ruby
[09:06:42] Murda: has joined #ruby
[09:07:22] uZiel: has joined #ruby
[09:07:59] psychicist__: has joined #ruby
[09:10:02] rohitpaulk: has joined #ruby
[09:12:49] Mon_Ouie: has joined #ruby
[09:13:00] ur5us: has joined #ruby
[09:15:27] ur5us_: has joined #ruby
[09:19:15] marr: has joined #ruby
[09:26:59] patarr: has joined #ruby
[09:28:08] jaruga_________: has joined #ruby
[09:29:47] cfec0b8d: has joined #ruby
[09:31:09] Bounga: has joined #ruby
[09:34:14] sleetdrop: has joined #ruby
[09:34:40] rohitpaulk: has joined #ruby
[09:36:26] ketan: has joined #ruby
[09:39:55] rohitpaulk: has joined #ruby
[09:44:36] ddffg: has joined #ruby
[09:46:35] ryzokuken_: has joined #ruby
[09:50:01] lowtide: has joined #ruby
[09:50:04] roshanavand: has joined #ruby
[09:50:37] dasher00: has joined #ruby
[09:51:41] graft: has joined #ruby
[09:51:41] graft: has joined #ruby
[10:03:44] bauruine: has joined #ruby
[10:04:34] ski4x7: has joined #ruby
[10:06:06] bkxd: has joined #ruby
[10:06:08] bkxd_: has joined #ruby
[10:06:51] acalycine: has joined #ruby
[10:09:07] blackwind_123: has joined #ruby
[10:11:12] ur5us: has joined #ruby
[10:15:28] hutch34: has joined #ruby
[10:15:38] jaruga_________: has joined #ruby
[10:20:37] Fernando-Basso: has joined #ruby
[10:22:47] acalycine: has joined #ruby
[10:24:17] brent__: has joined #ruby
[10:25:00] patarr: has joined #ruby
[10:32:10] Bounga: has joined #ruby
[10:36:39] Murda_: has joined #ruby
[10:42:16] Tempesta: has joined #ruby
[10:44:15] Murda: has joined #ruby
[10:47:21] rohitpaulk: has joined #ruby
[10:53:00] ecuanaso: has joined #ruby
[10:55:33] [ohjn]: has joined #ruby
[11:03:45] BTRE: has joined #ruby
[11:04:40] nankyokusei: has joined #ruby
[11:14:26] charliesome: has joined #ruby
[11:15:14] uZiel: has joined #ruby
[11:15:35] belmoussaoui: has joined #ruby
[11:21:25] hightower2: has joined #ruby
[11:22:39] ski7777: has joined #ruby
[11:28:12] arup_r: has joined #ruby
[11:33:03] Bounga: has joined #ruby
[11:34:39] dasher00: has joined #ruby
[11:36:08] A124: has joined #ruby
[11:37:18] ketan: has joined #ruby
[11:41:16] xenops: has joined #ruby
[11:46:23] belmoussaoui: has joined #ruby
[11:49:58] ryzokuken_: has joined #ruby
[11:51:08] ryzokuken_: has joined #ruby
[11:51:18] ornerymoose: has joined #ruby
[11:52:21] ryzokuken_: has joined #ruby
[11:54:02] ryzokuken_: has joined #ruby
[11:55:25] ryzokuken_: has joined #ruby
[11:56:44] ryzokuken_: has joined #ruby
[11:56:46] andrzejku: has joined #ruby
[11:59:34] ketan: has joined #ruby
[12:06:21] rohitpaulk: has joined #ruby
[12:07:03] sepp2k: has joined #ruby
[12:10:19] ketan: has joined #ruby
[12:13:55] jjunior_: has joined #ruby
[12:23:44] mathys: has joined #ruby
[12:31:24] Kug3lis: has joined #ruby
[12:33:41] Bounga: has joined #ruby
[12:45:27] nowhere_man: has joined #ruby
[12:51:47] sagax: has joined #ruby
[12:52:54] belmoussaoui: has joined #ruby
[13:01:12] ejnahc: has joined #ruby
[13:02:15] Disavowed_: has left #ruby: ()
[13:05:32] nankyokusei: has joined #ruby
[13:06:59] herbmillerjr: has joined #ruby
[13:17:38] astrobunny: has joined #ruby
[13:19:08] sepp2k1: has joined #ruby
[13:19:50] tubuliferous: has joined #ruby
[13:21:32] centrx: has joined #ruby
[13:21:44] GodFather: has joined #ruby
[13:34:24] Bounga: has joined #ruby
[13:36:26] andrzejku: has joined #ruby
[13:45:16] giraffe: has joined #ruby
[13:46:18] tpendragon: has joined #ruby
[13:51:10] lucasb: has joined #ruby
[13:55:53] reacquaint: has joined #ruby
[13:57:00] xenops: has joined #ruby
[13:59:19] rohitpaulk: has joined #ruby
[14:04:12] Hunter1: has joined #ruby
[14:05:58] herbmillerjr: has joined #ruby
[14:20:43] DLSteve: has joined #ruby
[14:26:56] dviola: has joined #ruby
[14:30:29] jaruga_________: has joined #ruby
[14:35:19] Bounga: has joined #ruby
[14:38:11] Jameser: has joined #ruby
[14:59:33] blackwind_123: has joined #ruby
[15:01:46] yeticry_: has joined #ruby
[15:01:56] d^sh: has joined #ruby
[15:02:07] blackwind_123: has joined #ruby
[15:06:24] nankyokusei: has joined #ruby
[15:09:10] Captain: has joined #ruby
[15:14:23] Guest7383: has joined #ruby
[15:16:16] captain_murphy: has joined #ruby
[15:19:27] hutch34: has joined #ruby
[15:21:44] meshsmith: has joined #ruby
[15:22:58] ken: has joined #ruby
[15:23:49] tubuliferous: has joined #ruby
[15:24:28] captain_murphy: has left #ruby: ("Leaving")
[15:24:59] captain_murphy: has joined #ruby
[15:25:31] roshanavand: has joined #ruby
[15:26:12] captain_murphy: ruby REGISTER g1f1y1z1 murphyscalligraphy@gmail.com
[15:26:52] blackwind_123: has joined #ruby
[15:27:14] centrx: captain_murphy: change it quick!
[15:27:15] apeiros: nice password
[15:27:32] matugm: has joined #ruby
[15:27:39] centrx: Captain Murphy, you've been demoted
[15:27:42] apeiros: not very secure, but nice
[15:30:28] matugm: So I'm looking at the method cache implementation in MRI & I see that for a cache entry to be valid both the Global state & the class serial have to match.
[15:30:35] matugm: ent->method_state == GET_GLOBAL_METHOD_STATE() && ent->class_serial == RCLASS_SERIAL(klass)
[15:30:48] matugm: If that's the case, then why they are different values?
[15:33:28] iomotoko: has joined #ruby
[15:35:54] Bounga: has joined #ruby
[15:36:07] chrisarcand: has joined #ruby
[15:36:16] montyboy_: has joined #ruby
[15:36:52] gsingh93: has joined #ruby
[15:37:00] captain_murphy: has joined #ruby
[15:37:54] bazzy: has joined #ruby
[15:38:30] jaruga_________: has joined #ruby
[15:38:39] tw1sted: has joined #ruby
[15:38:42] gf3: has joined #ruby
[15:38:43] tsul: has joined #ruby
[15:39:47] D9: has joined #ruby
[15:39:51] duracrisis: has joined #ruby
[15:40:13] dyyylan: has joined #ruby
[15:40:17] bogdanteleaga: has joined #ruby
[15:41:42] cam27: has joined #ruby
[15:41:56] larissa: has joined #ruby
[15:41:59] S007: has joined #ruby
[15:42:34] cdg: has joined #ruby
[15:43:54] z64: has joined #ruby
[15:44:06] daed: has joined #ruby
[15:44:29] biox: has joined #ruby
[15:45:02] pupsicle: has joined #ruby
[15:46:49] sparr: has joined #ruby
[15:49:43] cam27: Just finished reading “The Well Grounded Rubyist” I have two other books, but I’m wondering what would be a good book for working with Databases with ruby?
[15:50:56] cam27: Controller code in rails is my weakness
[15:51:02] matthewd: matugm: Don't they get incremented separately?
[15:51:24] belmoussaoui: has joined #ruby
[15:56:56] belmoussaoui: has joined #ruby
[15:58:52] _sfiguser: has joined #ruby
[16:04:45] chalkmonster: has joined #ruby
[16:08:45] centrx: cam27: Have you gone through the relevant parts of the Hartl Rails Tutorial?
[16:09:40] cam27: centrx, yes, I’ve coded the whole book out with him. But then when I went to make a checkout for a fun demo project, I screwed it up, and could bnever get my item into the basket
[16:10:33] cam27: I probably could have just found a gem that did the checkout process, but I wanted to manually try to work with the data
[16:12:01] centrx: What was the problem?
[16:13:11] matugm: matthewd: Yes, they do, but I'm trying to understand why.
[16:15:30] cam27: I couldn’t get the item to add to the shopping cart (item count and price)
[16:16:28] xall: has joined #ruby
[16:17:06] cam27: I’ve been away from Rails for a year, so I’m getting back into it now, so I might not rememebr everything, but when I first developed in it I never really knew Ruby. And I still look at things like params[:card] and wonder if that is an array named params with a symbol :card?
[16:17:46] cam27: Ruby is just so much more advanced than Java to me :)
[16:18:26] matthewd: matugm: AIUI, the alternative would be to bump every single class's serial when defining a method on Object/Kernel, which does seem less than ideal
[16:23:15] DLSteve: has joined #ruby
[16:23:29] Hunter1: has joined #ruby
[16:25:07] matugm: matthewd: I see, thanks for the answer :)
[16:25:33] cam27: THis is a hash that hold arrays right? card: params[:stripe_token]
[16:26:24] matthewd: cam27: It's [seemingly] a hash; what it holds is up to it
[16:27:06] elifoster: has joined #ruby
[16:27:22] cam27: but params[] is an array correct? Just realized I could probably start pasting things like that inot irb and see what it returns, that will help a lot when reading code
[16:28:05] matthewd: No, params is a hash
[16:28:29] cam27: so it would be a hash of hashes
[16:29:02] cam27: irb didn’t like it, so that didn’t work lol
[16:29:45] matthewd: You'd need a params value first
[16:31:04] rohitpaulk: has joined #ruby
[16:32:15] blackwind_123: has joined #ruby
[16:35:35] cam27: matthewd, I’m on chapter 4 of the RSpec Book, after that I’m going to finsih the “Rails, ANgular, Postgres, Bootstrap” book and then try to find good material on Service Layers. do you have any advice to get the most out of my time? I’ve read the Hartl and Well Grounded Rubyist book so far
[16:36:43] Cohedrin: has joined #ruby
[16:37:32] Bounga: has joined #ruby
[16:38:48] t-recx: has joined #ruby
[16:48:39] matthewd: My only general advice would be to pick a thing to make, and then use reference material to aid that effort... personally, my learning tapers off after a while when reading material without a concrete objective
[16:50:22] cam27: I see. Well I think I’m gonna just read as much as I can and put it to use in the end, since I’ve been building, without knowing for awhile.
[16:52:22] raul782: has joined #ruby
[16:53:05] meshsmith: has joined #ruby
[16:53:16] rohitpaulk: has joined #ruby
[16:57:06] belmoussaoui: has joined #ruby
[16:57:30] ahrs: has joined #ruby
[17:04:38] dionysus69: has joined #ruby
[17:07:15] nankyokusei: has joined #ruby
[17:11:51] cschneid: has joined #ruby
[17:12:38] nerglish: has joined #ruby
[17:15:49] rohitpaulk: has joined #ruby
[17:15:58] lowtide: has joined #ruby
[17:16:23] herbmillerjr: has joined #ruby
[17:20:53] hutch34: has joined #ruby
[17:31:20] SaschaVoid: has joined #ruby
[17:33:23] Demo318: has joined #ruby
[17:36:14] centrx: has joined #ruby
[17:38:26] Bounga: has joined #ruby
[17:42:19] Esf: has joined #ruby
[17:42:21] lxsameer: has joined #ruby
[17:45:15] ^mtkd: has joined #ruby
[17:46:56] vuoto: has joined #ruby
[17:48:19] Cohedrin: has joined #ruby
[17:56:34] cam27: has joined #ruby
[17:58:40] helpa-bot: has joined #ruby
[17:58:51] jdelStrother: has joined #ruby
[17:58:51] scorphus: has joined #ruby
[17:58:59] seggy: has joined #ruby
[17:59:12] yxhuvud: has joined #ruby
[17:59:16] Truenigma: has joined #ruby
[18:00:22] helpa: has joined #ruby
[18:00:58] rt: has joined #ruby
[18:01:50] radic: has joined #ruby
[18:03:39] cdg: has joined #ruby
[18:03:42] jinie: has joined #ruby
[18:03:52] KillerFox: has joined #ruby
[18:04:00] forgot: has joined #ruby
[18:04:03] FastJack: has joined #ruby
[18:04:30] jinie_: has joined #ruby
[18:04:30] unsymbol: has joined #ruby
[18:06:31] dasher00: has joined #ruby
[18:07:02] hutch34: has joined #ruby
[18:12:25] muelleme_: has joined #ruby
[18:13:20] belmoussaoui: has joined #ruby
[18:13:34] gothicsouth: has joined #ruby
[18:13:42] moonpie: has joined #ruby
[18:19:08] jottr: has joined #ruby
[18:19:32] belmoussaoui: has joined #ruby
[18:25:59] c0mrad3: has joined #ruby
[18:26:18] jaruga_________: has joined #ruby
[18:26:41] raul782: has joined #ruby
[18:27:07] mtkd: has joined #ruby
[18:29:11] ecuanaso: has joined #ruby
[18:37:18] marr: has joined #ruby
[18:38:40] TheBrayn: has joined #ruby
[18:39:04] Bounga: has joined #ruby
[18:40:33] anisha: has joined #ruby
[18:43:37] belmoussaoui: has joined #ruby
[18:43:45] TheBrayn: has joined #ruby
[18:48:16] tomaw: has joined #ruby
[18:48:44] spider-mario: has joined #ruby
[18:48:57] mr_rich101: has joined #ruby
[18:49:00] uranellus_: has joined #ruby
[18:49:02] rileyy: has joined #ruby
[18:49:03] DarkBushido: has joined #ruby
[18:49:04] DarkBushido: has joined #ruby
[18:49:05] bjmllr: has joined #ruby
[18:49:05] greister: has joined #ruby
[18:49:06] mclee: has joined #ruby
[18:49:06] tessi_zz: has joined #ruby
[18:49:07] Dfoolz: has joined #ruby
[18:49:07] shtirlic: has joined #ruby
[18:49:11] mattp_: has joined #ruby
[18:49:15] mjuhl: has joined #ruby
[18:49:16] peteretep: has joined #ruby
[18:49:23] BackEndCoder: has joined #ruby
[18:49:24] \13k: has joined #ruby
[18:49:26] zeroDivisible: has joined #ruby
[18:49:27] HashNuke: has joined #ruby
[18:49:30] jimeh_: has joined #ruby
[18:49:30] gmcintire_: has joined #ruby
[18:49:34] Lloyd: has joined #ruby
[18:49:38] nrk: has joined #ruby
[18:49:39] callahanrts: has joined #ruby
[18:49:40] discopatrick: has joined #ruby
[18:49:41] wsmoak: has joined #ruby
[18:49:48] t-richards: has joined #ruby
[18:49:51] DK2: has joined #ruby
[18:49:51] stephenh: has joined #ruby
[18:49:53] ewilliam___: has joined #ruby
[18:49:54] rann: has joined #ruby
[18:49:57] boxrick1: has joined #ruby
[18:49:57] gbailey: has joined #ruby
[18:49:57] johnkpaul: has joined #ruby
[18:49:58] mitsuhiko: has joined #ruby
[18:49:59] Aeyris: has joined #ruby
[18:50:09] lipoqil: has joined #ruby
[18:50:15] auv: has joined #ruby
[18:50:17] Apocalypse: has joined #ruby
[18:50:22] kireevco: has joined #ruby
[18:50:26] machty: has joined #ruby
[18:50:39] DukeDave: has joined #ruby
[18:50:41] err_ok: has joined #ruby
[18:50:47] mroth: has joined #ruby
[18:50:55] Majost: has joined #ruby
[18:51:41] thekingofbandit: has joined #ruby
[18:52:56] Bock: has joined #ruby
[18:53:38] Paradox: has joined #ruby
[18:53:48] bokayio: has joined #ruby
[18:54:07] unsymbol: has joined #ruby
[18:54:16] dcluna: has joined #ruby
[18:55:27] duracrisis: has joined #ruby
[19:01:32] ryzokuken_: has joined #ruby
[19:02:12] dviola: has joined #ruby
[19:05:23] TheBrayn: has joined #ruby
[19:05:35] ketan: has joined #ruby
[19:06:43] johnzorn: has joined #ruby
[19:07:50] nankyokusei: has joined #ruby
[19:08:30] dionysus69: has joined #ruby
[19:10:16] cdg: has joined #ruby
[19:11:40] bauruine: has joined #ruby
[19:13:20] chihhsin: has joined #ruby
[19:18:40] dionysus69: has joined #ruby
[19:19:55] ryzokuken_: has joined #ruby
[19:22:26] mtkd: has joined #ruby
[19:30:55] muelleme_: has joined #ruby
[19:32:31] chihhsin: has joined #ruby
[19:33:38] gnufied: has joined #ruby
[19:34:09] yegortimoshenko: has joined #ruby
[19:34:17] yegortimoshenko: looking for a ruby gig
[19:36:41] Sammichmaker: has joined #ruby
[19:36:41] Sammichmaker: has joined #ruby
[19:37:03] KeyJoo: has joined #ruby
[19:37:51] d^sh: has joined #ruby
[19:39:03] havenwood: yegortimoshenko: remote or in a certain place?
[19:39:56] Bounga: has joined #ruby
[19:40:24] yegortimoshenko: havenwood: remote
[19:40:36] havenwood: yegortimoshenko: Here's on remote job board: https://weworkremotely.com/
[19:40:52] belmoussaoui: has joined #ruby
[19:41:35] yegortimoshenko: havenwood: i'd prefer something on short-term side, like a single project
[19:43:25] havenwood: yegortimoshenko: What's your experience level? Do you prefer Rails or other Rack apps or non-web Ruby or either?
[19:44:09] yegortimoshenko: havenwood: actually I prefer pure Rack apps. i've made a few commits to Sinatra in the past
[19:44:39] havenwood: yegortimoshenko: You might want to check back here during the work day EST. There's a lot more activity then.
[19:44:56] havenwood: yegortimoshenko: There's also #sinatra, #roda, #rubyonrails, etc.
[19:45:07] yegortimoshenko: havenwood: thanks.
[19:45:30] havenwood: yegortimoshenko: Do you mind PMs from folk who might be interested?
[19:46:05] havenwood: (private messages)
[19:47:07] yegortimoshenko: sure. i don't mind, but i don't idle forever. here's my github (https://github.com/yegortimoshenko), it has my email
[19:47:25] havenwood: yegortimoshenko: perfect
[19:47:59] andrzejku: has joined #ruby
[19:56:28] sepp2k: has joined #ruby
[19:59:48] hightower2: has joined #ruby
[20:01:43] lowtide: has joined #ruby
[20:05:55] eoconnell: has joined #ruby
[20:08:04] vuoto: has joined #ruby
[20:10:15] t-recx: has joined #ruby
[20:11:07] Kug3lis: has joined #ruby
[20:12:58] GodFather: has joined #ruby
[20:13:06] vuoto: has joined #ruby
[20:16:24] Esf: has joined #ruby
[20:18:14] Esf: has joined #ruby
[20:18:49] minimalism: has joined #ruby
[20:26:23] hutch34: has joined #ruby
[20:28:24] vuoto: has joined #ruby
[20:30:25] belmoussaoui: has joined #ruby
[20:32:01] muelleme_: has joined #ruby
[20:33:55] ski7777: has joined #ruby
[20:38:44] bmurt: has joined #ruby
[20:39:36] ozcanesen: has joined #ruby
[20:40:32] Bounga: has joined #ruby
[20:42:01] chihhsin: has joined #ruby
[20:42:46] hutch34: has joined #ruby
[20:46:40] selu: has joined #ruby
[20:50:51] dionysus70: has joined #ruby
[20:56:06] vuoto: has joined #ruby
[21:02:47] jaruga_________: has joined #ruby
[21:06:28] ketan: has joined #ruby
[21:06:38] postmodern: has joined #ruby
[21:09:03] nankyokusei: has joined #ruby
[21:09:07] `tim`: has joined #ruby
[21:14:19] jackrandom: has joined #ruby
[21:18:52] blackwind_123: has joined #ruby
[21:20:28] dcluna: has joined #ruby
[21:21:36] herbmillerjr: has joined #ruby
[21:21:37] bmurt: has joined #ruby
[21:24:38] bsamorim: has joined #ruby
[21:25:00] bsamorim: Hello, ruby community! Is anyone here a racc ninja?
[21:26:28] eightlimbed: has joined #ruby
[21:30:28] lowtide: has joined #ruby
[21:30:53] bsamorim: is this a dead channel, like ruby itself?
[21:33:02] lowtide: has left #ruby: ()
[21:41:26] Bounga: has joined #ruby
[21:41:30] havenwood: bsamorim: Please don't troll!
[21:41:33] blackwind_123: has joined #ruby
[21:41:45] bsamorim: havenwood: sorry...programming binge!
[21:41:57] bsamorim: won't happen again (:
[21:42:13] havenwood: bsamorim: Whacha doing with racc?
[21:43:06] havenwood: >> 'racc'.succ.succ.succ.succ.succ.succ.succ.succ
[21:43:07] ruby[bot]: havenwood: # => "rack" (https://eval.in/818266)
[21:43:24] raul782: has joined #ruby
[21:43:58] bsamorim: havenwood: basically, what I have so far is a parser that yields '4' for the expression '2+2'...and my goal is to build an AST for ruby code...so, as you can see, I'm really helpless
[21:45:07] bsamorim: I suppose my first question in this overflowed stack of mine, would be: how do I employ recursive rules?
[21:45:27] havenwood: >> require 'ripper'; Ripper.sexp '2+2'
[21:45:28] ruby[bot]: havenwood: # => [:program, [[:binary, [:@int, "2", [1, 0]], :+, [:@int, "2", [1, 2]]]]] (https://eval.in/818270)
[21:45:29] gothicsouth: has joined #ruby
[21:46:26] havenwood: bsamorim: Mmm, good question.
[21:47:38] bsamorim: havenwood: Yeah, I imagine there's an AST builder implemented for ruby, but my goal is actually greater...I am working on a project that extracts information from code in arbitrary languages
[21:47:53] havenwood: >> RubyVM::InstructionSequence.compile('2+2').to_a.last
[21:47:54] ruby[bot]: havenwood: # => [1, [:trace, 1], [:putobject, 2], [:putobject, 2], [:opt_plus, {:mid=>:+, :flag=>16, :orig_argc=>1}, ...check link for more (https://eval.in/818271)
[21:48:18] havenwood: bsamorim: Yeah, there are a variety of AST builder gems.
[21:48:39] Fysicus: has joined #ruby
[21:50:55] bsamorim: havenwood: I'm a complete noob to ruby and I was shocked to see how abandoned every project in the 'pure ruby' (ruby - rails) world is
[21:51:00] bsamorim: (no troll intended)
[21:51:18] bsamorim: Take racc itself
[21:51:41] bsamorim: The docs seem to be there just as a reminder of how lonesome existence can be
[21:52:01] havenwood: bsamorim: Non Rack gems are thriving. Some fall by the way.
[21:52:28] muelleme_: has joined #ruby
[21:52:33] havenwood: LALR parsers written in Ruby that generate Ruby programs aren't terribly popular.
[21:52:51] havenwood: Maybe they should be.
[21:53:01] havenwood: But it doesn't reflect the state of Ruby gems.
[21:53:54] bsamorim: havenwood: actually, I was impressed at how LALR parser generators are impopular in general..... I mean, for some dumb fella like me, it would be really great to just see one whose interface's input would just be a .bnf grammar
[21:54:47] bsamorim: I ain't no computer scientist! I'm just a simple country boy from texas
[21:55:06] yegortimoshenko: if you plan to parse multiple programming languages, you may want to look into combinator parsers like Parsec
[21:57:11] yegortimoshenko: probably going to be easier in the long run to parse all of them from one environment, than having each parser written in its own programming language. and ML/Haskell is great at this particular job
[21:57:14] bsamorim: yegortimoshenko: that's exactly what my genius brother recommended...but my Haskell/monads knowledge is non-existent
[21:57:51] bsamorim: do you think it can be learned without diving into category theory?
[21:57:52] yegortimoshenko: bsamorim: you don't need no monads for actual parsing, it's straightforward
[21:58:23] bsamorim: yegortimoshenko: OK, i'll take your word for it and try some! thanks for the tip!
[21:59:01] yegortimoshenko: bsamorim: i wrote a Slim (http://slim-lang.com) parser in Parsec without much prior Haskell knowledge and for me it was way easier than say writing a LALR grammar
[22:00:30] ruby[bot]: has joined #ruby
[22:00:31] ChanServ: +o ruby[bot]
[22:00:38] bsamorim: yegortimoshenko: I just don't understand how you would manipulate the input stream's "head" in a stateless language like haskell
[22:01:02] swills: has joined #ruby
[22:01:23] bsamorim: did you learn to use parsec with its manuals, or do you have some good tutorial you could recommend?
[22:01:29] yegortimoshenko: bsamorim: well, technically your function takes parser as an input and outputs a parser
[22:02:13] yegortimoshenko: bsamorim: i do, here's in my opinion a good tutorial: https://github.com/JakeWheat/intro_to_parsing/blob/master/VerySimpleExpressions.lhs
[22:02:32] bsamorim: yegortimoshenko: Thanks very much, i'll check it out!
[22:07:35] bauruine: has joined #ruby
[22:09:29] swills: has joined #ruby
[22:10:08] swills: has joined #ruby
[22:10:18] eightlimbed: has joined #ruby
[22:10:51] swills: has joined #ruby
[22:10:59] swills: has joined #ruby
[22:13:57] jjunior_: has joined #ruby
[22:16:19] PonyDevil: has joined #ruby
[22:24:12] _whitelogger: has joined #ruby
[22:25:27] mathys: has joined #ruby
[22:28:37] mathys_: has joined #ruby
[22:32:02] eoconnell: has joined #ruby
[22:42:17] Bounga: has joined #ruby
[22:45:01] Greencoat421: has joined #ruby
[22:47:10] t-recx: has joined #ruby
[22:55:41] elifoster: has joined #ruby
[22:57:51] jenrzzz: has joined #ruby
[22:57:51] jenrzzz: has joined #ruby
[22:59:41] mesamoo: has joined #ruby
[23:03:57] weaksauce: has joined #ruby
[23:06:34] SuperLag: has joined #ruby
[23:06:49] nerglish: has joined #ruby
[23:07:18] ketan: has joined #ruby
[23:09:23] cam27: has joined #ruby
[23:09:51] nankyokusei: has joined #ruby
[23:12:53] jaruga_________: has joined #ruby
[23:13:36] muelleme_: has joined #ruby
[23:16:42] cdg: has joined #ruby
[23:16:48] SaschaVoid: has joined #ruby
[23:39:12] xco: has joined #ruby
[23:43:04] Bounga: has joined #ruby
[23:44:55] PaulCapestany: has joined #ruby
[23:46:26] ornerymoose: has joined #ruby
[23:48:54] SuperL4g: has joined #ruby
[23:51:19] nofxxxx: has joined #ruby