Re: How do you order your class methods?

2012-08-10 Thread Robert Klemme
On Fri, Aug 10, 2012 at 5:03 PM, masta Blasta wrote: > If you have a class with many methods, how do you try to organize them? First, I try to avoid having classes with many methods. I can't remember having a Ruby class with so many methods that I started to seriously think about the layout of

Re: Working with thread

2012-08-10 Thread Robert Klemme
On Fri, Aug 10, 2012 at 2:47 PM, Bartosz DziewoƄski wrote: > 2012/8/10 ajay paswan : >> How can I ensure that the main child lives till all children finishes >> their jobs and get killed? > > Thread#join? You can remove the question mark. :-) A typical idiom looks like this threads = 10.times.m

Re: Time-efficient program

2012-08-10 Thread Robert Klemme
On Thu, Aug 9, 2012 at 11:26 PM, ajay paswan wrote: >> Then profile (you can do it using ruby-prof gem.) > In the end of the program, the program never halts, I have no clue where > it is lopping, how can i know that? i mean the code block where it is > looping or getting stuck? You could do poor