« Back to channel list

#ruby - 28 May 2017

« Back 1 day Forward 1 day »
[00:08:44] railswebdev: has joined #ruby
[00:11:10] mdw: has joined #ruby
[00:15:48] nokepala1: has joined #ruby
[00:17:07] [2300mAh]: has joined #ruby
[00:18:08] BSaboia: has joined #ruby
[00:24:06] im0nde: has joined #ruby
[00:31:54] stormbytes: has joined #ruby
[00:37:40] im0nde_: has joined #ruby
[00:42:09] Jameser: has joined #ruby
[00:45:38] bkxd: has joined #ruby
[00:46:25] ineb: has joined #ruby
[00:47:35] jrafanie: has joined #ruby
[00:50:17] MarkBilk_: has joined #ruby
[00:53:52] HashNuke: has joined #ruby
[00:54:21] bkxd: has joined #ruby
[00:55:39] jwheare: has joined #ruby
[01:00:37] bvcosta: has joined #ruby
[01:01:52] gizmore|2: has joined #ruby
[01:05:24] bkxd: has joined #ruby
[01:10:36] chopin: has joined #ruby
[01:11:10] micahjam97: has joined #ruby
[01:11:44] pb122: has joined #ruby
[01:12:45] micahjam97: im new to ruby. tell me, is there a preferred format for variable names and such? Does the community generrally use camelCase or underscored_names
[01:15:21] daed: i think all my ruby is underscored, i think most of rails is underscored
[01:16:04] cerulean: has joined #ruby
[01:16:09] cerulean: #rubyonrails seems borked
[01:16:21] cerulean: can anyone recommend a rails 5 file upload plugin (not paperclip?)
[01:16:26] cerulean: i cant talk and im identified
[01:16:34] cerulean: checked +m list, didnt see me
[01:16:37] daed: i would have suggested paperclip
[01:16:48] cerulean: i guess ill try again
[01:17:16] daed: that's the one area of rails i don't use
[01:17:50] daed: despite working with like 15 rails apps, somehow i don't deal with uploads
[01:17:55] daed: very weird
[01:18:09] daed: it's mostly downloads
[01:18:11] cerulean: i want something more than just the upload, actual javascript progress bars
[01:18:13] daed: if anything at all
[01:18:20] cerulean: i dont think paperclip is even needed
[01:18:27] cerulean: i dont need s3
[01:18:34] enterprisey: has joined #ruby
[01:18:42] jusa: has joined #ruby
[01:18:45] daed: ah yeah, upload location gets grey
[01:18:52] daed: where does it go, who can see it, etc
[01:20:44] jgt: has joined #ruby
[01:21:22] rc48: has joined #ruby
[01:22:31] enterprisey: has joined #ruby
[01:23:20] Trynemjoel: has joined #ruby
[01:26:49] ResidentBiscuit: has joined #ruby
[01:41:06] gothicsouth: has joined #ruby
[01:42:02] eightlimbed: has joined #ruby
[01:42:42] arescorpio: has joined #ruby
[01:44:08] d^sh_: has joined #ruby
[01:46:41] brent__: has joined #ruby
[01:49:14] charliesome: has joined #ruby
[01:55:23] Trynemjoel: has joined #ruby
[01:57:57] uZiel: has joined #ruby
[01:59:56] gizmore: has joined #ruby
[02:02:40] TomyLobo2: has joined #ruby
[02:16:20] duderonomy: has joined #ruby
[02:17:29] MarkBilk__: has joined #ruby
[02:17:57] Jameser: has joined #ruby
[02:19:17] gothicsouth: has joined #ruby
[02:19:49] jrafanie: has joined #ruby
[02:27:59] theunraveler: has joined #ruby
[02:29:07] aglorei: has joined #ruby
[02:34:23] stormbytes: has joined #ruby
[02:36:18] cjhowe: has joined #ruby
[02:40:41] cdg: has joined #ruby
[02:40:47] xerx: has joined #ruby
[02:42:05] Jameser: has joined #ruby
[02:42:34] roamingdog: has joined #ruby
[02:46:10] chopin: has joined #ruby
[02:46:24] roamingdog: has joined #ruby
[02:58:01] apparition: has joined #ruby
[02:59:38] rc48: has joined #ruby
[03:05:57] Jameser: has joined #ruby
[03:07:55] planigan: has joined #ruby
[03:12:31] ekinmur: has joined #ruby
[03:14:46] chopin: has joined #ruby
[03:14:52] jrafanie: has joined #ruby
[03:15:03] zacts: has joined #ruby
[03:21:31] jgt: has joined #ruby
[03:24:15] dngome: has joined #ruby
[03:25:22] nertzy: has joined #ruby
[03:36:22] dngome: has left #ruby: ()
[03:38:28] gix: has joined #ruby
[03:39:44] cdg_: has joined #ruby
[03:48:55] claw: has joined #ruby
[03:52:53] shinnya: has joined #ruby
[04:00:58] mim1k: has joined #ruby
[04:02:16] micahjam97: has joined #ruby
[04:02:53] micahjam97: so consider this example: x = 10; def basic_method puts x end
[04:03:40] micahjam97: when i call basic_method, it wont see x.
[04:04:22] micahjam97: so how do I get variables from higher scopes. do I have to use $x for global variables or what
[04:05:05] micahjam97: Im kind of used to javascript, where it would keep looking to the next tier of scopes until it finds the variable
[04:06:07] elomatreb: It's a local variable, it's intended that you don't see it. Are you sure you can't make it a constant? (https://eval.in/806437)
[04:08:34] micahjam97: Its not for any application in particular. I was just expirementing. Like I said, in JS if you call a variable, it would keep searching the higher scopes until it finds the variable. I would try avoid that where possible and only now am I realizing thats pretty bad design choices
[04:09:55] elomatreb: You *could* emulate the behavior by abusing the lexical scoping of blocks, but I would very much advise against that -- https://eval.in/806442
[04:12:29] micahjam97: Yeah I mean no point jumping through hoops to emulate weird behaviour
[04:14:28] uZiel: has joined #ruby
[04:14:35] ResidentBiscuit: has joined #ruby
[04:16:23] tristanp: has joined #ruby
[04:17:31] chopin: has joined #ruby
[04:27:10] gothicsouth: has joined #ruby
[04:27:11] _whitelogger: has joined #ruby
[04:32:20] patr0clus: has joined #ruby
[04:37:43] Xakotu: has joined #ruby
[04:39:22] Xakotu: has joined #ruby
[04:41:27] patr0clus: has joined #ruby
[04:45:21] patr0clus: has joined #ruby
[04:46:09] zacts: has joined #ruby
[04:46:13] danielpclark: has joined #ruby
[04:47:52] eightlimbed: has joined #ruby
[04:47:52] bambanx: has joined #ruby
[04:50:16] nokepala: has joined #ruby
[04:55:03] patr0clus: has joined #ruby
[05:01:13] rc48: has joined #ruby
[05:02:33] bkxd: has joined #ruby
[05:05:33] linoge: has joined #ruby
[05:12:02] linoge: So, I've got this class with 10 attributes and I'm really not happy with how the constructor looks.
[05:12:37] linoge: Is it because I'm tired or my sixth sense is trying to tell me that I'm doing something wrong here?
[05:13:33] CacoS: has joined #ruby
[05:15:08] bambanx: has joined #ruby
[05:22:13] jgt: has joined #ruby
[05:32:30] TomyLobo: has joined #ruby
[05:36:11] _whitelogger: has joined #ruby
[05:40:13] r_rios_: has joined #ruby
[05:41:12] elomatreb: linoge: If you're passing 10 things to a constructor your sixth sense is probably correct
[05:42:02] edwardly: has joined #ruby
[05:42:02] edwardly: has joined #ruby
[05:44:45] bkxd: has joined #ruby
[05:49:49] Hanmac1: linoge: depending on your ruby version you can use **opt to pass the attributes as keyword arguments
[05:50:41] elomatreb: If you glob them up like that you need manual handling code for required fields though
[05:51:34] elomatreb: If all 10 fields are required, have you thought about creating value objects (e.g. Structs) to hold them in a structured manner?
[05:52:59] linoge: here ye go http://lpaste.net/355895
[05:53:42] djbkd: has joined #ruby
[05:54:09] linoge: Value objects as in https://martinfowler.com/bliki/ValueObject.html?
[05:55:31] elomatreb: Something like that, Ruby offers Structs (https://ruby-doc.org/core-2.4.1/Struct.html) to create those easily
[05:55:57] elomatreb: I think I'd have one for time_* and one for price_*
[05:56:56] Hanmac1: hey, does OHLCVDataPoint get another functions? if not, why not have OHLCVDataPoint be a Struct itself?
[05:58:51] elomatreb: Well, I just realized that Structs don't enforce their arguments either
[05:59:00] linoge: and what would be the benefit of having it as an struct rather than a class?
[05:59:20] elomatreb: Struct is just a library that dynamically creates classes, less to type
[06:01:26] mim1k: has joined #ruby
[06:05:05] __Yiota: has joined #ruby
[06:06:48] robnester: has joined #ruby
[06:06:51] robneste-: has joined #ruby
[06:17:08] roamingdog: has joined #ruby
[06:21:28] roamingdog: has joined #ruby
[06:22:14] roamingdog: has joined #ruby
[06:23:03] roamingdog: has joined #ruby
[06:23:54] roamingdog: has joined #ruby
[06:23:56] tristanp: has joined #ruby
[06:24:39] roamingdog: has joined #ruby
[06:25:29] roamingdog: has joined #ruby
[06:26:16] mdw: has joined #ruby
[06:31:46] djbkd: has joined #ruby
[06:33:34] roamingdog: has joined #ruby
[06:34:23] roamingdog: has joined #ruby
[06:37:48] DoubleMalt: has joined #ruby
[06:39:16] uZiel: has joined #ruby
[06:47:26] rgr: has joined #ruby
[06:47:52] govg: has joined #ruby
[06:51:17] brent__: has joined #ruby
[06:52:18] zenspider: structs ... horrible classes. bite me all the time.
[06:55:21] linoge: has joined #ruby
[06:58:14] dionysus69: has joined #ruby
[07:07:48] Alina-malina: has joined #ruby
[07:10:36] jgnagy: has joined #ruby
[07:10:59] Alina-malina: has joined #ruby
[07:15:25] cjhowe: has joined #ruby
[07:16:10] cjhowe: has joined #ruby
[07:17:05] cjhowe: has joined #ruby
[07:17:49] cjhowe: has joined #ruby
[07:18:40] cjhowe: has joined #ruby
[07:20:06] cfec0b8d: has joined #ruby
[07:22:05] nokepala: has joined #ruby
[07:22:55] jgt: has joined #ruby
[07:23:11] KeyJoo: has joined #ruby
[07:27:07] oleo: has joined #ruby
[07:27:23] mdw: has joined #ruby
[07:29:47] antgel: has joined #ruby
[07:32:32] blackmes1: has joined #ruby
[07:32:52] muelleme: has joined #ruby
[07:34:10] nofxxxx: has joined #ruby
[07:37:41] Jameser: has joined #ruby
[07:47:17] arvind: has joined #ruby
[07:51:21] blackmes1: has joined #ruby
[07:52:04] jamesaxl: has joined #ruby
[07:53:07] Jameser: has joined #ruby
[07:53:43] zenspider: zero for two... good job
[07:58:57] muelleme: has joined #ruby
[08:01:21] _main_: has joined #ruby
[08:01:58] mim1k: has joined #ruby
[08:02:27] _main_: has joined #ruby
[08:03:51] rc48: has joined #ruby
[08:05:19] romain_t: has joined #ruby
[08:09:37] blackmes1: has joined #ruby
[08:18:29] mikecmpbll: has joined #ruby
[08:28:10] mdw: has joined #ruby
[08:30:11] bkxd: has joined #ruby
[08:37:17] yxhuvud: I've seen Struct used where it sorta made sense. OpenStruct, not so much.
[08:37:54] elomatreb: OpenStruct should be renamed IActuallyWantToWriteJavascriptInsteadStruct
[08:38:44] apeiros: does openstruct still "leak" memory?
[08:40:57] apeiros: it gobbled up more and more memory over time with use
[08:41:03] apeiros: I don't remember the specifics, though
[08:41:17] apeiros: I do remember that it was surprisingly much
[08:41:27] apeiros: let me see whether I can find the blogpost with details
[08:41:42] zenspider: I believe it still does. creates an anonymous class per or something?
[08:42:12] apeiros: I think it was related to define_method
[08:42:47] apeiros: at least it'd make sense, because my "work around" was creating a slower variant of openstruct using method_missing instead.
[08:44:53] konsolebox: has joined #ruby
[08:44:53] rgr: has joined #ruby
[08:46:27] yxhuvud: hmm, are anonymous classes not collected when not referred to anymore?
[08:46:52] konsolebox: has joined #ruby
[08:47:24] apeiros: that's more an issue with struct than openstruct, no? ostruct does not create a class iirc
[08:48:57] foxxx0: has joined #ruby
[08:49:36] ur5us: has joined #ruby
[08:49:49] apeiros: meh, can't find the "original" blog post. it was in ruby 1.8 times, though. it might well be fixed by now.
[08:50:05] apeiros: time for breakfast :)
[08:52:14] ski7777: has joined #ruby
[08:53:26] stormbytes: has joined #ruby
[08:53:43] biberu: has joined #ruby
[09:12:13] _whitelogger: has joined #ruby
[09:16:34] nankyokusei: has joined #ruby
[09:17:37] SeepingN_: has joined #ruby
[09:17:43] bkxd: has joined #ruby
[09:22:13] ahrs: has joined #ruby
[09:23:40] jgt: has joined #ruby
[09:29:38] vuoto: has joined #ruby
[09:38:27] SeepingN: has joined #ruby
[09:38:33] yxhuvud: has joined #ruby
[09:42:35] railswebdev: has joined #ruby
[09:49:28] govg: has joined #ruby
[09:49:41] yottanami: has joined #ruby
[09:51:20] yottanami: Hey all I am trying to run Ruby using rbenv, I installed Ruby 2.4.0 and made it global so in result of `rbenv versions` I get `* 2.4.0 (set by /home/yottanami/.rbenv/version)` but the Ruby command is not available yet
[09:51:57] yottanami: which -a ruby: ruby not found
[09:54:36] octoKunt: has joined #ruby
[09:55:11] yottanami: When I restart the shell using `exec -l $SHELL` Ruby will become available how should I fix it?
[09:55:37] bsartek: has joined #ruby
[09:56:31] lxsameer: has joined #ruby
[10:02:20] mim1k: has joined #ruby
[10:04:41] yottanami: has joined #ruby
[10:05:21] rc48: has joined #ruby
[10:08:39] apparition: has joined #ruby
[10:10:18] konsolebox: has joined #ruby
[10:11:08] zenspider: yottanami: you have `eval "$(rbenv init -)"` somewhere in your shell init?
[10:14:47] octoKunt: has left #ruby: ()
[10:15:15] octomancer: has joined #ruby
[10:21:08] govg: has joined #ruby
[10:22:19] Jameser: has joined #ruby
[10:24:09] yottanami: has joined #ruby
[10:37:18] lxsameer: has joined #ruby
[10:38:12] marr: has joined #ruby
[10:44:58] TomyLobo2: has joined #ruby
[10:47:35] teclator: has joined #ruby
[10:56:43] sonOfRa: has joined #ruby
[10:57:12] _sfiguser: has joined #ruby
[11:01:30] mim1k: has joined #ruby
[11:04:26] graingert: has joined #ruby
[11:04:55] KnownSyntax: has joined #ruby
[11:06:45] manveru: apeiros: looks like it's fixed... though ostruct is still slow as hell compared to struct
[11:10:53] oleo: has joined #ruby
[11:10:59] oleo: has joined #ruby
[11:21:38] _sfiguser: has joined #ruby
[11:22:21] mdw: has joined #ruby
[11:22:53] brent__: has joined #ruby
[11:24:28] jgt: has joined #ruby
[11:31:06] rc48: has joined #ruby
[11:33:05] roamingdog: has joined #ruby
[11:33:28] puppet645: has joined #ruby
[11:33:33] devgiant: has joined #ruby
[11:35:25] apeiros: manveru: great to hear
[11:35:37] bougyman: sup manveru
[11:36:07] apeiros: re ostruct vs. struct - that is quite expected, though. struct can be optimized a lot. there's a reason I use it as the basis for my database interface :)
[11:36:07] manveru: just playing around with building a little OS
[11:36:17] apeiros: what language?
[11:36:23] apeiros: and what target hardware?
[11:36:37] manveru: just qemu, and language is more or less bash...
[11:36:37] yottanami: has joined #ruby
[11:36:42] manveru: i build it with nix
[11:37:26] nankyokusei: has joined #ruby
[11:37:51] manveru: it's more or less linux from scratch, but with runit and without having to build all packages from scratch
[11:38:18] ur5us: has joined #ruby
[11:38:27] manveru: so instead of OS i should say distro :)
[11:39:01] bsartek: has joined #ruby
[11:40:25] manveru: anyway, still challenging trying to build the image without using root... so no loopback devices
[11:41:07] govg: has joined #ruby
[11:43:50] my123: has joined #ruby
[11:43:50] my123: has joined #ruby
[11:54:43] workmad3: has joined #ruby
[11:57:02] oleo: has joined #ruby
[11:57:32] nhhc: has joined #ruby
[11:58:28] mikecmpbll: has joined #ruby
[12:01:01] yottanami: has joined #ruby
[12:04:02] yottanami: has joined #ruby
[12:10:11] nankyokusei: has joined #ruby
[12:14:07] oleo: has joined #ruby
[12:14:31] cgfbee: has joined #ruby
[12:16:39] dn`: I got a string like input = “7085c20f3288” and want to convert it to “70:85:c2:0f:32:88” anyone got a hint?
[12:18:04] Papierkorb: >> "7085c20f3288".chars.each_slice(2).join(":")
[12:18:06] ruby[bot]: Papierkorb: # => undefined method `join' for #<Enumerator:0x415e5a74> (NoMethodError) ...check link for more (https://eval.in/806502)
[12:18:12] Papierkorb: >> "7085c20f3288".chars.each_slice(2).to_a.join(":")
[12:18:13] ruby[bot]: Papierkorb: # => "7:0:8:5:c:2:0:f:3:2:8:8" (https://eval.in/806503)
[12:18:23] Papierkorb: >> "7085c20f3288".chars.each_slice(2).map(&:join).to_a.join(":")
[12:18:24] ruby[bot]: Papierkorb: # => "70:85:c2:0f:32:88" (https://eval.in/806504)
[12:18:35] dn`: thank you
[12:22:03] mikecmpbll: has joined #ruby
[12:26:45] manveru: >> '7085c20f3288'.scan(/../).join(':')
[12:26:46] ruby[bot]: manveru: # => "70:85:c2:0f:32:88" (https://eval.in/806505)
[12:28:31] bougyman: manveru: not happy with void anymore?
[12:29:16] manveru: bougyman: i switched to nixos over a year ago
[12:29:25] bougyman: I remember you telling me that.
[12:29:53] manveru: what i'm trying to make is basically nixos with runit instead of systemd
[12:30:03] manveru: so i use void linux init scripts as base too
[12:32:07] rc48: has joined #ruby
[12:34:38] bsartek: has joined #ruby
[12:35:06] charliesome: has joined #ruby
[12:35:28] apeiros: >> '7085c20f3288'.gsub(/../, '\0:')
[12:35:29] ruby[bot]: apeiros: # => "70:85:c2:0f:32:88:" (https://eval.in/806507)
[12:35:38] apeiros: >> '7085c20f3288'.gsub(/..(?.)/, '\0:')
[12:35:39] ruby[bot]: apeiros: # => /tmp/execpad-3376ae7d98c0/source-3376ae7d98c0:2: undefined group option: /..(?.)/ (https://eval.in/806508)
[12:35:44] apeiros: whoops, typo :)
[12:35:47] apeiros: >> '7085c20f3288'.gsub(/..(?:.)/, '\0:')
[12:35:48] ruby[bot]: apeiros: # => "708:5c2:0f3:288:" (https://eval.in/806509)
[12:35:59] apeiros: >> '7085c20f3288'.gsub(/..(?=.)/, '\0:')
[12:36:01] ruby[bot]: apeiros: # => "70:85:c2:0f:32:88" (https://eval.in/806510)
[12:36:05] apeiros: finally :-S
[12:37:57] Papierkorb: >> '7085c20f3288'.gsub(/../, '\0:')[0...-1] # lul
[12:37:59] ruby[bot]: Papierkorb: # => "70:85:c2:0f:32:88" (https://eval.in/806511)
[12:38:29] apeiros: >> '7085c20f3288'.gsub(/../, '\0:').chop
[12:38:30] ruby[bot]: apeiros: # => "70:85:c2:0f:32:88" (https://eval.in/806512)
[12:38:50] apeiros: it's a job for chop!
[12:39:21] ytti: >> '7085c20f3288'.scan(/../).join(':')
[12:39:29] ytti: dunno what we're doing
[12:42:11] ytti: oh my solution was already provided
[12:46:28] bkxd: has joined #ruby
[12:50:45] govg: has joined #ruby
[12:56:48] devgiant: has left #ruby: ("Leaving")
[13:11:22] GodFather: has joined #ruby
[13:20:46] mikecmpbll: has joined #ruby
[13:21:00] BSaboia: has joined #ruby
[13:25:10] jgt: has joined #ruby
[13:33:29] cfec0b8d: has joined #ruby
[13:33:40] im0nde: has joined #ruby
[13:39:18] chouhoulis: has joined #ruby
[13:40:12] chouhoul_: has joined #ruby
[13:44:48] jackrandom: has joined #ruby
[13:45:08] mikecmpbll: has joined #ruby
[13:46:57] bernd27: has joined #ruby
[13:51:10] __Yiota: has joined #ruby
[13:56:41] ruby[bot]: -b *!*@gateway/web/irccloud.com/x-jisfsoqmscjhtncw
[13:59:26] rippa: has joined #ruby
[14:00:09] muelleme: has joined #ruby
[14:04:30] doublemalt_: has joined #ruby
[14:06:24] robnester: has joined #ruby
[14:13:21] Rutix: has joined #ruby
[14:13:21] Rutix: has joined #ruby
[14:15:27] bkxd: has joined #ruby
[14:16:12] oleo: has joined #ruby
[14:16:41] sepp2k: has joined #ruby
[14:17:18] haylon: has joined #ruby
[14:18:13] gil_: has joined #ruby
[14:18:13] gil_: has joined #ruby
[14:18:43] konsolebox: has joined #ruby
[14:18:49] millerti: has joined #ruby
[14:21:59] BSAlb: has joined #ruby
[14:22:16] robnester: has joined #ruby
[14:26:43] dlitvak: has joined #ruby
[14:26:53] gothicsouth: has joined #ruby
[14:27:35] nankyokusei: has joined #ruby
[14:29:13] JoshS: has joined #ruby
[14:29:16] my123: has joined #ruby
[14:29:16] my123: has joined #ruby
[14:32:06] blackmes1: has joined #ruby
[14:33:24] rc48: has joined #ruby
[14:34:57] oleo: has joined #ruby
[14:37:42] muelleme: has joined #ruby
[14:38:46] houhoulis: has joined #ruby
[14:39:43] chouhoulis: has joined #ruby
[14:40:52] chouhoul_: has joined #ruby
[14:54:25] MarkBilk: has joined #ruby
[14:59:10] redaudit: has joined #ruby
[15:00:12] jgnagy: has joined #ruby
[15:00:27] mikecmpbll: has joined #ruby
[15:01:23] __Yiota: has joined #ruby
[15:01:39] bkxd: has joined #ruby
[15:05:12] yottanami: has joined #ruby
[15:09:32] djbkd: has joined #ruby
[15:17:24] ResidentBiscuit: has joined #ruby
[15:19:26] gizmore: has joined #ruby
[15:24:36] Azure: has joined #ruby
[15:25:56] jgt: has joined #ruby
[15:29:13] robouk: has joined #ruby
[15:30:36] jusa: has joined #ruby
[15:34:30] rc48: has joined #ruby
[15:42:36] ResidentBiscuit: has joined #ruby
[15:45:34] BSaboia: has joined #ruby
[15:48:30] gothicsouth: has joined #ruby
[15:50:47] Cohedrin: has joined #ruby
[15:53:14] roamingdog: has joined #ruby
[15:53:33] [2300mAh]: has left #ruby: ("WeeChat 1.4")
[15:56:37] GodFather: has joined #ruby
[15:59:51] chopin: has joined #ruby
[16:02:46] blackwind_123: has joined #ruby
[16:03:30] yottanami: has joined #ruby
[16:03:42] bkxd: has joined #ruby
[16:04:01] Yonk: Hey everyone, hope you all are having a good weekend.
[16:04:17] govg: has joined #ruby
[16:04:20] Yonk: Has anyone here ever written a collect using recursion? I'm having a heck of time solving it with recursion.
[16:04:59] ResidentBiscuit: has joined #ruby
[16:08:36] Papierkorb: Yonk: what have you got?
[16:09:52] Papierkorb: Yonk: And have you already written a recursive version of #each ?
[16:13:43] DaleK5whr: has joined #ruby
[16:20:22] yottanami: has joined #ruby
[16:26:52] romank: has joined #ruby
[16:28:26] nankyokusei: has joined #ruby
[16:28:39] rgr_: has joined #ruby
[16:32:36] Rutix: has joined #ruby
[16:32:36] Rutix: has joined #ruby
[16:33:18] haylon: has joined #ruby
[16:35:14] rc48: has joined #ruby
[16:37:13] romank: has joined #ruby
[16:40:12] romank: has joined #ruby
[16:42:01] mdw: has joined #ruby
[16:42:29] pb122: has joined #ruby
[16:42:30] ResidentBiscuit: has joined #ruby
[16:44:55] DaleK5whr: has left #ruby: ("Leaving")
[16:45:35] tristanp: has joined #ruby
[16:50:39] DLSteve: has joined #ruby
[16:50:41] qba73: has joined #ruby
[16:50:46] nowhere_man: has joined #ruby
[16:51:29] kies: has joined #ruby
[17:00:40] BSAlb: has joined #ruby
[17:02:08] chalkmonster: has joined #ruby
[17:02:46] pb122: has joined #ruby
[17:04:20] qba73: has joined #ruby
[17:04:25] mdw: has joined #ruby
[17:07:51] bmurt: has joined #ruby
[17:09:06] wnd_: has joined #ruby
[17:10:07] chouhoulis: has joined #ruby
[17:10:10] houhoulis: has joined #ruby
[17:12:58] kobain: has joined #ruby
[17:13:20] kobain: has joined #ruby
[17:13:38] uZiel: has joined #ruby
[17:18:27] uZiel__: has joined #ruby
[17:18:39] eightlimbed: has joined #ruby
[17:19:40] jshjsh: has joined #ruby
[17:23:04] armyriad: has joined #ruby
[17:25:06] jgt: has joined #ruby
[17:25:25] bernd9000: has joined #ruby
[17:26:28] zacts: has joined #ruby
[17:27:49] yottanami: has joined #ruby
[17:28:12] chopin: has joined #ruby
[17:28:58] Antiarc: has joined #ruby
[17:29:11] bsartek: has joined #ruby
[17:29:58] muelleme: has joined #ruby
[17:30:08] Antiarc: has joined #ruby
[17:31:05] romank: has joined #ruby
[17:31:24] roamingdog: has joined #ruby
[17:32:41] brent__: has joined #ruby
[17:33:49] cjhowe: has joined #ruby
[17:34:46] Antiarc: has joined #ruby
[17:37:59] ResidentBiscuit: has joined #ruby
[17:40:40] blackmes1: has joined #ruby
[17:49:21] Antiarc: has joined #ruby
[17:50:24] romank: has joined #ruby
[17:50:49] Antiarc: has joined #ruby
[17:54:48] MrBusiness: has joined #ruby
[17:58:16] govg: has joined #ruby
[17:58:54] bmurt: has joined #ruby
[18:01:29] dionysus69: has joined #ruby
[18:03:07] romank: has joined #ruby
[18:04:21] qba73: has joined #ruby
[18:06:53] bmurt: has joined #ruby
[18:07:35] mdw: has joined #ruby
[18:11:50] gil_: has joined #ruby
[18:11:51] gil_: has joined #ruby
[18:24:07] romank: has joined #ruby
[18:25:53] jgt: has joined #ruby
[18:28:08] nadir: has joined #ruby
[18:29:00] nankyokusei: has joined #ruby
[18:32:06] bmurt: has joined #ruby
[18:32:18] roamingdog: has joined #ruby
[18:33:48] Mia: has joined #ruby
[18:33:49] Mia: has joined #ruby
[18:36:42] romank: has joined #ruby
[18:36:45] rc48: has joined #ruby
[18:38:16] djbkd: has joined #ruby
[18:44:34] ResidentBiscuit: has joined #ruby
[18:45:38] icy`: has joined #ruby
[18:45:38] icy`: has joined #ruby
[18:47:25] mdw: has joined #ruby
[18:47:33] romank: has joined #ruby
[18:47:36] marr: has joined #ruby
[18:49:23] chopin: has joined #ruby
[18:59:08] bkxd: has joined #ruby
[19:03:04] yottanami: has joined #ruby
[19:04:19] qba73: has joined #ruby
[19:04:25] manveru: Yonk: yeah, been a while though
[19:04:41] bkxd: has joined #ruby
[19:05:31] manveru: Yonk: i guess the question is what objects you want to work with :)
[19:06:11] chouhoulis: has joined #ruby
[19:08:11] manveru: >> def collect(enum, res = [], &block) e = yield(enum.next); collect(enum, [*res, e], &block); rescue StopIteration; res end; collect([1,2].to_enum){|e| e + 1 }
[19:08:12] ruby[bot]: manveru: # => [2, 3] (https://eval.in/806578)
[19:08:28] manveru: works with enums, and is easy enough to write in 2 minutes :)
[19:08:45] manveru: though it still relies on #each indirectly
[19:09:03] railswebdev: has joined #ruby
[19:09:16] manveru: but to implement #each, you need to specify which object you want to iterate over, since hashes and arrays and strings are used quite differently
[19:10:29] yxhuvud: I remember implementing dolist in like 5 different ways while going through the wizard book.
[19:11:38] manveru: >> def maheach(arr, i = 0, &block) i >= arr.length ? arr : (yield(arr[i]); maheach(arr, i+1, &block)) end; maheach([1,2,3,4]){|e| p e }
[19:11:39] ruby[bot]: manveru: # => 1 ...check link for more (https://eval.in/806579)
[19:11:41] manveru: silly each :)
[19:12:16] sepp2k: has joined #ruby
[19:12:28] manveru: yeah... common lisps for syntax is its own language man
[19:13:34] manveru: http://www.lispworks.com/documentation/HyperSpec/Body/m_loop.htm (sry, was called loop)
[19:15:57] ResidentBiscuit: has joined #ruby
[19:17:21] jgt: has joined #ruby
[19:18:01] yxhuvud: I think dolist also exist. commonlisp is yuge.
[19:18:59] manveru: no kidding
[19:19:07] bougyman: manveru: common lisps string format is its own language.
[19:19:34] bougyman: http://www.gigamonkeys.com/book/a-few-format-recipes.html that shit's crazy
[19:19:37] manveru: then you start scheme and do it all with car and cdr :P
[19:20:49] bougyman: (format nil "~r" 1234) ==> "one thousand two hundred thirty-four"
[19:20:52] bougyman: that shit's handy
[19:21:04] bougyman: (format nil "~@r" 1234) ==> "MCCXXXIV"
[19:21:07] bougyman: that? not so much
[19:21:08] gothicsouth: has joined #ruby
[19:21:13] manveru: until you need it in german ;)
[19:24:46] _sfiguser: has joined #ruby
[19:25:26] KeyJoo: has joined #ruby
[19:26:08] eightlimbed: has joined #ruby
[19:32:01] normie1: has joined #ruby
[19:33:00] ur5us: has joined #ruby
[19:38:33] SCHAPiE: has joined #ruby
[19:38:45] Qommand0r: has joined #ruby
[19:44:06] cerulean: has left #ruby: ()
[19:47:00] ResidentBiscuit: has joined #ruby
[19:47:37] araujo: has joined #ruby
[19:48:19] djbkd: has joined #ruby
[19:51:01] jgt: has joined #ruby
[20:11:33] blackmes1: has joined #ruby
[20:14:25] roamingdog: has joined #ruby
[20:17:24] romank: has joined #ruby
[20:18:06] ResidentBiscuit: has joined #ruby
[20:18:20] yeticry: has joined #ruby
[20:24:41] Dimik: has joined #ruby
[20:26:39] jgt: has joined #ruby
[20:27:07] marahin: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[20:34:56] bernd27: has joined #ruby
[20:36:49] cjhowe: has joined #ruby
[20:41:25] romank: has joined #ruby
[20:44:09] jakew_: has joined #ruby
[20:45:58] MarkBilk: has joined #ruby
[20:47:04] eightlimbed: has joined #ruby
[20:47:18] mim1k: has joined #ruby
[20:47:23] LukyCZ: has joined #ruby
[20:47:39] jenrzzz: has joined #ruby
[20:47:39] jenrzzz: has joined #ruby
[20:47:45] LukyCZ: Hi, is there a way to run ruby scripts on Android ?
[20:47:59] blackmes1: has joined #ruby
[20:48:55] apeiros: LukyCZ: yes, iirc its name is ruboto
[20:49:06] apeiros: yupp, ruboto
[20:49:16] LukyCZ: apeiros: That crashes on Nougat :-/
[20:51:52] djbkd: has joined #ruby
[20:51:58] LukyCZ: And their site is down
[20:54:09] ur5us: has joined #ruby
[20:54:36] LukyCZ: Ill have to use my kali chroot then
[20:55:41] romank: has joined #ruby
[20:56:12] Murda: has joined #ruby
[21:09:25] romank: has joined #ruby
[21:12:10] JoshS: has joined #ruby
[21:15:28] t-recx: has joined #ruby
[21:16:36] blackmesa: has joined #ruby
[21:20:34] bvcosta: has joined #ruby
[21:21:17] pb122-two: has joined #ruby
[21:21:17] armyriad: has joined #ruby
[21:23:35] armyriad: has joined #ruby
[21:27:30] romank: has joined #ruby
[21:28:24] jusa: has joined #ruby
[21:31:08] ResidentBiscuit: has joined #ruby
[21:31:37] SeepingN: has joined #ruby
[21:34:20] zacts: has joined #ruby
[21:39:53] chopin: has joined #ruby
[21:40:09] kies: has joined #ruby
[21:43:54] zacts: has joined #ruby
[21:44:30] mikecmpbll: has joined #ruby
[21:55:22] romank: has joined #ruby
[21:58:10] romank: has joined #ruby
[21:58:38] kobain: has joined #ruby
[22:00:24] maikowblue: has joined #ruby
[22:01:56] ResidentBiscuit: has joined #ruby
[22:02:36] kies: has joined #ruby
[22:02:55] DLSteve: has joined #ruby
[22:08:50] im0nde: has joined #ruby
[22:16:05] JoshS: has joined #ruby
[22:22:26] Ferdroid: has joined #ruby
[22:23:46] brent__: has joined #ruby
[22:26:06] bernd9000: has joined #ruby
[22:26:27] romank: has joined #ruby
[22:27:59] eightlimbed: has joined #ruby
[22:31:55] LastWhisper____: has joined #ruby
[22:33:02] ResidentBiscuit: has joined #ruby
[22:34:53] sneakerhax: has joined #ruby
[22:35:13] jane_booty_doe: has joined #ruby
[22:39:44] oleo: has joined #ruby
[22:39:52] rc48: has joined #ruby
[22:41:43] chopin: has joined #ruby
[22:43:26] brent__: has joined #ruby
[22:44:00] TomyLobo3: has joined #ruby
[22:45:20] houhoulis: has joined #ruby
[22:50:04] romank: has joined #ruby
[22:53:10] romank: has joined #ruby
[23:05:48] __Yiota: has joined #ruby
[23:08:19] _sfiguser: has joined #ruby
[23:08:44] romank: has joined #ruby
[23:10:21] enterprisey: has joined #ruby
[23:11:44] ttilley: has joined #ruby
[23:14:36] ResidentBiscuit: has joined #ruby
[23:15:19] apparition: has joined #ruby
[23:15:25] eb0t: has joined #ruby
[23:15:43] ttilley: has joined #ruby
[23:22:49] romank: has joined #ruby
[23:22:58] eksi: has joined #ruby
[23:24:47] patr0clus: has joined #ruby
[23:25:04] apparition: has joined #ruby
[23:26:07] rohitpaulk: has joined #ruby
[23:29:22] jusa: has joined #ruby
[23:31:06] brent__: has joined #ruby
[23:33:58] haylon: has joined #ruby
[23:35:30] apparition: has joined #ruby
[23:45:40] ResidentBiscuit: has joined #ruby
[23:48:30] romank: has joined #ruby
[23:51:59] Archrover: has joined #ruby
[23:52:15] alveric1: has joined #ruby
[23:58:25] alveric2: has joined #ruby