« Back to channel list

#ruby - 16 April 2019

« Back 1 day Forward 1 day »
[00:03:11] havenwood: &>> 'helloooooooo'.squeeze ?o
[00:03:13] rubydoc: # => "hello" (https://carc.in/#/r/6qbe)
[00:25:57] orbyt_: has joined #ruby
[00:34:40] nnielsen: has joined #ruby
[00:57:49] duderonomy: has joined #ruby
[01:07:40] mangold: has joined #ruby
[01:26:26] code_zombie: has joined #ruby
[01:27:03] dsmythe: has joined #ruby
[01:27:36] levifig: has joined #ruby
[01:30:10] dsmythe_: has joined #ruby
[01:39:34] kevinburke: has joined #ruby
[01:40:53] oncall-pokemon: has joined #ruby
[01:56:57] h3ll0w0rld: has joined #ruby
[02:10:50] h3ll0w0rld: has joined #ruby
[02:12:45] ramfjord: has joined #ruby
[02:15:08] Mia: has joined #ruby
[02:18:08] duderonomy: has joined #ruby
[02:25:02] ElF3rn4: has joined #ruby
[02:37:59] dsmythe: has joined #ruby
[02:39:14] maryo: has joined #ruby
[02:45:58] h3ll0w0rld: has joined #ruby
[02:48:20] h3ll0w0rld: has joined #ruby
[03:10:44] braincrash: has joined #ruby
[03:15:11] _whitelogger: has joined #ruby
[03:22:29] havenwood: has joined #ruby
[03:22:29] havenwood: has joined #ruby
[03:38:29] houhoulis: has joined #ruby
[03:57:43] Swyper: has joined #ruby
[04:04:53] levifig: has joined #ruby
[04:07:06] Nicmavr: has joined #ruby
[04:15:05] nnielsen: has joined #ruby
[04:17:52] eckhardt: has joined #ruby
[04:18:31] DmitryBochkarev_: has joined #ruby
[04:20:39] _swi7ch: has joined #ruby
[04:21:40] jenrzzz: has joined #ruby
[04:40:40] mrtnpwn: has joined #ruby
[04:50:53] Wolland: has joined #ruby
[05:00:18] h3ll0w0rld: has joined #ruby
[05:12:25] jenrzzz: has joined #ruby
[05:12:38] ur5us: has joined #ruby
[05:33:57] eckhardt: has joined #ruby
[05:41:26] DTZUZO: has joined #ruby
[05:47:34] vondruch: has joined #ruby
[05:48:27] matsaman: has joined #ruby
[05:57:43] kapil____: has joined #ruby
[06:04:10] matsaman: Trying to match from a starting pattern up to but not including an ending pattern, but I'm only getting every other item I think should be matching from .scan.
[06:05:20] AntoFox: has joined #ruby
[06:05:40] patientj: has joined #ruby
[06:10:55] vrih: has joined #ruby
[06:16:45] rufusThistle: has joined #ruby
[06:17:44] Ai9zO5AP: has joined #ruby
[06:19:56] havenwood: matsaman: share the code?
[06:21:25] patientj: has joined #ruby
[06:21:41] havenwood: matsaman: using a positive lookahead?
[06:22:38] dellavg_: has joined #ruby
[06:25:34] Dbugger: has joined #ruby
[06:26:10] clemens3: has joined #ruby
[06:30:21] matsaman: negative lookahead
[06:30:29] matsaman: eh, sorry I have to go anyway =/
[06:31:53] Lewix: has joined #ruby
[06:33:46] laaron-: has joined #ruby
[06:35:09] khalella_: has joined #ruby
[06:38:46] aqd: has joined #ruby
[06:38:57] fanta7531: has joined #ruby
[06:40:17] sauvin: has joined #ruby
[06:40:28] manveru: has joined #ruby
[06:43:41] BuildTheRobots: has joined #ruby
[06:47:54] BuildTheRobots: has joined #ruby
[06:52:16] KevinSjoberg: has joined #ruby
[06:52:42] BuildTheRobots: has joined #ruby
[06:53:13] lipoqil: has joined #ruby
[06:53:57] manveru: has joined #ruby
[06:54:07] chromis: has joined #ruby
[06:55:11] raggi: has joined #ruby
[06:55:44] khalella_: has joined #ruby
[06:57:42] WA9ACE: has joined #ruby
[06:59:33] Lewix: has joined #ruby
[07:00:06] JJonah: has joined #ruby
[07:02:46] coffeejunk: has joined #ruby
[07:04:54] andikr: has joined #ruby
[07:06:02] schleppel: has joined #ruby
[07:09:34] marmotini_: has joined #ruby
[07:11:15] clemens3: has joined #ruby
[07:14:43] prestorium: has joined #ruby
[07:16:36] lxsameer: has joined #ruby
[07:17:16] sagax: has joined #ruby
[07:18:19] jenrzzz: has joined #ruby
[07:22:04] claudiuinberlin: has joined #ruby
[07:30:05] aupadhye: has joined #ruby
[07:33:05] patientj: has joined #ruby
[07:34:08] cedum: has joined #ruby
[07:52:12] Cthulu201: has joined #ruby
[07:54:14] claudiuinberlin: has joined #ruby
[07:59:28] jsrn: has joined #ruby
[07:59:47] tdy: has joined #ruby
[08:05:19] ramfjord: has joined #ruby
[08:05:30] chromis_: has joined #ruby
[08:05:32] raggi: has joined #ruby
[08:05:54] rafadc: has joined #ruby
[08:06:06] BuildTheRobots: has joined #ruby
[08:11:25] jsrn_: has joined #ruby
[08:16:16] BH23: has joined #ruby
[08:16:53] hightower2: has joined #ruby
[08:17:29] _joes_: has joined #ruby
[08:18:09] dsmythe: has joined #ruby
[08:22:42] c-c: has left #ruby: ("ta")
[08:26:42] jenrzzz: has joined #ruby
[08:31:21] kyrylo: has joined #ruby
[08:33:36] jottr: has joined #ruby
[08:36:28] xco: has joined #ruby
[08:39:58] jon-: has joined #ruby
[08:40:43] havenwood: Guest5986: have a Ruby question?
[08:41:42] Jonopoly: Hi, sorry yeah
[08:41:54] havenwood: Jonopoly: hey, welcome
[08:41:58] Jonopoly: Hello, thanks!
[08:42:25] Jonopoly: I've been put in charge with automating a test for our website
[08:42:41] Jonopoly: and i was looking at using Ruby with (Gherkin, Cucumber and Selenium)
[08:42:57] Jonopoly: Since ruby seems very readable (to pass on)
[08:43:19] havenwood: Jonopoly: nice
[08:44:07] Jonopoly: the website is Java, JS (react) with tomcat (shudder)
[08:46:27] havenwood: Jonopoly: i've never been a huge cucumber fan, just because it seems like a layer of abstraction that's not useful to me personally and i have no stakeholders reading it typically
[08:47:10] Jonopoly: Hmm, its mostly for reporting
[08:47:41] havenwood: Jonopoly: my partner's side project uses capybara/selenium, but no cucumber: https://github.com/stephaniewilkinson/yonderbook/blob/master/spec/web/spec_helper.rb
[08:47:50] havenwood: Jonopoly: Just a run-on integration test ;) https://github.com/stephaniewilkinson/yonderbook/blob/master/spec/web/system_spec.rb
[08:49:01] Jonopoly: Thanks, i'll give it a look
[08:51:11] eb0t: has joined #ruby
[08:58:08] lomex: has joined #ruby
[09:02:08] TheBrayn: has joined #ruby
[09:04:09] aqd: has joined #ruby
[09:18:07] dhollinger: has joined #ruby
[09:21:14] phaul: has joined #ruby
[09:37:47] rufusThistle: has joined #ruby
[09:49:09] _joes_: has joined #ruby
[10:00:16] sphenxes: has joined #ruby
[10:03:56] jenrzzz: has joined #ruby
[10:04:29] kyrylo_: has joined #ruby
[10:05:36] jottr_: has joined #ruby
[10:05:53] waronline: has joined #ruby
[10:05:59] sezuan: has joined #ruby
[10:06:07] rufusThistle: has joined #ruby
[10:08:54] fanta1: has joined #ruby
[10:10:13] Jonopoly: has joined #ruby
[10:11:19] Jonopoly: OH iwas just in here, remember that name Havenwood - Thanks for before
[10:12:27] TheBloke: has joined #ruby
[10:13:33] TheBloke: has joined #ruby
[10:20:33] jottr: has joined #ruby
[10:22:25] Rudd0: has joined #ruby
[10:24:00] jenrzzz: has joined #ruby
[10:25:40] lomex: has joined #ruby
[10:28:28] fanta1: has joined #ruby
[10:39:11] _whitelogger: has joined #ruby
[10:42:07] j: has joined #ruby
[10:42:57] Jonopoly: has joined #ruby
[10:44:46] xco: hi, i’m sort of benchmarking or trying to at least how much memory allocations a method uses. what tool can i use for that if this is possible at all
[10:46:12] aqd: has joined #ruby
[10:55:58] xco: has joined #ruby
[10:57:31] _joes_: has joined #ruby
[10:58:18] zleap: has joined #ruby
[11:02:06] _joes_: has joined #ruby
[11:03:19] marmotini: has joined #ruby
[11:19:00] AJA4350: has joined #ruby
[11:25:34] jottr: has joined #ruby
[11:31:35] Jonopoly: has joined #ruby
[11:32:21] donofrio: has joined #ruby
[11:37:52] mangold: has joined #ruby
[11:39:46] Jonopoly: has joined #ruby
[11:41:29] aqd: has joined #ruby
[11:41:41] tdy: has joined #ruby
[11:43:05] ldnunes: has joined #ruby
[11:43:31] _joes_: has joined #ruby
[11:45:47] Jonopoly: has joined #ruby
[11:51:09] bastilian: has joined #ruby
[11:51:39] Jonopoly: Does anyone use Ruby&Selenium for 'stress' testing a web site?
[11:58:53] jottr: has joined #ruby
[12:03:36] aqd: has joined #ruby
[12:04:09] depesz: has joined #ruby
[12:04:11] DmitryBochkarev: has joined #ruby
[12:04:49] depesz: hi. where can I find explanation of what is &. syntax ? i have something like: x&.downcase&.start_with?('aa')
[12:04:59] depesz: how is that different from x.downcase.start_with?('aa')
[12:05:32] phaul: safe navigation operator
[12:05:46] ramfjord: has joined #ruby
[12:06:12] phaul: safe. googling this term should give you results
[12:06:13] ytti: depesz, if it returns nil, the method is not ran but nil is returned
[12:06:24] depesz: ah, got it. thanks.
[12:06:50] ytti: x can be nillable in above example
[12:06:58] ytti: you don't have to know
[12:07:12] ytti: without &. it must be string, otherwise there is runtime error
[12:07:14] _joes_: has joined #ruby
[12:07:21] depesz: phaul:thanks, duckduckgoed it, and got https://en.wikipedia.org/wiki/Safe_navigation_operator#Ruby :)
[12:08:21] phaul: I agree that's not much :) but there must be blogposts about it, otherwise ytti explained it all there is to know already ;)
[12:12:14] ferr: has joined #ruby
[12:13:56] marmotini_: has joined #ruby
[12:14:13] Swyper: has joined #ruby
[12:17:23] phaul: oh'forheavens'sake! I spent ~5hrs now trying to figure out why Im getting wrong css colours on the "production-box".
[12:18:05] waronline: has joined #ruby
[12:19:28] phaul: it turns out now I can reproduce https://gist.github.com/phaul/64292bfe8911bbf6ccfe99e45283e346 with the native ext built on that machine for sassc-2.0.1
[12:19:38] al2o3-cr: has joined #ruby
[12:20:54] phaul: it's built with clang, because g++ build failed. other than that, I am clueless
[12:23:27] phaul: I don't know. byte order bug in libsassc?
[12:25:19] ytti: i think downcase&.start_with? is useless use of &.
[12:25:24] ytti: i don't thnk downcase can return nil
[12:29:12] Jonopoly: Ruby and Selenium seem to go so well together
[12:39:28] Calinou: has joined #ruby
[12:47:00] aqd: has joined #ruby
[12:47:31] jonjitsu1: has joined #ruby
[12:47:31] sepp2k: has joined #ruby
[12:47:31] turt2live: has joined #ruby
[12:47:31] Turnikov[m]: has joined #ruby
[12:47:34] supergeek[m]: has joined #ruby
[12:47:34] neovalis[m]: has joined #ruby
[12:50:29] fmcgeough: has joined #ruby
[12:50:41] DmitryBochkarev: has joined #ruby
[12:58:23] Swyper: has joined #ruby
[12:59:06] aqd: has joined #ruby
[12:59:53] dsmythe: has joined #ruby
[13:13:39] TheSpectre: has joined #ruby
[13:20:36] jenrzzz: has joined #ruby
[13:20:51] ElF3rn4: has joined #ruby
[13:21:34] BH23: has joined #ruby
[13:27:34] aqd: has joined #ruby
[13:29:19] fluxAeon_: has joined #ruby
[13:34:20] endorama: has joined #ruby
[13:36:33] ElF3rn4: has joined #ruby
[13:37:52] hiroaki: has joined #ruby
[13:38:25] aqd: has joined #ruby
[13:38:51] pupsikov: has joined #ruby
[13:43:11] luminousnine: has joined #ruby
[13:43:11] luminousnine: has joined #ruby
[13:45:46] duderonomy: has joined #ruby
[13:47:34] lucasb: has joined #ruby
[13:49:54] priodev: has joined #ruby
[13:50:38] ghormoon: has joined #ruby
[13:50:53] Jonopoly: has joined #ruby
[13:52:06] xfbs: has joined #ruby
[13:52:35] RedNifre: has joined #ruby
[13:53:32] aqd: has joined #ruby
[13:56:14] mniip: has joined #ruby
[14:00:31] marmotini: has joined #ruby
[14:02:53] Rapture: has joined #ruby
[14:09:12] irdr: has joined #ruby
[14:10:57] h3ll0w0rld: has joined #ruby
[14:11:07] Jonopoly: has joined #ruby
[14:11:08] Vircung: has joined #ruby
[14:17:41] liuyiwen: has joined #ruby
[14:17:55] towo: Is there any useful way to store a Hash.dig symbol list somehow? Actual use case is "translate a lookup of this name into this nested hash element", so I'm also open for better suggestions.
[14:18:18] aqd: has joined #ruby
[14:21:06] Inline: has joined #ruby
[14:21:25] mangold: has joined #ruby
[14:26:23] vondruch_: has joined #ruby
[14:27:29] skryking: has joined #ruby
[14:28:16] spacesuitdiver: has joined #ruby
[14:30:24] skryking: has joined #ruby
[14:31:36] lomex: has joined #ruby
[14:31:41] vondruch_: has joined #ruby
[14:33:55] doodlebug: has joined #ruby
[14:34:14] bastilian: has joined #ruby
[14:37:26] brool: has joined #ruby
[14:37:34] h3ll0w0rld: has joined #ruby
[14:39:13] liuyiwen: has joined #ruby
[14:41:13] houhoulis: has joined #ruby
[14:41:24] laaron: has joined #ruby
[14:45:05] spacesuit: has joined #ruby
[14:47:21] Nicmavr: has joined #ruby
[14:52:03] _joes_: has joined #ruby
[14:52:10] BH23: has joined #ruby
[14:54:29] Swyper: has joined #ruby
[14:55:06] coffeejunk: has joined #ruby
[15:02:04] lipoqil: has joined #ruby
[15:02:35] sepp2k: has joined #ruby
[15:02:35] neovalis[m]: has joined #ruby
[15:02:35] turt2live: has joined #ruby
[15:02:35] supergeek[m]: has joined #ruby
[15:02:35] jonjitsu1: has joined #ruby
[15:02:42] Turnikov[m]: has joined #ruby
[15:04:35] jhass: well you can just splat an array into Hash.dig, so create (and store) that array however you like
[15:05:00] jhass: depending on your keyspace a simple .split('.')/.join('.') might do
[15:05:40] liuyiwen: has left #ruby: ()
[15:06:19] liuyiwen: has joined #ruby
[15:09:33] BuildTheRobots: has joined #ruby
[15:18:51] RedNifre: has joined #ruby
[15:21:01] jenrzzz: has joined #ruby
[15:21:25] towo: Ah, it takes an array… good to know. :) I can probably cook up something with that, thanks.
[15:22:47] kyrylo: has joined #ruby
[15:30:43] AJA4351: has joined #ruby
[15:33:24] WA9ACE: has joined #ruby
[15:35:19] rippa: has joined #ruby
[15:39:21] RedNifre: has joined #ruby
[15:45:37] polishdub: has joined #ruby
[15:48:25] DmitryBochkarev_: has joined #ruby
[15:48:29] jsrn: has joined #ruby
[15:51:22] nowhere_man: has joined #ruby
[15:51:37] DmitryBochkarev: has joined #ruby
[15:54:25] xco: has joined #ruby
[15:54:42] dtzuzu: has joined #ruby
[16:01:46] RedNifre: has joined #ruby
[16:03:47] spacesuitdiver: has joined #ruby
[16:03:51] doodleb87: has joined #ruby
[16:05:20] doodlebug: has joined #ruby
[16:06:56] DmitryBochkarev: has joined #ruby
[16:11:44] duderonomy: has joined #ruby
[16:14:16] cthulchu_: has joined #ruby
[16:15:00] RedNifre: has joined #ruby
[16:35:54] nnielsen: has joined #ruby
[16:38:52] AndreYuhai: has joined #ruby
[16:41:14] jcarl43: has joined #ruby
[16:41:19] AJA4351: has joined #ruby
[16:41:33] AndreYuhai: I have an each loop and then I am rescuing an exception inside the loop within a begin-end block. I want to redo the current iteration in rescue block, so putting redo will execute the each block again and not the begin block, right?
[16:46:48] bokwoon: has joined #ruby
[16:50:29] fluxAeon_: any chance anyone here uses webpack and rails?
[16:50:30] DmitryBochkarev: has joined #ruby
[16:54:20] phaul: &>> begin; redo; end # AndreYuhai
[16:54:22] rubydoc: stderr: -e:3: void value expression (https://carc.in/#/r/6qfk)
[16:54:36] phaul: ok, that's not what I wanted
[16:55:04] phaul: redo outside of the loop is syntax error
[16:56:18] phaul: https://carc.in/#/r/6qfl < AndreYuhai
[16:56:45] ramfjord: has joined #ruby
[16:57:32] phaul: fluxAeon_: I have used it before, not currently
[17:00:02] AndreYuhai: phaul: Thank you.
[17:00:54] fluxAeon_: when i run rake webpack:compile it's supposed to build my js files and put them into my webpack folder. it's stopped doing that for some reason and i can't figure out why. the webpack folder is now empy.
[17:02:08] cthu|: has joined #ruby
[17:04:27] agent_white: has joined #ruby
[17:08:06] gix: has joined #ruby
[17:15:36] cedum: has joined #ruby
[17:19:21] mondz: has joined #ruby
[17:21:55] cthulchu_: has joined #ruby
[17:23:09] xco: has joined #ruby
[17:29:57] rubydoc: has joined #ruby
[17:30:08] ziyadb: has joined #ruby
[17:34:11] pupsikov: has joined #ruby
[17:43:28] dar123: has joined #ruby
[17:47:08] waheedi: has joined #ruby
[17:47:35] AJA4351: has joined #ruby
[17:54:30] rubylover: has joined #ruby
[17:54:47] waheedi: hi rubylover :)
[17:55:07] rubylover: I came here with a problem :)
[17:55:35] rubylover: It is related to the purpose of "Extracting Images from xlsx"
[17:55:47] rubylover: I will share code in a few seconds
[17:55:53] waheedi: ops, that's a big problem my friend
[17:56:34] rubylover: I have done it already
[17:56:47] rubylover: you will understand the problem once I share it :)
[17:59:35] cedum: has joined #ruby
[18:01:49] zachk: has joined #ruby
[18:02:34] agent_white: has joined #ruby
[18:03:54] zachk: has joined #ruby
[18:04:10] LtHummus: has joined #ruby
[18:04:43] zachk: has joined #ruby
[18:05:43] mondz: has joined #ruby
[18:12:33] rubylover: I have got it
[18:12:45] rubylover: Here is the code in a Fiddle
[18:12:47] rubylover: https://repl.it/repls/TiredPrimaryScript
[18:13:04] rubylover: Try to run and see the image files that are generated in the folder
[18:13:42] rubylover: The problem is that the images are named in excel but when I fetch them, their name information is lost
[18:18:00] waheedi: rubylover: i see their names not lost, roo_media_image1.png
[18:18:08] waheedi: whats lost?
[18:18:43] oncall-pokemon: has joined #ruby
[18:20:03] adam12: waheedi: I suspect that they might have been called something else and not `roo_*`
[18:20:29] waheedi: well i really don't know their original names and have no access to that neither
[18:20:40] lxsameer: has joined #ruby
[18:20:45] waheedi: :) adam12 good point though
[18:22:26] adam12: rubylover: This is likely a shortcoming with Roo. I'm not sure you'll be able to do any better unless you are able to update the roo gem to get the filenames from the xlsx file through the XLS spec (if one even exists?)
[18:28:57] rubylover: I can understand
[18:29:37] rubylover: In VBA, it is possible to write code that finds images by their name which one can assign to an image in a spreadsheet
[18:29:49] rubylover: Using that name, the image can be extracted
[18:30:08] waheedi: rubylover: can you please share that books.xlsx file somewhere we can see its content?
[18:30:26] rubylover: It is in that folder which I shared :)
[18:30:33] jenrzzz: has joined #ruby
[18:30:34] waheedi: its not downloadable
[18:30:42] waheedi: its does not make sense you can't read a cell value
[18:31:12] rubylover: Images are not stored in a Cell. It appears like that but the images are actually drawn on a "drawing layer" on top of the spreadsheet
[18:31:28] waheedi: so they have no names in the first place?
[18:32:14] rubylover: They are named by me
[18:32:15] rubylover: http://s000.tinyupload.com/index.php?file_id=00554083341798530179
[18:32:20] rubylover: The link to the workbook
[18:32:40] rubylover: roo is indexing the images by the order of their creation
[18:33:08] rubylover: So if I delete all 3 images and remake them in a different order, the files generated by Roo will folllow that specific order
[18:33:29] waheedi: rubylover: what did you name them?
[18:34:41] waheedi: i seem them all with no names on my machine, and when I try to save these images it will save it as untitled (the default untitled file name for my os)
[18:35:11] waheedi: rubylover: oh, i see a name
[18:35:26] waheedi: Picture_XYZ123
[18:35:30] rubylover: exactly that name
[18:35:55] rubylover: instead of that name, I get to see roo_media_image#.png
[18:36:01] rubylover: replace # with a number :)
[18:38:29] rubylover: I just extracted the XLSX
[18:38:49] rubylover: and saw what I wish I hadnt
[18:38:56] rubylover: Check this out
[18:38:57] rubylover: <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image2.png"/>
[18:39:26] rubylover: This is an XML structure. IT is saying that the something rID3 has a target image at ../media/image2.png"
[18:39:43] rubylover: And in the folder ../media/ I see my images which I put in my Excel workbook
[18:39:59] rubylover: Go ahead and try to extract the XLSX. This does not look good :D
[18:40:03] dviola: has joined #ruby
[18:41:09] waheedi: lol :) thats what it is
[18:41:17] waheedi: it does not always look good my friend
[18:42:07] rubylover: You are right
[18:42:54] ascarter: has joined #ruby
[18:43:57] kyrylo: has joined #ruby
[18:44:26] Swyper: has joined #ruby
[18:44:51] Swyper: has joined #ruby
[18:44:56] jenrzzz: has joined #ruby
[18:45:05] rubylover: can you use this to help me?
[18:45:06] rubylover: https://github.com/roo-rb/roo/blob/master/lib/roo/excelx/images.rb
[18:45:16] waheedi: yes i saw that
[18:45:25] waheedi: it actually can't do better
[18:45:27] gell5: has joined #ruby
[18:45:51] waheedi: like even my machine with a proper microsoft excel sheet, didn't save the image file with its proper name
[18:55:27] doodlebug: has joined #ruby
[18:58:07] lomex: has joined #ruby
[18:59:47] waheedi: you can unzip that excel file and you will find the names inside Book1/xl/drawings/drawing1.xml
[19:00:19] mondz`: has joined #ruby
[19:04:15] postmodern: has joined #ruby
[19:13:35] dviola: has joined #ruby
[19:14:19] dviola: has joined #ruby
[19:15:29] sagax: we have Struct - wow
[19:15:37] sagax: i don't know about this before
[19:18:27] ytti: wait till you see OpenStruct
[19:23:31] Zarthus: And beyond that is LibreStruct (/s)
[19:24:10] sagax: ytti: already
[19:24:58] sagax: Zarthus: where is?
[19:26:48] Zarthus: it was a bad joke
[19:27:55] ascarter_: has joined #ruby
[19:32:24] d10n-work: has joined #ruby
[19:33:28] ellcs1: has joined #ruby
[19:34:37] Jusstin: has joined #ruby
[19:35:13] dsmythe: has joined #ruby
[19:37:57] sagax: Zarthus: you know about rusnet?
[19:38:21] sagax: Zart ты ли это? ^_^
[19:41:19] Zarthus: i dont speak russian
[19:42:25] sagax: oh, sorry
[19:46:30] jenrzzz: has joined #ruby
[19:50:27] clemens3: has joined #ruby
[19:59:49] jenrzzz: has joined #ruby
[20:00:16] ramfjord: has joined #ruby
[20:06:24] maryo: has joined #ruby
[20:09:37] ascarter: has joined #ruby
[20:15:39] pupsikov: has joined #ruby
[20:17:33] RedNifre: has joined #ruby
[20:18:43] ascarter: has joined #ruby
[20:22:16] minimal_life: has joined #ruby
[20:27:29] jenrzzz: has joined #ruby
[20:30:34] orbyt_: has joined #ruby
[20:31:28] laaron: has joined #ruby
[20:32:45] SeepingN: has joined #ruby
[20:37:59] leftylink: hmm, if someone were to tell me "hey Ray, Ruby is your Blub", I wonder how to know whether that's true. As I understand it, Blub implies I am not able to comprehend this or that feature. Then again, it's hard to know the difference between "I don't understand it" and "I understand it and judge that it does not benefit this project"
[20:38:43] leftylink: (substitute "Lefty" for "Ray" if it reads better to use my internet name)
[20:40:16] leftylink: I guess it's hard to know if you're in that situation. Just as the ant is not able to understand the human
[20:40:38] leftylink: so really the best thing to do is just to expand your understanding, no matter what
[20:41:15] leftylink: on the other hand, "Ruby is your most-used language" is a much more well-defined statement, and one that is true if said to me
[20:43:25] baweaver: What the right thing is tends to change as time goes by
[20:43:46] baweaver: In early Ruby everyone was enamored with monkey patching. That one certainly didn't age well.
[20:45:38] rufusThistle: has joined #ruby
[20:51:09] s2013: has joined #ruby
[20:58:31] yokel: has joined #ruby
[20:59:27] jenrzzz: has joined #ruby
[21:00:37] cd: has joined #ruby
[21:02:48] ur5us: has joined #ruby
[21:08:45] s2013: has joined #ruby
[21:14:14] Fernando-Basso: has joined #ruby
[21:15:32] hightower2: has joined #ruby
[21:15:43] fmcgeough: has joined #ruby
[21:16:12] fmcgeough: has joined #ruby
[21:17:22] fmcgeough_: has joined #ruby
[21:29:41] AJA4350: has joined #ruby
[21:34:29] jenrzzz: has joined #ruby
[21:40:14] ascarter: has joined #ruby
[21:45:53] ascarter_: has joined #ruby
[22:06:48] teej: has joined #ruby
[22:13:06] ascarter: has joined #ruby
[22:15:00] sagax: i can use `if` when declare some variable - example foo = "bar" if true
[22:15:18] sagax: but how to use `else` when declare some var?
[22:18:05] reber: has joined #ruby
[22:18:51] sagax: hm, i can use ||
[22:20:46] havenwood: sagax: you can just declare variables inside the else block
[22:22:12] Xeago_: has joined #ruby
[22:22:16] havenwood: sagax: `if` and `elsif` variable declarations aren't special really, but you can't do them with `else` since there's no statement with just `else`
[22:23:37] SeepingN: has joined #ruby
[22:24:34] phaul: &>> a = 1 if false; local_variables
[22:24:37] rubydoc: # => [:a] (https://carc.in/#/r/6qhr)
[22:25:13] havenwood: &>> a = 1 if b = 1; local_variables
[22:25:13] rubydoc: stderr: -e:2: warning: found `= literal' in conditional, should be == (https://carc.in/#/r/6qht)
[22:25:23] havenwood: Ruby caught me!
[22:25:39] havenwood: #=> [:a, :b]
[22:25:48] rubydoc: # => nil (https://carc.in/#/r/6qhu)
[22:25:56] rubydoc: stderr: -e:2:in `<main>': undefined local variable or method `b' for main:Object (NameError) (https://carc.in/#/r/6qhv)
[22:26:15] phaul: good old WAT video :)
[22:26:17] havenwood: >> a = a && b = b && a = b
[22:26:18] ruby[bot]: havenwood: # => nil (https://eval.in/1096462)
[22:28:30] phaul: note to self. if there is both stdout and stderr, the bot should probablt report back both
[22:30:12] phaul: https://www.destroyallsoftware.com/talks/wat
[22:30:28] orbyt_: has joined #ruby
[22:42:11] zapata: has joined #ruby
[22:48:55] xco: has joined #ruby
[22:49:27] clemens3_: has joined #ruby
[22:50:10] rubydoc: has joined #ruby
[22:50:29] phaul: &>> a = 1 if b = 1; local_variables # havenwood
[22:50:34] phaul: &>> a = 1 if b = 1; local_variables # havenwood
[22:50:34] rubydoc: # => [:a, :b] (https://carc.in/#/r/6qi0)
[22:51:42] phaul: ok that's not the output I expected
[22:53:03] phaul: here's the check in, who spots the bug first ? https://github.com/phaul/yarr/commit/ca0a366deadd371cd9ca271e1366adf134db94d8
[22:55:35] mondz: has joined #ruby
[23:00:39] bhaak: has joined #ruby
[23:06:40] spacesuitdiver: has joined #ruby
[23:09:15] lunarkitty7: has joined #ruby
[23:41:32] orbyt_: has joined #ruby
[23:44:21] masquino: has joined #ruby
[23:50:10] jenrzzz: has joined #ruby
[23:50:51] ascarter: has joined #ruby
[23:52:41] gb_away: has joined #ruby
[23:59:39] tdy: has joined #ruby