- Fela Winkelmolen
- 2010-07-12 @ 21:19
Hi here is a draft of the new directory structure I've got in mind
static/ (rename to images?)
lib/: the library with the code that also the user can use
extensions.rb: extensions to string, kernel, fixnum, etc... (now in
kernel.rb numbers.rb object.rb, time.rb)
app/: the application
syntax/: syntax highlighting
db/: database stuff
web/: website integration
home.rb (maybe a dir)
console.rb (maybe a dir)
foley.rb (from sound.rb)
dingbat.rb (now called fonts.rb)
to be written
unused code like things why started to write but never end up using
might come in useful some day, so we'll want to keep the files
I didn't look too closely to the database and web integration code but I
suppose I can just move the code to two directories and then we can see if
further refactoring is needed..
I also wonder how to best handle the require statements... like what to best
require from where, any ideas?
Re: [hacketyhack] directory structure
- Steve Klabnik
- 2010-07-13 @ 05:10
> Hi here is a draft of the new directory structure I've got in mind
Hey fela, this all looks good to me. I think static should be kept as
> I also wonder how to best handle the require statements... like what to
> require from where, any ideas?
I'd keep the same thing as many rubygems (and the current hackety source)
does; a h-ety-h.rb file that mostly just requires almost everything else
that needs to be done, and everything else stems from there.