« Back to channel list

#ruby - 04 June 2019

« Back 1 day Forward 1 day »
[00:10:59] skryking: has joined #ruby
[00:19:48] budonyc: has joined #ruby
[00:22:31] brool: has joined #ruby
[00:23:50] dviola: has joined #ruby
[00:24:46] Nicmavr: has joined #ruby
[00:26:37] barg: has joined #ruby
[00:38:45] weteamsteve: has joined #ruby
[01:08:29] gigetoo: has joined #ruby
[01:17:16] esp32_prog: has joined #ruby
[01:19:36] staticx: has joined #ruby
[01:22:10] staticx: has joined #ruby
[01:41:25] bambanxx: has joined #ruby
[01:44:37] woodruffw: has joined #ruby
[01:44:37] woodruffw: has joined #ruby
[01:46:18] Fusl: has joined #ruby
[01:53:48] StarLord__: has joined #ruby
[01:55:24] duderonomy: has joined #ruby
[01:58:20] mac_ava: has joined #ruby
[02:01:30] woodruffw: has joined #ruby
[02:01:30] woodruffw: has joined #ruby
[02:09:53] Swyper: has joined #ruby
[02:31:37] jenrzzz: has joined #ruby
[02:39:26] ricardo: has joined #ruby
[02:39:41] Nicmavr: has joined #ruby
[02:47:29] dbz: has joined #ruby
[02:54:42] Kestrel-029: has joined #ruby
[02:55:00] mochiyoda: has joined #ruby
[02:59:21] orbyt_: has joined #ruby
[03:00:22] gr33n7007h: has joined #ruby
[03:05:04] dbz: has joined #ruby
[03:05:30] esp32_prog: has joined #ruby
[03:07:08] thistledown: has joined #ruby
[03:08:12] thistledown: Hey guys, I'm struggle bussing through some basic OOP stuff in Ruby, and I'm a bit confused.
[03:08:48] thistledown: What is the most correct way to call one instance method from a class on a different object?
[03:09:21] brer: has joined #ruby
[03:09:32] thistledown: for example, if I had class1, that generates a random string
[03:10:06] thistledown: class2 saves things to a file via a 'handle_save' method
[03:10:50] braincrash: has joined #ruby
[03:11:30] woodruffw: `class2.handle_save(class1.whatever)` maybe? unless i'm misunderstanding
[03:12:03] thistledown: is there any way to call the handle_save method from class2 on the instance_of_class1 from inside the instance?
[03:12:32] woodruffw: you could add an instance method to class1 that calls class2.handle_save
[03:13:11] thistledown: and I could do something like self.class2.handle_save?
[03:13:22] thistledown: is there a way to reference self without making the method think I'm talking about the class2 instance?
[03:13:47] haxx0r71: has joined #ruby
[03:15:12] woodruffw: depends on the context you're in
[03:15:39] woodruffw: if you're writing an instance method on class1, self will refer to your current class1 instance
[03:16:41] thistledown: okay, so if I write the instance method to be the class2.handle_save call, I could self.call it and it would theoretically call on itself
[03:18:00] woodruffw: `self.call` will try to call the `call` method, which probably doesn't exist
[03:18:28] woodruffw: you can use `send` to send methods to arbitrary objects, but that usually isn't what you want when getting started with ruby's OOP
[03:18:51] thistledown: I've done nothing but procedural bash and perl ever
[03:18:56] thistledown: so it's a big 'ol shift for me
[03:19:03] thistledown: (and I wasn't particularly good at those either)
[03:22:05] gix: has joined #ruby
[03:30:19] fphilipe: has joined #ruby
[03:34:56] armyriad: has joined #ruby
[03:58:25] cerulean: baweaver: yeah its a test. I got an extension. tomorrow gonna try again
[03:58:28] cerulean: they're a phone company
[03:58:38] cerulean: apparently parsing phone numbers is hell. US and EU are different formats
[03:58:42] cerulean: gonna try again
[03:58:45] cerulean: had to look up E>164
[04:02:56] baweaver: thistledown: Got an example?
[04:03:23] baweaver: Why does the random string method need to be in a different class?
[04:03:28] jenrzzz: has joined #ruby
[04:03:51] baweaver: If it were a class method, sure
[04:03:53] baweaver: Though it sounds like that should be a method of class 1
[04:03:56] baweaver: Can you paste your current code here https://dpaste.de/ and select Ruby as the language?
[04:03:57] baweaver: I still think that this sounds like both methods should be in class 1
[04:04:18] mr_rich101: has joined #ruby
[04:04:24] baweaver: thistledown: problem 1 - Why class1 and class2? Can you think of better more descriptive names for what they are?
[04:04:26] baweaver: problem 2 - Why is class2 distinct from class1?
[04:04:28] baweaver: Answering questions like these help you build intuition in writing code
[04:04:56] baweaver: It's very difficult to answer questions about abstract entities, because the answers will be very different depending on your usecases
[04:05:28] baweaver: Then start with names
[04:05:29] baweaver: OO deals with the _what_ of programming
[04:05:55] baweaver: Names like class1 and class2 do not communicate the intent of the classes, nor why they should be classes
[04:05:57] baweaver: By finding a name you define what behavior it should and should not have
[04:05:58] baweaver: It would be very odd for a Bike class to have a fly method
[04:06:01] baweaver: or a Plane a swim method
[04:06:03] baweaver: They don't really belong, the names give us an insight into the expected behavior of the code inside so we can make reasonable assumptions about them
[04:06:04] baweaver: class1 and class2 don't give you that
[04:06:31] baweaver: After names you start to get into messages. How does a Human communicate with a Bike or a Car? Probably through a ride or drive method.
[04:07:05] Dbugger: has joined #ruby
[04:07:31] baweaver: The hard truth is that immediate answers will not help you learn. Thinking on problems and reasoning about them, building that intuition, and asking questions to that front will.
[04:07:46] hutch: has joined #ruby
[04:15:58] baweaver: That's almost rigged
[04:15:59] baweaver: The only way to really handle it would be a really nasty regex
[04:16:02] baweaver: or tokenization or any type of format detection
[04:16:03] baweaver: Granted not as bad as emails but eesh
[04:16:21] iMadper: has joined #ruby
[04:23:36] laaron: has joined #ruby
[04:25:56] Fusl: has joined #ruby
[04:31:13] dbz: has joined #ruby
[04:35:13] fphilipe: has joined #ruby
[04:41:43] Guest66416: has joined #ruby
[04:45:55] laaron: has joined #ruby
[04:50:41] kyrylo: has joined #ruby
[04:53:44] esp32_prog: has joined #ruby
[04:54:42] jenrzzz: has joined #ruby
[04:56:45] dbz: has joined #ruby
[05:05:00] jenrzzz: has joined #ruby
[05:08:55] shortCircuit__: has joined #ruby
[05:17:13] Azure: has joined #ruby
[05:17:16] Azure: has joined #ruby
[05:21:04] conta: has joined #ruby
[05:24:39] Tempesta_: has joined #ruby
[05:24:39] FrankDW2: has joined #ruby
[05:25:11] giraffe_: has joined #ruby
[05:25:46] Tempesta_: has left #ruby: ()
[05:27:00] Tempesta: has joined #ruby
[05:28:27] armyriad: has joined #ruby
[05:28:41] Xiti: has joined #ruby
[05:29:07] rafadc: has joined #ruby
[05:36:37] sauvin: has joined #ruby
[05:36:48] ur5us: has joined #ruby
[05:48:30] PaddyF: has joined #ruby
[05:49:29] PaddyF: hello. i installed 2.6.3 into my user's $HOME and wonder what the next step is - do i need the extra package rubygems?
[05:54:17] codefriar: has joined #ruby
[05:59:06] sagax: has joined #ruby
[06:05:06] schne1der: has joined #ruby
[06:07:03] TomyLobo: has joined #ruby
[06:10:51] aupadhye: has joined #ruby
[06:16:30] havenwood: PaddyF: RubyGems ships with Ruby 2.6.3. It should *just work*.
[06:16:53] havenwood: PaddyF: You can update gem separately from Ruby with: gem update --system
[06:16:57] jenrzzz: has joined #ruby
[06:17:02] themsay: has joined #ruby
[06:22:03] brer: has joined #ruby
[06:27:39] alem0lars__: has joined #ruby
[06:29:00] PaddyF: has joined #ruby
[06:33:36] tdy: has joined #ruby
[06:34:26] fphilipe: has joined #ruby
[06:42:01] esp32_prog: has joined #ruby
[06:46:13] andikr: has joined #ruby
[06:51:19] DTZUZO: has joined #ruby
[06:52:16] ur5us: has joined #ruby
[06:53:10] ur5us: has joined #ruby
[06:56:19] Onwarion: has joined #ruby
[06:59:11] Onwarion: has left #ruby: ()
[07:00:28] roblucas: has joined #ruby
[07:02:23] andikr: has joined #ruby
[07:07:25] schne1der: has joined #ruby
[07:09:29] klarrimore_: has joined #ruby
[07:14:27] dbz: has joined #ruby
[07:27:21] conta1: has joined #ruby
[07:27:46] jenrzzz: has joined #ruby
[07:39:25] jenrzzz: has joined #ruby
[07:39:46] Nicmavr: has joined #ruby
[07:40:48] teclator: has joined #ruby
[07:41:02] armyriad: has joined #ruby
[07:44:46] fphilipe: has joined #ruby
[07:45:27] esp32_prog: has joined #ruby
[07:45:36] alem0lars_: has joined #ruby
[07:52:26] ricekrispie: has joined #ruby
[07:54:47] Kestrel-029: has joined #ruby
[08:06:45] mikecmpbll: has joined #ruby
[08:08:09] andikr: has joined #ruby
[08:10:55] jenrzzz: has joined #ruby
[08:11:04] sphenxes: has joined #ruby
[08:12:51] deepredsky: has joined #ruby
[08:18:38] universa1: has joined #ruby
[08:19:01] fphilipe: has joined #ruby
[08:19:59] ricekrispie: has joined #ruby
[08:21:58] ljarvis: has joined #ruby
[08:39:24] powerbit: has joined #ruby
[08:49:03] Jonopoly: has joined #ruby
[08:56:06] rbanffy: has joined #ruby
[08:56:43] mosh: has joined #ruby
[08:59:30] ur5us: has joined #ruby
[09:00:33] jefffrails35: has joined #ruby
[09:01:14] dhollin3: has joined #ruby
[09:06:41] matthewd: has joined #ruby
[09:17:37] mosh: has joined #ruby
[09:19:28] d^sh: has joined #ruby
[09:19:57] themsay: has joined #ruby
[09:26:19] tdy: has joined #ruby
[09:26:33] jenrzzz: has joined #ruby
[09:31:52] jenrzzz: has joined #ruby
[09:37:06] cd: has joined #ruby
[09:45:38] themsay: has joined #ruby
[09:46:53] ua: has joined #ruby
[09:51:58] vondruch: has joined #ruby
[09:55:11] deepredsky: has joined #ruby
[10:01:22] hightower2: has joined #ruby
[10:06:35] deepredsky: has joined #ruby
[10:07:44] PaddyF: has joined #ruby
[10:07:53] rippa: has joined #ruby
[10:08:12] conta: has joined #ruby
[10:18:24] brer: has joined #ruby
[10:33:39] conta: has joined #ruby
[10:36:16] vondruch: has joined #ruby
[10:53:35] queip: has joined #ruby
[10:58:04] ur5us: has joined #ruby
[11:02:44] adam12: has joined #ruby
[11:02:57] depesz: hi. i have hash like this: z = {"jump1" => [ 1, 2, 3], "jump2" => [4,5,6] }
[11:03:38] depesz: is there any simple way to convert it to {1 => jump1, 2 => jump1, 3 => jump1, 4 => jump2, 5 => jump2, 6 => jump2 }?
[11:04:00] depesz: one that would work without temprary variables preferably (like .map or something similar) ?
[11:04:41] phaul: &ri Hash#invert, depesz
[11:04:42] rubydoc: depesz: https://ruby-doc.org/core-2.6/Hash.html#method-i-invert
[11:05:11] depesz: phaul: yeah, but then as a key i get [1,2,3], and not 3 separate keys
[11:05:28] depesz: currently i have: map { |k,v| v.map { |n| [n, k] } }.reduce(&:+).to_h
[11:05:31] canton7: depesz, z.flat_map{ |k,v| v.map{ |x| [x, k] }}.to_h
[11:05:34] phaul: yeah, I was too quick :)
[11:05:43] depesz: oh, that looks promising, canton7
[11:05:56] depesz: thanks a lot
[11:06:37] canton7: you could have done it your way as well, but it's a bit neater to use .flatten(1) instead of .reduce(&:+)
[11:07:01] depesz: oh, didn't know I can pass argumnets to flatten. silly me.
[11:15:33] doodlebug: has joined #ruby
[11:19:07] esp32_prog: has joined #ruby
[11:22:35] klarrimore_: has joined #ruby
[11:24:46] Nicmavr: has joined #ruby
[11:27:33] doodleb30: has joined #ruby
[11:31:20] queip: has joined #ruby
[11:38:35] jenrzzz: has joined #ruby
[11:38:41] Swyper: has joined #ruby
[11:39:34] doodleb47: has joined #ruby
[11:43:16] laaron: has joined #ruby
[11:43:40] insu: has joined #ruby
[11:48:01] rbanffy: has joined #ruby
[11:49:12] haxx0r: has joined #ruby
[11:49:15] nowhereman: has joined #ruby
[11:52:53] queip: has joined #ruby
[11:54:47] Kestrel-029: has joined #ruby
[11:56:18] laaron: has joined #ruby
[11:58:41] reber: has joined #ruby
[11:59:28] laaron: has joined #ruby
[12:05:23] roblucas: has joined #ruby
[12:09:16] deathwishdave: has joined #ruby
[12:11:55] doodlebug: has joined #ruby
[12:24:28] mayurvpatil: has joined #ruby
[12:24:46] Nicmavr: has joined #ruby
[12:27:21] doodlebug: has joined #ruby
[12:31:24] schne1der: has joined #ruby
[12:36:28] queip: has joined #ruby
[12:39:47] Kestrel-029: has joined #ruby
[12:43:31] doodlebug: has joined #ruby
[12:47:27] brendan-: has joined #ruby
[12:52:49] Swyper: has joined #ruby
[12:53:39] queip: has joined #ruby
[12:59:16] nowhereman: has joined #ruby
[13:00:14] doodlebug: has joined #ruby
[13:03:04] deathwishdave: has joined #ruby
[13:18:17] doodlebug: has joined #ruby
[13:22:45] andikr: has joined #ruby
[13:23:41] queip: has joined #ruby
[13:27:36] tdy: has joined #ruby
[13:36:56] doodlebug: has joined #ruby
[13:39:06] jenrzzz: has joined #ruby
[13:48:27] conta: has joined #ruby
[13:52:12] Rapture: has joined #ruby
[13:56:24] mayurvpatil: has joined #ruby
[13:58:25] queip: has joined #ruby
[14:00:43] doodlebug: has joined #ruby
[14:04:50] cow[moo]: has joined #ruby
[14:05:03] miskatonic: has joined #ruby
[14:09:42] Nicmavr: has joined #ruby
[14:11:47] IGnorAND: Can one add two keys in one line to a hash?
[14:16:01] tdy: has joined #ruby
[14:17:45] alem0lars__: has joined #ruby
[14:19:01] mayurvpatil: has joined #ruby
[14:19:28] roblucas: has joined #ruby
[14:20:48] alem0lars__: has joined #ruby
[14:24:45] doodlebug: has joined #ruby
[14:25:18] alem0lars__: has joined #ruby
[14:26:09] queip: has joined #ruby
[14:28:46] jeremycw: has joined #ruby
[14:29:10] phaul: &>> h = {}; h.merge!(a: 1, b: 2); h
[14:29:14] rubydoc: # => {:a=>1, :b=>2} (https://carc.in/#/r/7168)
[14:29:50] alem0lars__: has joined #ruby
[14:33:28] queip: has joined #ruby
[14:34:18] alem0lars__: has joined #ruby
[14:38:49] alem0lars__: has joined #ruby
[14:39:33] Esa_: has joined #ruby
[14:42:59] orbyt_: has joined #ruby
[14:43:12] doodlebug: has joined #ruby
[14:43:20] alem0lars__: has joined #ruby
[14:43:51] Dbugger: has joined #ruby
[14:47:15] alem0lars__: has joined #ruby
[14:48:52] kyrylo: has joined #ruby
[14:49:04] sajinmp: has joined #ruby
[14:51:50] mikecmpbll: has joined #ruby
[14:51:50] alem0lars__: has joined #ruby
[14:52:12] cerulean: has joined #ruby
[14:53:17] mikecmpbll: has joined #ruby
[14:53:56] Iarfen: has joined #ruby
[14:55:06] alem0lars__: has joined #ruby
[14:56:53] doodlebug: has joined #ruby
[15:02:09] jenrzzz: has joined #ruby
[15:09:22] deepredsky: has joined #ruby
[15:09:24] PaddyF: has joined #ruby
[15:09:51] Nicmavr: has joined #ruby
[15:10:36] laaron: has joined #ruby
[15:13:22] doodlebug: has joined #ruby
[15:14:00] JoJo2UK_: has joined #ruby
[15:16:48] queip: has joined #ruby
[15:16:48] jenrzzz: has joined #ruby
[15:17:44] orbyt_: has joined #ruby
[15:25:58] Dysp: has joined #ruby
[15:26:02] andikr: has joined #ruby
[15:27:55] mayurvpatil: has joined #ruby
[15:31:35] doodlebug: has joined #ruby
[15:37:59] Harlin_: has joined #ruby
[15:39:47] Kestrel-029: has joined #ruby
[15:41:29] deepredsky: has joined #ruby
[15:42:15] freddykiks: has joined #ruby
[15:42:58] Harlin: has joined #ruby
[15:45:31] dbz: has joined #ruby
[15:45:39] AJA4351: has joined #ruby
[15:47:52] schne1der: has joined #ruby
[15:49:55] doodlebug: has joined #ruby
[15:53:44] freddykiks: has left #ruby: ("Leaving")
[15:54:19] kyrylo: has joined #ruby
[15:56:34] laaron: has joined #ruby
[15:59:13] stryek: has joined #ruby
[16:03:48] sytherax: has joined #ruby
[16:04:13] codefriar: has joined #ruby
[16:05:14] deepredsky: has joined #ruby
[16:06:32] doodlebug: has joined #ruby
[16:08:51] laaron: has joined #ruby
[16:16:31] ravenousmoose: has joined #ruby
[16:16:39] d10n-work: has joined #ruby
[16:19:28] ravenousmoose: has joined #ruby
[16:20:45] jenrzzz: has joined #ruby
[16:22:18] ravenousmoose: has joined #ruby
[16:23:31] doodlebug: has joined #ruby
[16:25:55] queip: has joined #ruby
[16:34:42] duderonomy: has joined #ruby
[16:35:42] dbz: has joined #ruby
[16:39:52] doodlebug: has joined #ruby
[16:46:08] jenrzzz: has joined #ruby
[16:46:32] dbz: has joined #ruby
[16:47:15] dbz: has joined #ruby
[16:48:40] i9zO5AP: has joined #ruby
[16:50:36] orbyt_: has joined #ruby
[16:50:59] brool: has joined #ruby
[16:54:46] Nicmavr: has joined #ruby
[16:54:50] Harlin: has joined #ruby
[16:55:16] Frem: has joined #ruby
[16:55:50] AJA4351: has joined #ruby
[16:57:16] doodlebug: has joined #ruby
[16:57:25] esp32_prog: has joined #ruby
[17:02:53] nowhereman: has joined #ruby
[17:04:30] cerulean: has joined #ruby
[17:05:34] PaddyF: has joined #ruby
[17:06:47] aferreira: has joined #ruby
[17:14:08] doodleb13: has joined #ruby
[17:20:19] moei: has joined #ruby
[17:24:56] Nicmavr: has joined #ruby
[17:27:05] laaron: has joined #ruby
[17:30:04] Rabautius: has joined #ruby
[17:33:45] dbz_: has joined #ruby
[17:34:15] dbz_: has joined #ruby
[17:36:33] tdy: has joined #ruby
[17:37:01] queip: has joined #ruby
[17:37:57] esp32_prog: has joined #ruby
[17:40:01] doodlebug: has joined #ruby
[17:41:28] cerulean: has joined #ruby
[17:41:28] dellavg_: has joined #ruby
[17:44:40] SeepingN: has joined #ruby
[17:45:12] suukim: has joined #ruby
[18:02:41] AJA4351: has joined #ruby
[18:04:01] doodlebug: has joined #ruby
[18:06:08] TomyLobo: has joined #ruby
[18:06:09] fredmorcos: has joined #ruby
[18:08:56] octos: has joined #ruby
[18:15:52] whathappens: has joined #ruby
[18:17:02] cerulean: has joined #ruby
[18:22:45] orbyt_: has joined #ruby
[18:23:28] fphilipe: has joined #ruby
[18:27:08] hays: has joined #ruby
[18:28:03] doodlebug: has joined #ruby
[18:33:11] ravenousmoose: has joined #ruby
[18:41:09] fphilipe: has joined #ruby
[18:44:30] dbz: has joined #ruby
[18:44:53] budonyc: has joined #ruby
[18:47:01] orbyt_: has joined #ruby
[18:49:10] doodlebug: has joined #ruby
[18:49:31] dviola: has joined #ruby
[18:49:51] happyhans: has joined #ruby
[18:49:54] esp32_prog: has joined #ruby
[18:50:08] houhoulis: has joined #ruby
[18:50:21] happyhans: Can Matz sign my computer?
[18:50:50] octos: has joined #ruby
[18:51:22] jenrzzz: has joined #ruby
[18:53:25] matheusmoreira: has joined #ruby
[18:58:37] phaul: &fake Matz.quote
[18:58:37] rubydoc: Most programs are not write-once. They are reworked and rewritten again and again in their lived. Bugs must be debugged. Changing requirements and the need for increased functionality mean the program itself may be modified on an ongoing basis. During this process, human beings must be able to read and understand the original code. It is therefore more important by far for humans to be able to understand the program than it is for the computer.
[18:59:05] phaul: that's all I can do for you happyhans :)
[19:01:43] phaul: just to clarify, "I" means the chat, where the core members yet to show up :P
[19:05:41] ua: has joined #ruby
[19:10:12] mikecmpbll: has joined #ruby
[19:11:30] gix: has joined #ruby
[19:19:01] queip: has joined #ruby
[19:19:35] fphilipe: has joined #ruby
[19:20:31] Dbugger: has joined #ruby
[19:31:47] dbz: has joined #ruby
[19:32:30] dbz: has joined #ruby
[19:37:42] Eletious: has joined #ruby
[19:39:32] brer: has joined #ruby
[19:39:43] rbanffy: has joined #ruby
[19:40:00] cd: has joined #ruby
[19:42:50] TomyLobo2: has joined #ruby
[19:45:36] orbyt_: has joined #ruby
[19:47:10] queip: has joined #ruby
[19:53:54] roblucas: has joined #ruby
[19:54:37] powerbit: hi guys, do you use andand or &. when checking for nil? Do you have a link to some article comparing the two?
[19:55:25] SeepingN: I use .nil?
[19:59:06] leftylink: pretty much I just translate mechanically. whenever I would have written thing && thing.f in 2.2 I write it as thing&.f . however there are some times where I wouldn't be able to use that pattern
[20:03:09] happyhans: I use .nil? as well
[20:04:44] Fusl: has joined #ruby
[20:05:06] laaron: has joined #ruby
[20:06:28] dbz_: has joined #ruby
[20:09:41] SeepingN: seems I'm missing more to the question than is visibly present on that 1 line
[20:15:18] skarlso: has joined #ruby
[20:18:31] skarlso: has joined #ruby
[20:18:32] cthulchu_: has joined #ruby
[20:22:47] al2o3-cr: has joined #ruby
[20:28:09] NL3limin4t0r: powerbit: For me it depends on the contex. Depending on the context you could also implement the Null Object pattern and simply use `thing.method`.
[20:29:16] queip: has joined #ruby
[20:29:28] deathwishdave: has joined #ruby
[20:37:06] hutch: has joined #ruby
[20:38:05] esp32_prog: has joined #ruby
[20:39:20] orbyt_: has joined #ruby
[20:42:06] abaiste^: has joined #ruby
[20:42:48] ricardo_: has joined #ruby
[20:43:23] mochiyoda: has joined #ruby
[20:44:09] queip: has joined #ruby
[20:44:38] roblucas: has joined #ruby
[20:45:19] Milos: has joined #ruby
[20:49:10] salerace: has joined #ruby
[20:49:53] jenrzzz: has joined #ruby
[20:58:55] Swyper: has joined #ruby
[21:03:39] mochiyoda: has joined #ruby
[21:06:22] jenrzzz: has joined #ruby
[21:07:33] roblucas: has joined #ruby
[21:09:15] orbyt_: has joined #ruby
[21:09:26] octos: has joined #ruby
[21:12:23] ur5us: has joined #ruby
[21:12:45] jenrzzz: has joined #ruby
[21:12:46] queip: has joined #ruby
[21:16:52] laaron: has joined #ruby
[21:26:08] jenrzzz: has joined #ruby
[21:31:33] hutch: has joined #ruby
[21:38:38] jenrzzz: has joined #ruby
[21:39:12] gix-: has joined #ruby
[21:40:29] octos: has joined #ruby
[21:41:03] ricardo_: has joined #ruby
[21:41:21] rbanffy: has joined #ruby
[21:49:03] fphilipe: has joined #ruby
[21:50:00] tdy: has joined #ruby
[21:50:06] hightower3: has joined #ruby
[22:00:38] dar123: has joined #ruby
[22:01:04] queip: has joined #ruby
[22:01:45] orbyt_: has joined #ruby
[22:02:05] ricardo_: has joined #ruby
[22:03:42] whathappens: has joined #ruby
[22:07:18] pwnd_nsfw`: has joined #ruby
[22:08:32] miah: nil? is typically a smell
[22:12:58] pwnd_nsfw: has joined #ruby
[22:14:34] pwnd_nsfw: has joined #ruby
[22:14:51] powerbit: I use user.andand.get_age in case user is nil, so that I cam avoid 'nil do not have a method called get_age'. Or equivalently I can do user&.get_age
[22:15:07] altious: has joined #ruby
[22:15:19] powerbit: and I was wondering what do you use in this case preferentially
[22:15:32] altious: has joined #ruby
[22:16:16] powerbit: andand is a gem in my project
[22:16:20] orbyt_: has joined #ruby
[22:25:48] cerulean: has joined #ruby
[22:26:24] esp32_prog: has joined #ruby
[22:29:32] pwnd_nsfw`: has joined #ruby
[22:42:28] Swyper_: has joined #ruby
[22:44:47] jenrzzz: has joined #ruby
[22:51:01] AJA4350: has joined #ruby
[23:00:18] orbyt_: has joined #ruby
[23:00:20] ruby638: has joined #ruby
[23:00:34] ruby352: has joined #ruby
[23:01:09] SeepingN: oh I didn't even realize "andand" was literally a thing. I thought you meant &&. interesting
[23:01:24] SeepingN: we have "try" in our Rails project.
[23:07:23] sevak: has joined #ruby
[23:13:05] jenrzzz: has joined #ruby
[23:25:46] bambanx: has joined #ruby
[23:32:31] rubydoc: parser error at position 0 around `.'
[23:39:35] haxx0r: has joined #ruby
[23:41:07] hagabaka: has joined #ruby
[23:42:09] PaddyF: has joined #ruby
[23:43:14] _mak: has joined #ruby
[23:45:32] cerulean: has joined #ruby
[23:45:34] nemesit|znc: has joined #ruby
[23:53:23] houhoulis: has joined #ruby
[23:54:01] mac_ava: has joined #ruby