From: Austin Ziegler Date: 2005-07-13T10:29:27+09:00 Subject: Re: Splitting source code On 7/12/05, Daniel Brockman wrote: > Gavin Kistner writes: >> It feels sketchy-but-acceptable to me to have FileB require FileA to >> be meaningful, as long as FileA can stand on its own. > Isn't this a typical and completely normal dependency? IMO, it's not what was originally described by the OP, which was something like: A.rb: require 'B' class Foo; def initialize; process(); end; end B.rb: class Foo; def process(); end; end IMO, classes should -- as much as is possible -- have all of their definition in a single location, using alternate locations only as necessary. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca