From: Saji Hameed Date: 2012-04-19T08:52:30+09:00 Subject: Re: Breaking large Ruby script into multiple files --f46d0401696365fec604bdfcbf0b Content-Type: text/plain; charset=UTF-8 I imagine that you are not using the object oriented features of ruby. It is better to get started with the OOP aspect. Googleing may help you find articles such as the below http://techoctave.com/c7/posts/46-object-oriented-ruby-classes-mixins-and-jedi After you are getting comfortable, you may also read Olsen's book named Design Patterns in Ruby.. All the best, saji On Thu, Apr 19, 2012 at 7:39 AM, Thomas Luedeke wrote: > On large Fortran projects, I'm accustomed to breaking them up into > separate module files. The program then utilizes USE statements to > "glue" it together. > > I'm starting to develop some larger Ruby scripts, and they get messy > very fast. Once I define many functions at the top of the script, then > start the coding, I have an unwieldy mess. > > How do you guys handle this in terms of organization and neatness? > Using multiple files and issuing system commands to run the external > Ruby files seem kinda dumb. I also am not aware of commands to use > external function files (although I'm still a relative newbie). > > Thanks in advance for any assistance! > > TPL > > -- > Posted via http://www.ruby-forum.com/. > > -- Saji N Hameed, ARC-ENV, Center for Advanced Information Science and Technology, University of Aizu, Tsuruga, Ikki-machi, Aizuwakamatsu-shi, Fukushima 965-8580, Japan Tel: +81242 37-2736 Fax:+81242 37-2760 email: saji@u-aizu.ac.jp url: http://www.u-aizu.ac.jp bib: http://www.researcherid.com/rid/B-9188-2009 --f46d0401696365fec604bdfcbf0b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I imagine that you are not using the object oriented features of ruby. It i= s better to get
started with the OOP aspect.=C2=A0=C2=A0 Googleing may h= elp you find articles such as the below

http://techo= ctave.com/c7/posts/46-object-oriented-ruby-classes-mixins-and-jedi

After you are getting comfortable, you may also read Olsen's book n= amed Design Patterns in Ruby..

All the best,
saji

On Thu, Apr 19, 2012 at 7:39 AM, Thomas Luedeke <lists@ruby-forum.com<= /a>> wrote:
On large Fortran projects, I'm accustome= d to breaking them up into
separate module files. =C2=A0The program then utilizes USE statements to "glue" it together.

I'm starting to develop some larger Ruby scripts, and they get messy very fast. =C2=A0Once I define many functions at the top of the script, the= n
start the coding, I have an unwieldy mess.

How do you guys handle this in terms of organization and neatness?
Using multiple files and issuing system commands to run the external
Ruby files seem kinda dumb. =C2=A0I also am not aware of commands to use external function files (although I'm still a relative newbie).

Thanks in advance for any assistance!

TPL

--
Posted via
http://= www.ruby-forum.com/.




--

Saji = N Hameed,
ARC-ENV, Center for Advanced Information Science and Technolog= y,
University of Aizu, Tsuruga, Ikki-machi,
Aizuwakamatsu-shi, Fukush= ima 965-8580,
Japan
=C2=A0 =C2=A0 =C2=A0 =C2=A0
Tel: +81242 37-2736
Fax:+81242 = 37-2760
=C2=A0email: saji@u-aizu.ac.jp
=C2=A0url: http://www.u-aizu.ac.jp
=C2=A0bib: http://www.researcherid.com/rid/B-9188-2009
--f46d0401696365fec604bdfcbf0b--