T
Tom Cloyd
Trying to get up to standards, here. Reading about project layout in
Programming Ruby (3rd ed)., where reference is made to "...some strong
Ruby conventions, first seen in Minero Aoki’s setup.rb and later
enshrined in the Gems system...".
One apparently expect to see in the project root a \bin, \lib, \doc,
subdir, and quite possible a \db and \log and etc., subdirs.
My question is about the \bin subdir. I was initially puzzled. How could
a Ruby project have a binary files subdirectory? I went snooping in some
installed gems I have, and I found very simple launch scripts in the
\bin subdir - so far all ruby scripts, with the first line making clear
that Ruby is to interpret the script (I'm also just getting into Bash
tonight). OK, that all makes sense, except for the "\bin" name.
So, in the Ruby world, \bin simply means "whatever I'm using to launch
my program", if it's used at all, right? And "\bin" is simply an
anachronism - has always been done that way?
t.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< (e-mail address removed) >> (email)
<< TomCloyd.com >> (website)
<< sleightmind.wordpress.com >> (mental health weblog)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Programming Ruby (3rd ed)., where reference is made to "...some strong
Ruby conventions, first seen in Minero Aoki’s setup.rb and later
enshrined in the Gems system...".
One apparently expect to see in the project root a \bin, \lib, \doc,
subdir, and quite possible a \db and \log and etc., subdirs.
My question is about the \bin subdir. I was initially puzzled. How could
a Ruby project have a binary files subdirectory? I went snooping in some
installed gems I have, and I found very simple launch scripts in the
\bin subdir - so far all ruby scripts, with the first line making clear
that Ruby is to interpret the script (I'm also just getting into Bash
tonight). OK, that all makes sense, except for the "\bin" name.
So, in the Ruby world, \bin simply means "whatever I'm using to launch
my program", if it's used at all, right? And "\bin" is simply an
anachronism - has always been done that way?
t.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< (e-mail address removed) >> (email)
<< TomCloyd.com >> (website)
<< sleightmind.wordpress.com >> (mental health weblog)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~