#ruby - 26 April 2018
« Back 1 day Forward 1 day »
[03:47:05] Radar: hays: to answer your question: yes options hash is usually how it was done in the past.
[03:47:14] Radar: However, your options hash could then contain mis-named keys and that could cause issues
[03:47:49] Radar: Ruby 1.9.3 has been EOL'd (as has Ruby 2.0 and Ruby 2.1), so I would not support 1.9.3.
[03:48:24] elomatreb: If you're on 1.9, lack of sane keyword argument checks is the least of your worries, probably
[05:53:33] baweaver: AHA! I got it to work: https://github.com/baweaver/qo/tree/pattern-matching-block-format#new-in-this-branch
[08:18:47] dminuoso: That's because people like you have deserted this channel and started with Haskell.
[08:24:37] Bish: i mean, it was a haskell talk, but he talked about a language with type constraints
[14:33:47] hays_: is there a method I can define that will be called whenever an object is destroyed?
[14:35:07] hays_: where do I define that? I am seeing something about a module called ObjectSpace? seems weird
[14:37:51] hays_: seems like there should be a place to close the connection without wrapping a bunch of code in a begin/end/finally block
[14:38:13] hays_: This is really a ActiveRecord thing, so maybe I should ask in rails if its not too straightforward
[14:40:11] dminuoso: kke: I still think that there's very little value in picking Ruby over other languages.
[14:42:05] zleap: the nice thing about multiple programming languages is choice and being able to find something that fits your needs and ability to code with it.
[16:59:13] nima_m: hey i search for the way that i can learn roby fast and free anybody can help me?
[17:01:29] Omnilord: nima_m, I found these to be fairly useful to get the basics down quickly: https://github.com/edgecase/ruby_koans
[20:50:04] Guest21276: i am new to programming, but i feel i dont get the hang of it!... i start trying with ruby! any tips?
[20:53:00] Guest21276: how does ruby works? it doesnt seems to work like python in the terminal, anyone?
[20:56:41] havenwood: Guest21276: That's true, it's not quite like Python for entering interactive mode. Type `irb` instead of `ruby` for interactive ruby.
[21:08:38] havenwood: Guest21276: tryruby.org will give you more ideas on what to start typing into the REPL
[21:09:56] Guest21276: ok irb is where i can interact with ruby! but i have to install something else like rails?