« Back to channel list

#ruby - 25 April 2019

« Back 1 day Forward 1 day »
[00:00:26] kyrylo: has joined #ruby
[00:10:01] weteamsteve: has joined #ruby
[00:17:58] cow[moo]: has joined #ruby
[00:23:49] houhoulis: has joined #ruby
[00:27:10] _whitelogger: has joined #ruby
[00:27:44] diego1: has joined #ruby
[00:30:14] diego1: has left #ruby: ()
[00:30:44] dviola: has joined #ruby
[00:34:31] AJA4351: has joined #ruby
[00:34:46] UnknownSoldier: has joined #ruby
[00:38:10] Swyper: has joined #ruby
[00:43:03] fphilipe_: has joined #ruby
[00:43:44] jottr: has joined #ruby
[00:52:07] sgen: has joined #ruby
[01:02:27] jottr: has joined #ruby
[01:05:10] trif: has joined #ruby
[01:07:55] laaron: has joined #ruby
[01:12:31] mangold: has joined #ruby
[01:16:21] orbyt_: has joined #ruby
[01:41:35] houhoulis: has joined #ruby
[01:42:38] jenrzzz_: has joined #ruby
[01:43:56] DTZUZO: has joined #ruby
[01:55:13] AndBobsYourUncle: has joined #ruby
[01:56:11] pwnd_nsfw: has joined #ruby
[02:00:58] dsmythe: has joined #ruby
[02:09:57] galaxie: has joined #ruby
[02:11:24] arand: has joined #ruby
[02:16:51] dar123: has joined #ruby
[02:18:07] mangold: has joined #ruby
[02:31:54] plasticcat420: has joined #ruby
[02:36:48] jenrzzz: has joined #ruby
[02:40:43] jidar: has joined #ruby
[02:42:27] jidar: has joined #ruby
[02:43:03] jidar: has joined #ruby
[03:03:20] jottr: has joined #ruby
[03:06:48] mangold: has joined #ruby
[03:10:14] braincrash: has joined #ruby
[03:13:18] fphilipe_: has joined #ruby
[03:18:18] jenrzzz: has joined #ruby
[03:22:04] ivanskie: has joined #ruby
[03:26:11] arand: has joined #ruby
[03:26:52] DTZUZO: has joined #ruby
[03:31:22] jenrzzz: has joined #ruby
[03:43:11] skryking: has joined #ruby
[03:53:27] mangold: has joined #ruby
[03:55:58] arand: has joined #ruby
[04:01:21] agent_white: has joined #ruby
[04:08:24] MFGA: has joined #ruby
[04:10:10] MFGA: has joined #ruby
[04:13:06] ivanskie: has joined #ruby
[04:17:03] ivanskie: has joined #ruby
[04:17:48] sauvin: has joined #ruby
[04:32:07] fphilipe_: has joined #ruby
[04:32:16] dsmythe: has joined #ruby
[04:39:12] dar123: has joined #ruby
[04:40:08] orbyt_: has joined #ruby
[04:43:42] galaxie: has joined #ruby
[04:53:24] duderonomy: has joined #ruby
[04:59:43] reber: has joined #ruby
[05:02:05] arand: has joined #ruby
[05:04:14] jottr: has joined #ruby
[05:08:06] vondruch: has joined #ruby
[05:08:31] xfbs: has joined #ruby
[05:08:58] conta: has joined #ruby
[05:10:15] twe4ked: has joined #ruby
[05:12:40] Nightmare: has joined #ruby
[05:17:04] vondruch: has joined #ruby
[05:20:21] luminousnine: has joined #ruby
[05:20:21] luminousnine: has joined #ruby
[05:28:13] jenrzzz: has joined #ruby
[05:45:24] vondruch: has joined #ruby
[05:47:12] vondruch: has left #ruby: ()
[05:48:00] dar123: has joined #ruby
[05:49:25] vondruch: has joined #ruby
[06:04:43] schleppel: has joined #ruby
[06:08:35] fphilipe_: has joined #ruby
[06:10:37] PuercoPop: has joined #ruby
[06:13:41] jcarl43: has joined #ruby
[06:25:16] iMadper: has joined #ruby
[06:31:57] suukim: has joined #ruby
[06:39:31] bga57: has joined #ruby
[06:40:06] jenrzzz: has joined #ruby
[06:46:26] gigetoo: has joined #ruby
[06:46:26] yokel: has joined #ruby
[06:56:10] Swyper: has joined #ruby
[06:59:21] jenrzzz: has joined #ruby
[07:01:36] c0dec: has joined #ruby
[07:05:07] jottr: has joined #ruby
[07:05:56] clemens3_: has joined #ruby
[07:07:03] mangold: has joined #ruby
[07:16:31] jottr: has joined #ruby
[07:16:46] fphilipe_: has joined #ruby
[07:16:52] sleetdrop: has joined #ruby
[07:22:17] jenrzzz: has joined #ruby
[07:23:49] jefffrails35: has joined #ruby
[07:25:39] pwnd_nsfw`: has joined #ruby
[07:28:43] aupadhye: has joined #ruby
[07:33:45] jenrzzz: has joined #ruby
[07:35:15] lxsameer: has joined #ruby
[07:37:44] _joes_: has joined #ruby
[07:37:59] andikr: has joined #ruby
[07:42:39] jenrzzz: has joined #ruby
[07:50:25] fphilipe_: has joined #ruby
[07:52:31] jottr: has joined #ruby
[07:54:01] claudiuinberlin: has joined #ruby
[08:00:06] _joes_: has joined #ruby
[08:01:24] mikecmpbll: has joined #ruby
[08:12:03] Furai: has joined #ruby
[08:13:59] jenrzzz: has joined #ruby
[08:14:48] _joes_: has joined #ruby
[08:28:27] duderonomy: has joined #ruby
[08:30:09] jenrzzz: has joined #ruby
[08:38:27] iMadper: has joined #ruby
[08:40:26] dsmythe: has joined #ruby
[08:42:08] pwnd_nsfw: has joined #ruby
[08:48:34] jottr: has joined #ruby
[08:50:04] fphilipe_: has joined #ruby
[09:01:12] dhollin3: has joined #ruby
[09:02:30] jenrzzz: has joined #ruby
[09:07:23] laaron: has joined #ruby
[09:07:24] Dbugger: has joined #ruby
[09:09:47] jenrzzz: has joined #ruby
[09:11:06] schleppel: has joined #ruby
[09:18:14] hightower2: has joined #ruby
[09:27:04] jottr_: has joined #ruby
[09:43:27] pwnd_nsfw: has joined #ruby
[09:49:56] leimh: has joined #ruby
[09:53:50] gb_away: has joined #ruby
[10:00:51] _joes_: has joined #ruby
[10:10:12] dellavg_: has joined #ruby
[10:13:06] waheedi: has joined #ruby
[10:13:44] conta: has joined #ruby
[10:24:50] jottr_: has joined #ruby
[10:25:28] BH23: has joined #ruby
[10:28:55] zululee_: has joined #ruby
[10:34:34] jottr_: has joined #ruby
[10:38:34] laaron: has joined #ruby
[10:40:36] jenrzzz: has joined #ruby
[10:44:03] phaul: has joined #ruby
[10:51:43] pradiprwt: has joined #ruby
[10:53:28] pradiprwt: Hi Everyone, I am working on a application which is developed in ruby, there we found some memory leak in the application. Can any one please suggest me what is the best way to deal with memory leak
[10:53:46] crankharder: has joined #ruby
[10:54:37] hightower2: pradiprwt, it depends a lot why/how the leak is happening. You first need to run GC.start at some point in the code (or in-process irb/pry shell, if you provisioned one) to see if the memory use is real or not (i.e. if memory use is high after GC.start then the leak may be real)
[10:55:52] hightower2: then, you need to see whether your project uses some bindings to some libraries, and try to identify likely cause of the leak (what objects are not getting freed in Ruby due to reference count not dropping to 0, or what objects do get destroyed in ruby without also destroying the memory they allocated in/via libraries and bindings)
[10:56:34] hightower2: Also, in Ruby there is a class named ObjectSpace, you can iterate through it and count how many of each object you have, and which objects are growing in count
[10:57:08] hightower2: Through this process, you might even find out that your memory leak is not serious (i.e. not in libs/bindings) but simply because you are not removing some Ruby objects
[10:58:12] hightower2: And also as one of basic things, check that you use "# frozen_string_literals: true" on top of Ruby files, so that when you call lines like "var = 'string'" it would not actually create/allocate a new ruby string object on every pass through that function/line.
[10:59:01] hightower2: This will help you reduce the churn (creating/destroying thousands of objects) regardless of whether it will help the memory leak or not
[11:00:45] hightower2: And finally, you will probably not be able to completely prevent Ruby's memory size from growing over long term (weeks/months of runtime), so you will want to implement some sort of solution for being able to transparently restart processes without user impact.
[11:01:49] Jonopoly: has joined #ruby
[11:02:15] dsmythe: has joined #ruby
[11:06:06] Jonopoly: Does anyone using cucumber and ruby?
[11:06:17] Jonopoly: I'm wondering if its possible to pass variables through
[11:06:27] Jonopoly: and read them in cucumber/.feature files
[11:06:31] Jonopoly: in the example table
[11:07:10] Kazokee: has joined #ruby
[11:14:41] pradiprwt: Thanks hightower2. You suggestion is really helpful, with my application the situation is same as you explained.. memory size is growing in long term and we are restarting the service as well when it is reaching to defined threshold.
[11:15:05] Jambo: has joined #ruby
[11:15:06] _joes_: has joined #ruby
[11:15:25] BH23: has joined #ruby
[11:15:34] pradiprwt: Recently I was doing testing with application by keeping busy the application, i found the memory is increasing very fast
[11:16:32] pradiprwt: hightower2: Do you know any profiling tool for ruby?
[11:17:52] hightower2: I don't know offhand
[11:18:52] hightower2: pradiprwt, yeah, with GC.start and inspecting the ObjectSpace you will be able to determine whether the issue is just in Ruby objects being accumulated somewhere (and therefore never freed/destroyed). If you see that even after calling GC.start the count of some objects in ObjectSpace is growing, then you simply need to find where in the code these objects are getting accumulated instead of deleted/nil-ed
[11:20:05] hightower2: And if you find that the issue is not there, that is, if the issue is in some memory from bindings/libraries remaining allocated, then you most probably just need to figure out which destroy functions you need to call before you delete Ruby objects which used those bindings.
[11:20:27] hightower2: pradiprwt, by the way, is your app using 'curb'? (Ruby bindings for curl)
[11:23:21] AJA4350: has joined #ruby
[11:24:12] pradiprwt: hightower2: No it is not using curd
[11:24:40] pradiprwt: The application is simple linux where running as a process
[11:24:42] hightower2: ok, the leak is not related to curb then :)
[11:25:20] pradiprwt: I am not sure where is the leak but concern is increasing memory use
[11:26:15] tuor: has joined #ruby
[11:26:27] hightower2: pradiprwt, install 'pry', then at some point in your code run 'pry' and this will give you interactive prompt into the current app's process. From that prompt, first inspect ObjectSpace (there is even some ready-made function defined on ObjectSpace to print summary), then call GC.start, and then inspect ObjectSpace again
[11:26:49] apparition: has joined #ruby
[11:27:11] hightower2: For example, you can run 'pry' from code after 10k iterations of some main function which you cal
[11:27:28] pradiprwt: hightower2: I am working on ruby from last 6 month... If you can share some reference that will be very helpful
[11:28:47] hightower2: pry; GC.start; ObjectSpace.count_objects; GC.start
[11:29:00] hightower2: See e.g. https://ruby-doc.org/core-2.6.3/ObjectSpace.html#method-c-count_objects
[11:29:26] hightower2: also if count_objects will give a too brief summary, you can run manually something like:
[11:29:38] kyrylo: has joined #ruby
[11:30:45] hightower2: ObjectSpace.each_object{|o| count[o.class.to_s]+=1}; classes= count.keys; classes.sort!{ |a,b| count[b] <=> count[a]}; warn classes.map{ |c| [ c, count[c]]}.inspect
[11:31:06] hightower2: (and do "count= Hash.new 0" before that line, to initialize "count")
[11:37:37] pradiprwt: thanks hightower2, i will let you know I will try all your suggestion.. some of these I need to learn
[11:38:13] pradiprwt: hightower2: And, these test should perform on running application?
[11:39:45] prestorium: has joined #ruby
[11:41:48] hightower2: pradiprwt, yes, you must have a running app... or some minimal reproducible example of your code which exhibits memory increase
[11:44:31] voker57: has joined #ruby
[11:44:50] towo: has joined #ruby
[11:47:36] ldnunes: has joined #ruby
[11:50:04] guardian: has joined #ruby
[11:50:25] Tuor_: has joined #ruby
[11:50:46] queip: has joined #ruby
[11:54:08] AJA4350: has joined #ruby
[12:05:03] wildermind: has joined #ruby
[12:07:43] _joes_: has joined #ruby
[12:12:27] dsmythe: has joined #ruby
[12:17:46] schleppel: has left #ruby: ("Konversation terminated!")
[12:18:55] edwardly: has joined #ruby
[12:18:55] edwardly: has joined #ruby
[12:27:41] Tuor_: has joined #ruby
[12:30:10] leimh: has joined #ruby
[12:35:41] AJA4350: has joined #ruby
[12:38:48] UnknownSoldier: has joined #ruby
[12:42:35] ldnunes: has joined #ruby
[12:53:25] queip: has joined #ruby
[12:59:26] catphish: has joined #ruby
[12:59:45] pwnd_nsfw`: has joined #ruby
[13:00:09] catphish: is it possible to tell ruby to stop reading a script from STDIN and start executing it (other than closing the pipe)?
[13:01:31] AJA4351: has joined #ruby
[13:01:35] catphish: oh i think this is probably what i want, the reason is that i want to mix code and data
[13:01:38] catphish: https://www.honeybadger.io/blog/data-and-end-in-ruby/
[13:02:24] catphish: __END__ seems to be all that's needed
[13:05:07] Jonopoly: Does Ruby support """ """ like python?
[13:07:23] catphish: what does that do?
[13:07:54] cd: has joined #ruby
[13:07:58] catphish: i suspect the answer is "yes, but with its own syntax", but i have no idea what that does :)
[13:12:28] cow[moo]: has joined #ruby
[13:13:13] dsmythe: has joined #ruby
[13:15:00] ryouba: is there any good writeup on when to use begin...rescue vs. when to use throw...catch?
[13:16:35] phaul: use begin rescue for error/exception handling. Use throw/catch for flow control
[13:16:59] ryouba: phaul: even when the error/exception handling is not intended to end program execution?
[13:17:00] catphish: ryouba: i can summarize: rescue is for handling errors, throw/catch is more like "break" for flow control
[13:17:32] Jonopoly: catphish: It basically lets you write any format style
[13:17:49] Jonopoly: catphish: it's useful for when writing paragraphs, just tested it and it works which is good...
[13:18:18] catphish: i see, i'm not very familair with doing that
[13:19:38] phaul: ryouba: yeah, whether you stop the program or not is a different question.
[13:23:41] Azure: has joined #ruby
[13:29:50] garyserj: when would you use throw/catch for flow control as opposed to an if statement?
[13:30:51] catphish: throw / catch is used to break out of the middle of a nested loop
[13:31:39] garyserj: why does this give a syntax error? [3,2,1].each {|x| puts x.to_s; puts x.to_s}
[13:32:03] phaul: &>> [3,2,1].each {|x| puts x.to_s; puts x.to_s}
[13:32:08] catphish: garyserj: it doesn't
[13:32:08] rubydoc: # => 3 (https://carc.in/#/r/6sd4)
[13:33:31] catphish: one would normally use "break" to break out of one level of loop (to jump down to the current end statement) but for more complicated breaking out, throw/catch can be used, i'm not sure i've *ever* needed to use it, always seems too messy
[13:33:35] garyserj: ah how strange. it works in irb and fails in byebug
[13:33:47] pupsikov: has joined #ruby
[13:35:00] AJA4351: has joined #ruby
[13:36:54] garyserj: byebug has some strange issue with a semi-colon, so in byebug you have to do [3,2,1].each { |x| puts x.to_s\; puts x.to_s }
[13:37:09] garyserj: i.e. escaping the semi-colon
[14:00:39] dsmythe: has joined #ruby
[14:04:14] stanc: has joined #ruby
[14:11:59] Swyper: has joined #ruby
[14:22:25] queip: has joined #ruby
[14:22:58] dsmythe: has joined #ruby
[14:25:42] Inline: has joined #ruby
[14:27:34] Swyper: has joined #ruby
[14:29:36] ivanskie: has joined #ruby
[14:30:38] SeepingN: has joined #ruby
[14:32:49] Swyper: has joined #ruby
[14:38:31] fanta1: has joined #ruby
[14:40:08] AJA4350: has joined #ruby
[14:41:08] jelera: has joined #ruby
[14:42:53] jelera: has joined #ruby
[14:43:54] laaron: has joined #ruby
[14:45:23] Swyper: has joined #ruby
[14:47:58] duderonomy: has joined #ruby
[14:52:14] AJA4350: has joined #ruby
[14:54:05] houhoulis: has joined #ruby
[15:07:42] reber: has joined #ruby
[15:08:49] rippa: has joined #ruby
[15:17:07] MShuttleworth: has joined #ruby
[15:18:01] MShuttleworth: has joined #ruby
[15:18:12] queip: has joined #ruby
[15:18:22] AJA4351: has joined #ruby
[15:26:26] noobdevel: has joined #ruby
[15:31:43] duderonomy: has joined #ruby
[15:36:55] jelera: has joined #ruby
[15:37:39] Swyper: has joined #ruby
[15:40:14] mikecmpbll: has joined #ruby
[15:40:45] orbyt_: has joined #ruby
[15:43:45] ricekrispie2: has joined #ruby
[15:45:58] jelera: has joined #ruby
[15:47:20] wolfshappen_: has joined #ruby
[15:50:30] mikecmpbll: has joined #ruby
[15:50:49] AJA4351: has joined #ruby
[15:53:28] conta: has joined #ruby
[15:54:12] doodlebug: has joined #ruby
[16:01:05] jelera: has joined #ruby
[16:04:11] dsmythe: has joined #ruby
[16:06:20] Rapture: has joined #ruby
[16:10:38] gnufied: has joined #ruby
[16:16:57] adam12: Swyper: o/
[16:19:35] jottr: has joined #ruby
[16:28:18] wald0: has joined #ruby
[16:28:32] noobdevel: has joined #ruby
[16:32:23] jottr_: has joined #ruby
[16:35:26] dar123: has joined #ruby
[16:42:28] conta2: has joined #ruby
[16:44:09] ramfjord: has joined #ruby
[16:44:15] jottr: has joined #ruby
[16:48:55] tdy1: has joined #ruby
[16:51:48] jottr: has joined #ruby
[16:53:00] jelera: has joined #ruby
[16:53:45] jelera: has joined #ruby
[16:54:29] jelera: has joined #ruby
[16:55:14] jelera: has joined #ruby
[16:56:03] jelera: has joined #ruby
[17:07:55] jottr_: has joined #ruby
[17:08:58] mikecmpbll: has joined #ruby
[17:14:16] AJA4350: has joined #ruby
[17:15:06] code_zombie: has joined #ruby
[17:16:33] houhoulis: has joined #ruby
[17:21:11] _whitelogger: has joined #ruby
[17:22:46] jcarl43: has joined #ruby
[17:23:20] Swyper: has joined #ruby
[17:33:19] Swyper: has joined #ruby
[17:34:45] AzzA: has joined #ruby
[17:36:22] jenrzzz: has joined #ruby
[17:37:51] laaron: has joined #ruby
[17:41:23] jenrzzz: has joined #ruby
[17:44:14] Swyper: has joined #ruby
[17:48:10] Azure: has joined #ruby
[17:50:28] jinie_: has joined #ruby
[18:02:25] houhoulis: has joined #ruby
[18:04:57] houhoulis: has joined #ruby
[18:27:55] gix: has joined #ruby
[18:35:34] jenrzzz: has joined #ruby
[18:38:07] doodlebug: has joined #ruby
[18:40:55] aither64: has joined #ruby
[18:42:56] ghormoon: has joined #ruby
[18:51:14] AzzA: has joined #ruby
[18:56:27] dkmueller: has joined #ruby
[19:03:56] AJA4350: has joined #ruby
[19:14:22] havenwood: has joined #ruby
[19:14:22] havenwood: has joined #ruby
[19:20:09] havenwood: Swyper: 610 days until Ruby 3's planned release!
[19:20:21] duderonomy: has joined #ruby
[19:20:37] Swyper: I still have to learn the current version of Ruby :D
[19:20:47] Swyper: btw is this a good place to get help with Rails aswell havenwood?
[19:21:20] shanks8080: has joined #ruby
[19:21:37] havenwood: Swyper: Yes, it's a fine place. The #rubyonrails channel is another, slightly more ontopic option.
[19:22:10] havenwood: How Rails is the question? Very, very Rails? Slightly Rails? :P
[19:23:03] havenwood: Interesting it's not Ruby on Trains. I guess your app is the train?
[19:23:12] havenwood: Ruby par Avion
[19:23:43] adam12: I'm happy that Rails has become so ubiquitous that I _rarely_ see the RoR acronym anymore.
[19:23:46] brandoncc: has joined #ruby
[19:24:10] havenwood: https://collectiveidea.com/blog/archives/2012/04/01/walken-on-rails
[19:24:14] miah: this is ruby on train https://github.com/inspec/train
[19:24:23] Swyper: I have not even started rails yet lol
[19:24:32] Swyper: but I do plan to shortly
[19:24:41] Swyper: still going through OOP in Ruby
[19:24:51] havenwood: "A Ruby on a rails - you don't do that! A gem, too precious for a train..."
[19:25:25] miah: also what if you do a Sinatra rather than a Rails? does all this sillyness still apply?
[19:25:45] havenwood: ACTION chants Roda, Roda!
[19:26:15] havenwood: miah: I think Sinatra is more hat focused!
[19:26:33] akem: has joined #ruby
[19:26:45] leftylink: "You can put ruby on rails, and it will stay on the rails, unless it rolls off."
[19:26:52] leftylink: the faq article that that quote came from is all right
[19:31:58] sameerynho: has joined #ruby
[19:41:46] yokel: has joined #ruby
[19:46:11] fphilipe: has joined #ruby
[19:46:25] Whone: has joined #ruby
[19:50:41] clemens3_: has joined #ruby
[19:54:24] jenrzzz: has joined #ruby
[19:56:39] conta: has joined #ruby
[19:57:25] adam12: https://github.com/oracle/truffleruby/blob/85bbbf0a/lib/truffle/truffle/lazy-rubygems.rb I like it. I wonder if CRuby could adopt something similar.
[19:57:45] adam12: (https://eregon.me/blog/2019/04/24/how-truffleruby-startup-became-faster-than-mri.html ctrl-f "Autoloading RubyGems" for context)
[19:58:06] jottr_: has joined #ruby
[20:07:15] laaron: has joined #ruby
[20:18:42] dluan: has joined #ruby
[20:18:54] dluan: has left #ruby: ()
[20:21:35] jenrzzz: has joined #ruby
[20:23:15] yokel: has joined #ruby
[20:35:55] doodleb99: has joined #ruby
[20:44:38] pupsikov: has joined #ruby
[20:51:45] hightower2: has joined #ruby
[20:52:11] RyanMcCoskrie: has joined #ruby
[20:55:17] doodlebug: has joined #ruby
[21:07:47] havenwood: has joined #ruby
[21:07:48] havenwood: has joined #ruby
[21:11:52] Fernando-Basso: has joined #ruby
[21:12:23] doodleb61: has joined #ruby
[21:28:04] DTZUZO: has joined #ruby
[21:37:11] weteamsteve: has joined #ruby
[21:40:18] fphilipe: has joined #ruby
[21:41:23] armyriad: has joined #ruby
[21:41:56] ramfjord_: has joined #ruby
[21:42:13] jelera: has joined #ruby
[21:43:04] jottr_: has joined #ruby
[21:43:11] sgen: has joined #ruby
[21:46:25] Azure: has joined #ruby
[21:51:49] truenito: has joined #ruby
[21:53:02] tail: has joined #ruby
[22:00:16] jelera: has joined #ruby
[22:01:12] jelera: has joined #ruby
[22:01:43] jelera: has joined #ruby
[22:02:34] jelera: has joined #ruby
[22:03:11] dviola: has joined #ruby
[22:06:08] bvdw6: has joined #ruby
[22:10:48] evdubs: has joined #ruby
[22:12:30] ramfjord: has joined #ruby
[22:16:54] jenrzzz: has joined #ruby
[22:23:08] fphilipe: has joined #ruby
[22:34:31] sgen: has joined #ruby
[22:41:29] jottr_: has joined #ruby
[22:43:47] clemens3: has joined #ruby
[22:47:07] weteamsteve1: has joined #ruby
[22:47:34] fphilipe: has joined #ruby
[22:53:22] jottr: has joined #ruby
[22:56:45] Swyper: https://dpaste.de/XHfk
[22:56:55] Swyper: anyone with patience feel like walking me through all the issues with my code ;x
[22:58:59] Swyper: havenwood if your on =p
[22:59:09] phaul: that secret_word in the class with "x" is just a local variable in that class scope.
[22:59:54] phaul: usually ppl don't put explicit parens on no argument methods.
[23:00:43] phaul: Swyper: any particular issue you are having with the code?
[23:00:57] havenwood: like phaul said, the line 3 `secret_word` is never used. the line 5 initialization is self-referential.
[23:01:14] Swyper: Sorry I removed line 3 its not needed
[23:01:17] Swyper: anything else?
[23:01:33] havenwood: #sample's default is 1, so just: DICTIONARY.sample
[23:01:40] havenwood: Swyper: +1 remove the empty parens
[23:01:52] havenwood: Swyper: check out attr_reader
[23:02:24] havenwood: Swyper: either take an #initialize param for `secret_word` or make it a CONSTANT, I'd think
[23:03:18] Swyper: https://dpaste.de/OjbX
[23:03:27] Swyper: here is the updated code, along with the specs I am failing
[23:03:34] Swyper: mostly just trying to get #initialize working atm
[23:11:31] phaul: Swyper: if you still need help post the error from the failing test, we could help you with hints moving in the right direction. The code you posted with spec results doesn't seem to be related?
[23:12:52] Cthulu201: has joined #ruby
[23:26:57] jottr: has joined #ruby
[23:54:56] dsmythe: has joined #ruby
[23:59:55] orbyt_: has joined #ruby