« Back to channel list

#ruby - 26 August 2017

« Back 1 day Forward 1 day »
[00:01:45] darix: al2o3-cr: if you dont hurry 2.5 will be out before you upgraded!
[00:01:55] mattyh88: has joined #ruby
[00:03:51] al2o3-cr: darix: i really need to upgrade, 1.8.6 is killing me
[00:04:11] SeepingN: just migrated off 1.8.6
[00:04:21] cagomez: has joined #ruby
[00:04:22] SeepingN: everything breaks. be ready for it
[00:04:48] mattyh88: What's the name of the thing when, in a method, you immediately return if a condition is not met, but if it is met, you progress through the method. Something like a "safety" conditional?
[00:04:51] SeepingN: some because it was broken in 1.8.6, others because the libraries matured and exception codes have changed
[00:05:39] SeepingN: rescue is the "safety" to keep it from crashing with an exception
[00:05:43] al2o3-cr: SeepingN: hey, did you know you could pass ivars to blocks?
[00:05:48] mattyh88: It's not a keyword, it's a concept.
[00:06:24] SeepingN: "proper programming"? ;)
[00:06:31] mattyh88: Haha, yes :)
[00:07:33] mattyh88: It's not really proper, it's sort of like the Safe navigation operator, except for methods :-\
[00:08:05] tolerablyjake: has joined #ruby
[00:09:03] TinkerTyper: has joined #ruby
[00:09:37] emilford: has joined #ruby
[00:09:55] matthewd: Matt____: Guard clause?
[00:09:58] mattyh88: Found it, it's a "guard clause."
[00:10:06] mattyh88: Yes! Thank you!
[00:12:43] _sfiguser: has joined #ruby
[00:15:23] SeepingN: ahh. well done ruby nerds! ;)
[00:16:35] eckhardt: has joined #ruby
[00:17:39] sspreitz: has joined #ruby
[00:19:16] TinkerTyper: has joined #ruby
[00:23:23] carnegie: has joined #ruby
[00:25:12] orbyt_: has joined #ruby
[00:27:10] sspreitz: has joined #ruby
[00:29:22] TinkerTyper: has joined #ruby
[00:31:59] TheDracle: has joined #ruby
[00:36:26] sspreitz: has joined #ruby
[00:36:34] milardovich: has joined #ruby
[00:36:47] guille-moe: has joined #ruby
[00:39:37] TinkerTyper: has joined #ruby
[00:41:36] sspreitz: has joined #ruby
[00:43:58] Guest40: has joined #ruby
[00:46:35] bkxd: has joined #ruby
[00:47:29] mtkd: has joined #ruby
[00:49:38] TinkerTyper: has joined #ruby
[00:52:02] nobitanobi: has joined #ruby
[00:52:54] carnegie: has joined #ruby
[00:54:40] sspreitz: has joined #ruby
[00:56:38] cagomez: has joined #ruby
[00:59:48] TinkerTyper: has joined #ruby
[00:59:55] KaitoDaumoto: has joined #ruby
[01:07:48] sspreitz: has joined #ruby
[01:08:20] gizmore: has joined #ruby
[01:08:56] cagomez: has joined #ruby
[01:11:20] x|h: has joined #ruby
[01:12:01] TinkerTyper: has joined #ruby
[01:12:31] d^sh: has joined #ruby
[01:24:46] sspreitz: has joined #ruby
[01:28:49] cdg: has joined #ruby
[01:30:21] TinkerTyper: has joined #ruby
[01:31:53] bronson: has joined #ruby
[01:31:55] beilabs: has joined #ruby
[01:34:12] sspreitz: has joined #ruby
[01:35:59] guardianx: has joined #ruby
[01:36:04] pugcs: has joined #ruby
[01:36:13] perniciouscaffei: has joined #ruby
[01:36:53] gothicsouth: has joined #ruby
[01:39:04] mim1k: has joined #ruby
[01:40:29] TinkerTyper: has joined #ruby
[01:42:35] belmoussaoui: has joined #ruby
[01:43:13] sspreitz: has joined #ruby
[01:47:39] tolerablyjake: has joined #ruby
[01:50:35] TinkerTyper: has joined #ruby
[01:51:54] cdg: has joined #ruby
[01:53:31] montyboy: has joined #ruby
[01:58:59] sspreitz: has joined #ruby
[01:59:28] subrat: has joined #ruby
[02:00:49] TinkerTyper: has joined #ruby
[02:01:47] harai: has joined #ruby
[02:03:21] milardovich: has joined #ruby
[02:04:15] sspreitz: has joined #ruby
[02:09:15] sspreitz: has joined #ruby
[02:10:59] TinkerTyper: has joined #ruby
[02:12:46] selim: has joined #ruby
[02:14:16] sspreitz: has joined #ruby
[02:18:03] chromis: has joined #ruby
[02:18:34] chromis: has joined #ruby
[02:18:37] kapil___: has joined #ruby
[02:19:04] m27frogy: has joined #ruby
[02:20:44] tolerablyjake: has joined #ruby
[02:20:59] TinkerTyper: has joined #ruby
[02:21:16] sspreitz: has joined #ruby
[02:26:17] sspreitz: has joined #ruby
[02:26:54] m27frogy: has joined #ruby
[02:27:30] xco: has joined #ruby
[02:27:53] xco: ok this one is hard. for me at least. any help? https://gist.github.com/xcobar/01f8bc9ddaf617b0b304c13d4c0ec2ed
[02:28:17] Stickwalker: has joined #ruby
[02:28:45] PorcoRex: has joined #ruby
[02:28:50] PorcoRex: Good evening.
[02:29:25] milardovich: has joined #ruby
[02:30:17] ramfjord: has joined #ruby
[02:31:17] TinkerTyper: has joined #ruby
[02:34:18] sspreitz: has joined #ruby
[02:41:19] sspreitz: has joined #ruby
[02:41:22] TinkerTyper: has joined #ruby
[02:42:42] kobain: has joined #ruby
[02:49:37] pugcs: has joined #ruby
[02:53:32] TinkerTyper: has joined #ruby
[02:54:52] sspreitz: has joined #ruby
[02:57:18] jonh: has left #ruby: ("WeeChat 0.4.2")
[02:59:21] aurelien: has joined #ruby
[02:59:34] cdg: has joined #ruby
[03:00:17] aurelien: has joined #ruby
[03:01:07] armyriad: has joined #ruby
[03:06:29] sspreitz: has joined #ruby
[03:07:23] apparition47: has joined #ruby
[03:11:19] m27frogy: has joined #ruby
[03:12:56] shiranuidong: has joined #ruby
[03:13:50] TinkerTyper: has joined #ruby
[03:17:19] jackjackdripper: has joined #ruby
[03:18:23] sspreitz: has joined #ruby
[03:20:43] belmoussaoui: has joined #ruby
[03:23:45] alfiemax: has joined #ruby
[03:29:26] sspreitz: has joined #ruby
[03:30:41] Tharbakim: has joined #ruby
[03:30:41] Tharbakim: has joined #ruby
[03:32:14] TinkerTyper: has joined #ruby
[03:33:36] armyriad: has joined #ruby
[03:34:46] bronson: has joined #ruby
[03:36:03] harai: has joined #ruby
[03:39:37] mim1k: has joined #ruby
[03:44:11] gix: has joined #ruby
[03:44:23] TinkerTyper: has joined #ruby
[03:46:30] sspreitz: has joined #ruby
[03:47:04] jackjackdripper: has joined #ruby
[03:49:09] nobitanobi: has joined #ruby
[03:49:51] belmoussaoui: has joined #ruby
[03:50:01] nobitanobi: has joined #ruby
[03:51:26] sspreitz: has joined #ruby
[03:52:03] nobitanobi: has joined #ruby
[03:56:14] milardovich: has joined #ruby
[03:58:28] sspreitz: has joined #ruby
[04:00:20] xco: has joined #ruby
[04:02:40] TinkerTyper: has joined #ruby
[04:02:47] milardovich: has joined #ruby
[04:03:28] sspreitz: has joined #ruby
[04:05:34] enterprisey: has joined #ruby
[04:08:40] cdg: has joined #ruby
[04:08:59] jinie: has joined #ruby
[04:09:12] alfiemax: has joined #ruby
[04:10:12] bkxd: has joined #ruby
[04:11:35] carnegie: has joined #ruby
[04:13:11] harfangk: has joined #ruby
[04:14:15] brent__: has joined #ruby
[04:14:32] sspreitz: has joined #ruby
[04:14:53] TinkerTyper: has joined #ruby
[04:20:30] sspreitz: has joined #ruby
[04:22:36] ledestin: has joined #ruby
[04:25:56] username1: has joined #ruby
[04:30:07] carnegie: has joined #ruby
[04:33:03] jackjackdripper1: has joined #ruby
[04:33:08] TinkerTyper: has joined #ruby
[04:36:02] gothicsouth: has joined #ruby
[04:37:52] chmurifree: has joined #ruby
[04:38:01] mim1k: has joined #ruby
[04:39:49] mong: has joined #ruby
[04:40:41] carnegie: has joined #ruby
[04:41:39] emilford: has joined #ruby
[04:42:06] carnegie: has joined #ruby
[04:43:47] sspreitz: has joined #ruby
[04:45:23] TinkerTyper: has joined #ruby
[04:46:38] carnegie: has joined #ruby
[04:48:00] carnegie: has joined #ruby
[04:49:03] sspreitz: has joined #ruby
[04:50:30] carnegie: has joined #ruby
[04:50:43] Tharbakim: has joined #ruby
[04:51:05] Tharbakim: has joined #ruby
[04:53:06] alex``: has joined #ruby
[04:54:33] sspreitz: has joined #ruby
[05:03:45] TinkerTyper: has joined #ruby
[05:05:28] cagomez: has joined #ruby
[05:06:09] nofxx: has joined #ruby
[05:08:04] sspreitz: has joined #ruby
[05:13:05] sspreitz: has joined #ruby
[05:13:05] uZiel: has joined #ruby
[05:13:43] TinkerTyper: has joined #ruby
[05:14:21] tvw: has joined #ruby
[05:15:07] Bock: has joined #ruby
[05:15:30] __Yiota: has joined #ruby
[05:18:05] sspreitz: has joined #ruby
[05:23:14] sspreitz: has joined #ruby
[05:23:59] TinkerTyper: has joined #ruby
[05:24:07] uZiel: has joined #ruby
[05:28:37] sspreitz: has joined #ruby
[05:29:34] kt: has joined #ruby
[05:36:06] bronson: has joined #ruby
[05:36:13] kies: has joined #ruby
[05:36:55] zephiro: has joined #ruby
[05:41:15] DrCode: has joined #ruby
[05:43:07] kt: has joined #ruby
[05:45:34] milardovich: has joined #ruby
[05:46:13] TinkerTyper: has joined #ruby
[05:52:07] beilabs: has joined #ruby
[05:54:05] kt: has joined #ruby
[05:59:41] gixxer1k: has joined #ruby
[06:02:38] kt: has joined #ruby
[06:04:36] TinkerTyper: has joined #ruby
[06:04:53] belmoussaoui: has joined #ruby
[06:09:12] _whitelogger: has joined #ruby
[06:14:38] TinkerTyper: has joined #ruby
[06:24:40] TinkerTyper: has joined #ruby
[06:26:13] subrat: has joined #ruby
[06:27:08] subrat: has joined #ruby
[06:27:58] subrat: has joined #ruby
[06:28:41] subrat: has joined #ruby
[06:29:11] weez17_: has joined #ruby
[06:29:31] subrat: has joined #ruby
[06:29:51] Stickwalker: has joined #ruby
[06:30:16] subrat: has joined #ruby
[06:31:03] subrat: has joined #ruby
[06:31:48] subrat: has joined #ruby
[06:32:38] subrat: has joined #ruby
[06:32:49] enterprisey: has joined #ruby
[06:33:29] subrat: has joined #ruby
[06:35:03] TinkerTyper: has joined #ruby
[06:36:24] mikecmpbll: has joined #ruby
[06:36:41] carnegie: has joined #ruby
[06:43:11] djbkd: has joined #ruby
[06:44:28] belmoussaoui: has joined #ruby
[06:44:36] djbkd: has joined #ruby
[06:45:09] TinkerTyper: has joined #ruby
[06:50:07] kapil___: has joined #ruby
[06:52:18] carnegie: has joined #ruby
[06:52:52] mson: has joined #ruby
[06:55:01] beilabs_: has joined #ruby
[06:55:30] TinkerTyper: has joined #ruby
[07:00:39] Bhootrk_: has joined #ruby
[07:03:26] FastJack: has joined #ruby
[07:05:34] TinkerTyper: has joined #ruby
[07:06:18] TomyLobo: has joined #ruby
[07:06:19] djbkd: has joined #ruby
[07:15:44] TinkerTyper: has joined #ruby
[07:22:23] username1: has joined #ruby
[07:25:51] TinkerTyper: has joined #ruby
[07:33:40] milardovich: has joined #ruby
[07:36:04] TinkerTyper: has joined #ruby
[07:39:01] bronson: has joined #ruby
[07:39:30] milardovich: has joined #ruby
[07:41:20] milardovich: has joined #ruby
[07:46:16] TinkerTyper: has joined #ruby
[07:48:19] enterprisey: has joined #ruby
[07:49:28] barajasfab: has joined #ruby
[07:50:23] carnegie: has joined #ruby
[07:52:54] barajasfab: has joined #ruby
[07:53:39] CmndrSp0ck: has joined #ruby
[07:56:18] TinkerTyper: has joined #ruby
[07:57:14] carnegie: has joined #ruby
[08:00:04] CmndrSp0ck: has joined #ruby
[08:00:58] alfiemax: has joined #ruby
[08:02:56] CmndrSp0ck: has joined #ruby
[08:05:12] lxsameer: has joined #ruby
[08:05:16] tomphp: has joined #ruby
[08:06:23] milardovich: has joined #ruby
[08:06:26] CmndrSp0ck: has joined #ruby
[08:06:28] TinkerTyper: has joined #ruby
[08:06:33] kreantos: has joined #ruby
[08:10:23] InfinityFye: has joined #ruby
[08:14:43] brent__: has joined #ruby
[08:16:37] TinkerTyper: has joined #ruby
[08:21:30] ltem: has joined #ruby
[08:24:23] cdg: has joined #ruby
[08:26:28] apparition47: has joined #ruby
[08:26:47] TinkerTyper: has joined #ruby
[08:33:58] vondruch: has joined #ruby
[08:36:56] TinkerTyper: has joined #ruby
[08:46:00] milardovich: has joined #ruby
[08:47:08] TinkerTyper: has joined #ruby
[08:47:24] vondruch: has joined #ruby
[08:49:50] gr33n7007h: has joined #ruby
[08:53:48] alfiemax: has joined #ruby
[08:54:57] Guest40: has joined #ruby
[08:57:18] TinkerTyper: has joined #ruby
[08:57:53] vondruch: has joined #ruby
[09:01:09] marr: has joined #ruby
[09:03:40] frozengeek: has joined #ruby
[09:04:42] alveric: has joined #ruby
[09:07:25] vondruch: has joined #ruby
[09:08:13] cabotto: has joined #ruby
[09:09:20] TinkerTyper: has joined #ruby
[09:12:54] vondruch: has joined #ruby
[09:15:35] BTRE: has joined #ruby
[09:17:27] vondruch: has joined #ruby
[09:22:17] WeiJunLi: has joined #ruby
[09:22:53] vondruch: has joined #ruby
[09:27:26] vondruch: has joined #ruby
[09:27:34] TinkerTyper: has joined #ruby
[09:29:18] tomphp: has joined #ruby
[09:32:18] alfiemax: has joined #ruby
[09:33:08] Guest40: has joined #ruby
[09:37:53] TinkerTyper: has joined #ruby
[09:38:23] alfiemax: has joined #ruby
[09:39:11] quattro_: has joined #ruby
[09:39:18] scrooloose: has joined #ruby
[09:39:50] bronson: has joined #ruby
[09:41:08] cagomez: has joined #ruby
[09:47:57] Trynemjoel: has joined #ruby
[09:48:50] cdg: has joined #ruby
[09:58:09] TinkerTyper: has joined #ruby
[10:07:00] xuanrui: has joined #ruby
[10:08:19] TinkerTyper: has joined #ruby
[10:08:59] ramfjord: has joined #ruby
[10:10:18] roshanavand: has joined #ruby
[10:17:18] WeiJunLi: has joined #ruby
[10:17:30] ShekharReddy: has joined #ruby
[10:18:21] TinkerTyper: has joined #ruby
[10:18:37] username1: has joined #ruby
[10:28:36] TinkerTyper: has joined #ruby
[10:37:59] davic: has joined #ruby
[10:38:47] belmoussaoui: has joined #ruby
[10:38:49] TinkerTyper: has joined #ruby
[10:48:54] TinkerTyper: has joined #ruby
[10:54:48] RedNifre: has joined #ruby
[10:55:24] RedNifre: Good morning! Another day, another couple of pickaxe chapters...
[10:56:24] RedNifre: What does "Bringing the gods of refactoring down around your ears" mean? (It's what happens when you test the class of an object with a case statement, allegedly)
[10:59:04] TinkerTyper: has joined #ruby
[10:59:36] apeiros: I have no clue
[11:02:34] RedNifre: Ah, I checked with ##programming and "coming down around your ears" means something like "Their wraith will be upon you" or "They'll complain at you angrily", so it means "Don't do that, it makes your code less flexible so you'll have to refactor it later".
[11:04:56] belmoussaoui: has joined #ruby
[11:05:25] dionysus69: has joined #ruby
[11:07:40] fredflinstone: case foo; when Bar; when Baz; end is okay imo
[11:07:55] apeiros: your lack of else is disturbing!
[11:08:00] apeiros: but yeah, other than that, fine indeed
[11:09:16] TinkerTyper: has joined #ruby
[11:13:05] RedNifre: Alright, I'll call Dave Thomas and tell him that he's wrong.
[11:13:26] RedNifre: ...but first I'll finish reading the book.
[11:13:35] apeiros: oh if only decisions were contextless binaries
[11:13:48] apeiros: we'd have a world full of silver bullets
[11:14:14] cagomez: has joined #ruby
[11:14:31] fredflinstone: yeah. i don't know the full context, but the pattern above is too useful to ignore i think.
[11:14:46] brent__: has joined #ruby
[11:14:51] crst: has joined #ruby
[11:17:46] ramfjord: has joined #ruby
[11:17:55] apeiros: RedNifre: but yes, if dave thomas' claim is that case/when with classes is *always* wrong, then sure, I'm on board on calling him wrong.
[11:18:11] RedNifre: Well, if you have the book, it's in chapter 9
[11:18:16] apeiros: there's only a pretty few things which are always wrong
[11:18:58] RedNifre: he said that it "brings the gods of refactoring down around your ears".
[11:19:26] TinkerTyper: has joined #ruby
[11:19:33] mikecmpbll: has joined #ruby
[11:20:59] fredflinstone: doesn't add up. ruby code is not written that way, and no one is deaf. counter-argument could be given from 'Exceptional Ruby'
[11:22:12] crst: Hi, how can I iterate though "things.each do |thing|" to get an array like: "array=[[thing.x1, thing.y1], [thing.x2, thing.x2] ... [thing.xn, thing.xn]]"? http://rubyfiddle.com
[11:22:36] fredflinstone: Exceptional Ruby pattern: https://github.com/pry/pry/blob/master/lib/pry/exceptions.rb#L7-L23
[11:22:44] crst: http://rubyfiddle.com/riddles/e618c
[11:23:27] apeiros: crst: it seems you already have that kind of array in things?
[11:24:06] crst: apeiros: that's just an abstraction, in reality it comes from a table with many columns
[11:24:42] apeiros: then make a better example? but maybe you want .map { |thing| [thing.x, thing.y] }
[11:24:43] fredflinstone: not sure i follow. my guess from your fiddle
[11:27:26] crst: I want to store values from a table into an array in the form of [[x1,y2]...] so that I can puts array and it's in this format
[11:27:45] apeiros: did you try map as I said?
[11:28:03] crst: apeiros: I'm at it, thanks
[11:28:17] mjolnird: has joined #ruby
[11:29:33] runescape07rsps: has joined #ruby
[11:29:38] TinkerTyper: has joined #ruby
[11:30:15] dionysus69: has joined #ruby
[11:30:43] ramfjord: has joined #ruby
[11:31:38] crst: apeiros: http://rubyfiddle.com/riddles/e618c/2
[11:32:11] apeiros: crst: really, you should come up with a better example
[11:32:21] apeiros: and no, that's not how it was supposed to be used.
[11:32:30] apeiros: and `puts` to inspect data is a bad idea. use `p`
[11:33:05] apeiros: your array of *things*, are the individual things really arrays? you said columns, so I'd assume you have named accessors?
[11:36:54] crst: I think I need a break for a couple of days or I'm going burn out completely. Thanks and bye guys
[11:41:40] bronson: has joined #ruby
[11:42:39] sniffer: has joined #ruby
[11:42:44] bronson: has joined #ruby
[11:44:06] zephiro: has joined #ruby
[11:45:09] cagomez: has joined #ruby
[11:45:37] al2o3-cr: has joined #ruby
[11:49:58] TinkerTyper: has joined #ruby
[11:56:51] RedNifre: The book talks a lot about special global variables like "This one contains something about the regex" and "raise reraises the exception that's in $!" etc. How does this work with multi threading? Are "global" variables thread-local or do I have to worry about other threads doing regex stuff in parallel?
[12:00:01] Papierkorb: They're actually thread-local
[12:00:01] TinkerTyper: has joined #ruby
[12:00:40] elomatreb: But probably should just use MatchData instead of the globals
[12:10:04] TinkerTyper: has joined #ruby
[12:12:53] apeiros: they're sometimes even frame-local (think method frames)
[12:13:02] apeiros: IMO still bad those things pretend to be globals
[12:13:30] apeiros: and yeah, as elomatreb says, use other means if possible
[12:15:16] WeiJunLi: has joined #ruby
[12:16:48] Xeago: has joined #ruby
[12:18:35] TinkerTyper: has joined #ruby
[12:19:17] bkxd: has joined #ruby
[12:19:40] mikecmpbll: has joined #ruby
[12:20:06] yxhuvud: has joined #ruby
[12:20:11] GodFather: has joined #ruby
[12:22:00] RedNifre: what do you mean by frame-local and method frames?
[12:27:17] uZiel: has joined #ruby
[12:30:30] TinkerTyper: has joined #ruby
[12:36:19] Lyubo1: has joined #ruby
[12:39:05] p0s1x: has joined #ruby
[12:39:32] belmoussaoui: has joined #ruby
[12:40:33] TinkerTyper: has joined #ruby
[12:41:11] sspreitz: has joined #ruby
[12:42:53] carnegie: has joined #ruby
[12:44:49] p0s1x: has joined #ruby
[12:45:12] belmoussaoui: has joined #ruby
[12:46:31] sspreitz: has joined #ruby
[12:47:39] p0s1x: has joined #ruby
[12:49:39] Cope: has joined #ruby
[12:50:48] TinkerTyper: has joined #ruby
[12:52:09] cabotto: has joined #ruby
[12:52:26] al2o3-cr: has joined #ruby
[12:53:44] apeiros: RedNifre: say you do `def foo(val); val =~ some_regex; bar; $1; end`
[12:56:04] belmoussaoui_: has joined #ruby
[12:56:08] apeiros: you can't say whether bar doesn't perform some regex matching
[12:56:23] apeiros: and without frame-locality, $1 could be overridden by your call to bar
[12:56:36] apeiros: (and that's been the case in earlier versions of ruby)
[12:57:05] apeiros: ideally, bar did regex matching based on conditions, so it'd only cause troubles some of the time, which made it harder to detect/figure out :D
[12:58:02] elomatreb: I.e. the regex $ vars only look like they're globals
[12:58:32] Vile`: has joined #ruby
[12:58:49] milardovich: has joined #ruby
[12:59:22] apeiros: most of them are really C function calls in MRI :)
[13:02:55] TinkerTyper: has joined #ruby
[13:04:47] belmoussaoui: has joined #ruby
[13:10:08] belmoussaoui: has joined #ruby
[13:10:59] belmoussaoui: has joined #ruby
[13:19:49] belmoussaoui: has joined #ruby
[13:19:54] kapil___: has joined #ruby
[13:21:01] TinkerTyper: has joined #ruby
[13:25:00] belmoussaoui: has joined #ruby
[13:26:06] ElFerna: has joined #ruby
[13:26:39] Mon_Ouie: has joined #ruby
[13:27:26] ElFerna: has joined #ruby
[13:28:16] ElFerna: has joined #ruby
[13:29:03] ElFerna: has joined #ruby
[13:29:51] ElFerna: has joined #ruby
[13:30:38] ElFerna: has joined #ruby
[13:31:26] TinkerTyper: has joined #ruby
[13:31:28] ElFerna: has joined #ruby
[13:38:44] guille-moe: has joined #ruby
[13:38:59] _sfiguser: has joined #ruby
[13:39:45] belmoussaoui: has joined #ruby
[13:40:28] Mon_Ouie: has joined #ruby
[13:41:38] TinkerTyper: has joined #ruby
[13:43:32] bronson: has joined #ruby
[13:43:32] belmoussaoui_: has joined #ruby
[13:43:41] FastJack: has joined #ruby
[13:43:43] Inoperable: has joined #ruby
[13:44:37] Bhootrk_: has joined #ruby
[13:45:30] emilford: has joined #ruby
[13:45:34] bronson: has joined #ruby
[13:49:47] Inoperable: has joined #ruby
[13:50:05] Puffball: has joined #ruby
[13:51:53] DTZUZO: has joined #ruby
[13:53:25] Puffball: has joined #ruby
[13:55:51] mikecmpbll: has joined #ruby
[13:59:01] Vile`: has joined #ruby
[13:59:20] maheshcontrib: has joined #ruby
[13:59:40] maheshcontrib: Is there a plugin for Atom that will provide suggestions for Class methods, constants etc for Ruby Programming Language. I tried with rsense and Atom, but it is not working as desired.
[14:00:30] zephiro: has joined #ruby
[14:01:13] milardovich: has joined #ruby
[14:03:38] milardovich: has joined #ruby
[14:07:12] Puffball: has joined #ruby
[14:08:25] RedNifre: Ah, so some $ are thread local and some other $ are frame local? Hm...
[14:08:56] charliesome: has joined #ruby
[14:09:42] RedNifre: Also, I'm now learning about threads. The Book says that since 1.9 it's now using OS threads, but since many ruby libraries aren't thread safe it only ever runs one thread at a time. Is this true? Because that sounds kinda ... not good.
[14:10:10] RedNifre: What does "multi threaded" even mean if you only run one thread at a time?
[14:11:55] Ishido: has joined #ruby
[14:19:37] DrCode: has joined #ruby
[14:22:27] spheric: has joined #ruby
[14:29:25] emilford: has joined #ruby
[14:31:31] TinkerTyper: has joined #ruby
[14:32:27] charliesome: has joined #ruby
[14:41:23] lexruee: has joined #ruby
[14:42:29] TinkerTyper: has joined #ruby
[14:42:39] harfangk: has joined #ruby
[14:45:47] p0s1x: has joined #ruby
[14:46:01] alfiemax: has joined #ruby
[14:46:20] jinie: has joined #ruby
[14:51:26] bkxd: has joined #ruby
[14:57:08] milardovich: has joined #ruby
[14:57:52] bruno-: has joined #ruby
[14:57:58] MarkBilk: has joined #ruby
[14:58:24] FrostCandy: has joined #ruby
[14:58:25] Puffball: has joined #ruby
[14:58:43] TinkerTyper: has joined #ruby
[14:58:49] tomphp: has joined #ruby
[15:01:18] apeiros: that's the difference between concurrency and parallelism
[15:01:37] Puffball: has joined #ruby
[15:01:56] apeiros: concurrent means multiple things are being worked on, but not at the same time. each thread gets a slice of time to continue, then the next thread and so on.
[15:02:11] apeiros: i.e. it seems like they're being worked on at the same time, while it isn't
[15:02:35] apeiros: parallel means that they're indeed processed at the same time (only possible since the advent of multiple cores)
[15:02:55] bruno-: has joined #ruby
[15:02:55] NightMonkey: has joined #ruby
[15:04:31] apeiros: ^ was @ RedNifre
[15:05:19] milardovich: has joined #ruby
[15:07:55] bruno-: has joined #ruby
[15:11:33] elomatreb: But concurrency is useful enough already, since you can execute code in another thread while another e.g. waits for IO
[15:11:34] RedNifre: yeah, but why aren't they running in parallel?
[15:11:59] RedNifre: say I don't use any of the not thread safe libraries. Wouldn't I want them to run in parallel then?
[15:12:22] apeiros: even if nothing waits on IO, it's still useful
[15:12:54] bruno-: has joined #ruby
[15:13:10] RedNifre: yeah, but wouldn't true parallelism be useful as well?
[15:13:25] apeiros: it's faster than only concurrency
[15:14:21] apeiros: basically those are the two main differences - parallelism is harder to handle but faster. that's about it.
[15:15:21] apeiros: and the maximum of how much faster it can be is the number of physically available cores (might change with different computer architectures, but since this is what we've mainly had for decades, it's good enough an explanation IMO :) )
[15:15:40] RedNifre: Another thing. Up until now I have been writing ruby in vim with nothing but syntax highlighting. I'm aware of RubyMine, but maybe I want something more lightweight for a start. I like the Atom editor, but I'm open to suggestions. What's a good tool for writing ruby code? How do you work on ruby code?
[15:16:01] apeiros: all you've named are fine
[15:16:07] apeiros: I use sublime
[15:16:45] RedNifre: Do you have some IDE-like plugins for autocomplete or do you write everything by hand?
[15:17:57] bruno-: has joined #ruby
[15:18:10] apeiros: I have some plugins, but those don't really help only a bit with writing
[15:18:25] elomatreb: It's hard to do autocomplete in Ruby due to the amount of dynamic code in most projects
[15:19:05] RedNifre: Alright, guess I'll stick to vim for now and look for Atom plugins later, if I ever feel the need.
[15:20:54] workmad3_: has joined #ruby
[15:21:20] orbyt_: has joined #ruby
[15:21:47] RedNifre: Currently, I write ruby one file per project at a time. My next goal is to figure out gems, gemfiles and rake. I'll read up on it next, but could you give me a brief summary of what's ahead? In the style of "In Node.js, your project has a package.json with the dependencies in it, you run npm install to fetch them, then you create an account on npmjs.com and run npm publish and you're done".
[15:22:10] apeiros: RedNifre: rubygems has a good guide on the structure
[15:22:30] apeiros: the most important parts: /bin for executables, /lib for the library parts. map constants to files.
[15:22:44] apeiros: e.g. Foo::BarBaz should be in lib/foo/bar_baz.rb
[15:22:54] bruno-: has joined #ruby
[15:23:09] apeiros: and the executables should be tiny. load the lib and delegate the work to them.
[15:23:34] RedNifre: No need for details, I'll learn those myself :) I'm just looking for a one sentence summary of the basic idea.
[15:24:12] runescape07rsps: has joined #ruby
[15:24:33] RedNifre: I imagine it's like with nodejs: Everything about your project goes into the gemfile and you use rake to package it before publishing it on the one big gem repository somewhere on the web?
[15:25:22] apeiros: yes, you can use rake to stuff everything into a .gem file
[15:25:34] apeiros: personally I just use gem itself
[15:26:18] apeiros: (gem build, gem install and gem push)
[15:26:33] RedNifre: Ah, that sounds sensible.
[15:26:50] maheshcontrib: has joined #ruby
[15:27:56] bruno-: has joined #ruby
[15:32:53] bruno-: has joined #ruby
[15:33:30] elomatreb: RedNifre: The important difference to npm is that bundler (the tool that does Gemfiles) always generates a lockfile (so you can always recreate an exact gem environment) and that gems aren't (by default at least) stored in each project directory, but in a shared one for all gems
[15:37:53] bruno-: has joined #ruby
[15:43:44] ShekharReddy: has joined #ruby
[15:46:00] roshanavand: has joined #ruby
[15:46:42] bronson: has joined #ruby
[15:48:48] RedNifre: Hm, sounds a bit like a gopath?
[15:49:24] gothicsouth: has joined #ruby
[15:49:48] Cope: has joined #ruby
[15:54:01] RedNifre: Wikipedia says that gems are processor architecture specific. Why is that if ruby is interpreted?
[15:54:31] havenwood: RedNifre: Some gems have native extensions in say C or Java, etc.
[15:55:01] RedNifre: so most gems work everythere then?
[15:55:21] RedNifre: I'm asking because the raspberry pi has an arm chip.
[15:56:48] havenwood: RedNifre: Even C extensions can build on arm.
[15:59:49] erlend: has joined #ruby
[16:04:38] sepp2k: has joined #ruby
[16:05:58] sepp2k: has joined #ruby
[16:09:46] robouk: has joined #ruby
[16:10:26] BTRE: has joined #ruby
[16:12:25] erlend: has joined #ruby
[16:12:35] emilford: has joined #ruby
[16:18:51] nobitanobi: has joined #ruby
[16:19:31] _sfiguser: has joined #ruby
[16:20:09] TinkerTyper: has joined #ruby
[16:25:46] guille-moe: has joined #ruby
[16:27:41] TinkerTyper_: has joined #ruby
[16:36:56] runescape07rsps: http://imgur.com/gallery/7Q1W9
[16:39:43] bkxd: has joined #ruby
[16:39:53] al2o3-cr: cool dog :)
[16:42:15] epochwolf: has joined #ruby
[16:43:00] nobitanobi: has joined #ruby
[16:46:16] harai: has joined #ruby
[16:46:24] apparition47: has joined #ruby
[16:49:41] emilford: has joined #ruby
[16:52:08] sepp2k: has joined #ruby
[16:55:04] ahrs: has joined #ruby
[16:57:09] Antiarc: has joined #ruby
[16:58:16] p0s1x: has joined #ruby
[17:04:02] nobitanobi: has joined #ruby
[17:04:46] al2o3-cr: has joined #ruby
[17:05:07] jamesaxl: has joined #ruby
[17:06:16] p0s1x: has joined #ruby
[17:07:58] noe: has joined #ruby
[17:10:54] p0s1x: has joined #ruby
[17:15:41] workmad3: has joined #ruby
[17:15:54] kobain: has joined #ruby
[17:17:02] Prutheus: has joined #ruby
[17:18:23] alamar: has joined #ruby
[17:18:28] subrat: has joined #ruby
[17:18:38] Prutheus: trying to install talib_ruby on windows ... installed ruby version tested: 2.3.3 and 2.4.1 .... both same error: https://bpaste.net/show/fcdb30488749 ... I have no idea where the problem is ... I've downloaded ta-lib, extracted it to C:/ and yeah, .... that's it. In my bpaste-post is also the command with which I want to install via gem the talib_ruby package
[17:18:45] Prutheus: any idea what I could do to get it working?
[17:24:45] xlegoman: has joined #ruby
[17:26:11] workmad3: has joined #ruby
[17:36:52] alfiemax: has joined #ruby
[17:41:26] graft: has joined #ruby
[17:42:42] gusrub: has joined #ruby
[17:43:36] fredflinstone: @elomatreb npm generates lockfile by default since... recently.
[17:44:17] fredflinstone: package-lock.json iirc
[17:44:50] Cope: has joined #ruby
[17:45:03] gr33n7007h: has joined #ruby
[17:45:37] milardovich: has joined #ruby
[17:47:00] imperator: has joined #ruby
[17:48:12] bronson: has joined #ruby
[17:53:13] dviola: has joined #ruby
[17:55:23] bruno-: has joined #ruby
[17:58:31] jackjackdripper: has joined #ruby
[18:01:46] mniip: has joined #ruby
[18:01:52] gr33n7007h: has joined #ruby
[18:02:17] milardovich: has joined #ruby
[18:02:47] enterprisey: has joined #ruby
[18:09:20] milardovich: has joined #ruby
[18:17:01] goyox86_: has joined #ruby
[18:17:08] goyox86: has joined #ruby
[18:20:42] charliesome: has joined #ruby
[18:22:40] carnegie: has joined #ruby
[18:27:13] milardovich: has joined #ruby
[18:27:59] bkxd: has joined #ruby
[18:31:17] imperator: howdy folks
[18:31:24] guille-moe: has joined #ruby
[18:31:55] imperator: anyone know how to automatically raise an error with Faraday if the response was not successful?
[18:32:05] imperator: i've seen some examples online, but am not having any luck
[18:33:04] imperator: https://gist.github.com/djberg96/83a006a732185150683f75a69f1555c6
[18:33:18] imperator: also tried a custom middleware class, no luck
[18:37:32] alex``: has joined #ruby
[18:42:20] enterprisey: has joined #ruby
[18:42:23] cjohnson: has joined #ruby
[18:42:55] milardovich: has joined #ruby
[18:46:08] Dimik: has joined #ruby
[18:48:16] orbyt_: has joined #ruby
[18:51:59] TinkerTyper: has joined #ruby
[18:52:05] al2o3-cr: imperator: https://gist.github.com/gr33n7007h/f6ea5a53168bbfe128873db130b3940f
[18:52:42] alfiemax_: has joined #ruby
[18:53:46] cjohnson: has joined #ruby
[18:54:47] gusrub: has joined #ruby
[19:02:59] gothicsouth: has joined #ruby
[19:03:32] TinkerTyper: has joined #ruby
[19:04:48] tolerablyjake: has joined #ruby
[19:14:45] imperator: al2o3-cr, thanks!
[19:15:05] imperator: i thought it used that adapter by default, so it didn't cross my mind to explicitly set it
[19:15:15] al2o3-cr: you're welcome.
[19:15:41] al2o3-cr: easy mistake to make
[19:15:49] ResidentBiscuit: has joined #ruby
[19:18:00] carnegie: has joined #ruby
[19:32:22] LAN_Lord: has joined #ruby
[19:33:47] sagax: has joined #ruby
[19:38:56] phinxy: has joined #ruby
[19:39:19] phinxy: has left #ruby: ()
[19:50:01] bronson: has joined #ruby
[19:54:37] konsolebox: has joined #ruby
[19:57:11] enterprisey: has joined #ruby
[20:07:45] quiller: has joined #ruby
[20:08:55] Al3xG0: has joined #ruby
[20:09:45] Al3xG0: what error in script https://gist.github.com/anonymous/5ca48c3f07b08f5b7974cfe4d086a5cf
[20:11:39] naprimer: has joined #ruby
[20:12:07] opekktar: has joined #ruby
[20:15:16] p0s1x: has joined #ruby
[20:15:33] elomatreb: Al3xG0: Well, if you're getting an error you should tell us
[20:16:09] bkxd: has joined #ruby
[20:17:50] Al3xG0: no have error elomatreb
[20:17:56] Al3xG0: is not open site
[20:18:02] Al3xG0: my list site not have http
[20:18:10] Al3xG0: i nee put http in variable site
[20:18:30] Al3xG0: How to proceed?
[20:18:39] elomatreb: Ah, you're probably from a PHP background? You don't concatenate strings with . in Ruby, just use +
[20:19:13] Al3xG0: source = open("http://"+site).read
[20:19:19] Al3xG0: is correct?
[20:19:48] Al3xG0: arubaito-guide-information.net => Unknown!
[20:19:49] Al3xG0: arubaito-guide-kakakuhikaku.net => Unknow^
[20:19:56] elomatreb: The version with . would try to call a method called "site" on the string "http://"
[20:20:40] elomatreb: You should probably properly indent your script, it's really hard to read like that
[20:23:07] charliesome: has joined #ruby
[20:25:04] joelroa: has joined #ruby
[20:25:15] joelroa: anybody here?
[20:27:24] joelroa: Just testing my Textual connection - it never seems to autoconnect properly. :-( Thanks for the pingback! :-)
[20:29:59] charliesome: has joined #ruby
[20:32:59] charliesome_: has joined #ruby
[20:37:06] charliesome: has joined #ruby
[20:37:46] Al3xG0: cms.rb:99:in `split': invalid byte sequence in UTF-8 (ArgumentError)
[20:37:46] Al3xG0: from cms.rb:99:in `<main>'
[20:38:21] Al3xG0: ruby not read big files?
[20:39:04] elomatreb: It does, it just probably isn't encoded in UTF-8 (the default string encoding)
[20:42:40] tomphp: has joined #ruby
[20:46:00] mson: has joined #ruby
[20:49:05] harai: has joined #ruby
[20:50:26] charliesome_: has joined #ruby
[20:50:57] bruno-: has joined #ruby
[20:59:07] gix: has joined #ruby
[21:06:06] sepp2k: has joined #ruby
[21:09:03] kt: has joined #ruby
[21:10:20] bkxd: has joined #ruby
[21:12:20] kapil___: has joined #ruby
[21:16:09] charliesome: has joined #ruby
[21:18:36] nofxx: has joined #ruby
[21:21:44] jackjackdripper: has joined #ruby
[21:34:48] carnegie: has joined #ruby
[21:37:58] cajone: has joined #ruby
[21:40:50] Pisuke: has joined #ruby
[21:42:24] psychicist__: has joined #ruby
[21:45:52] wsk: has joined #ruby
[21:47:13] bkxd: has joined #ruby
[21:49:47] zenit: has joined #ruby
[21:50:23] zenit_: has joined #ruby
[21:51:15] dlitvak: has joined #ruby
[21:52:07] Sambsquanch: has joined #ruby
[21:52:26] bronson: has joined #ruby
[21:54:53] p0s1x: has joined #ruby
[21:55:43] xdc: has joined #ruby
[21:57:39] wsk: has joined #ruby
[22:00:31] ruby[bot]: has joined #ruby
[22:00:31] ChanServ: +o ruby[bot]
[22:01:57] psychicist__: has joined #ruby
[22:08:13] pugcs: has joined #ruby
[22:15:00] tomphp: has joined #ruby
[22:19:39] Dimik: has joined #ruby
[22:19:47] carnegie: has joined #ruby
[22:24:48] knight33: has joined #ruby
[22:27:09] s3nd1v0g1us: has joined #ruby
[22:29:37] ledestin: has joined #ruby
[22:35:25] emilford: has joined #ruby
[22:38:16] phinxy: has joined #ruby
[22:41:49] phinxy: has joined #ruby
[22:42:21] sneakerhax: has joined #ruby
[22:42:33] p0s1x: has joined #ruby
[22:50:32] phinxy: has joined #ruby
[23:01:37] selim: has joined #ruby
[23:08:06] mikecmpbll: has joined #ruby
[23:10:13] bkxd: has joined #ruby
[23:10:41] houhoulis: has joined #ruby
[23:20:39] raynold: has joined #ruby
[23:20:59] carnegie: has joined #ruby
[23:26:34] guille-moe: has joined #ruby
[23:32:58] oleo: has joined #ruby
[23:35:25] Antiarc: has joined #ruby
[23:35:54] Antiarc: has joined #ruby
[23:37:32] SeepingN: has joined #ruby
[23:39:33] RedNifre: has joined #ruby
[23:54:11] _whitelogger: has joined #ruby
[23:54:16] bronson: has joined #ruby
[23:56:45] ShalokShalom: has joined #ruby
[23:57:32] alveric1: has joined #ruby
[23:59:27] emilford: has joined #ruby