Forum: Ruby Re: Adding file directory automatically

Posted by D. Deryl Downey (ddd)
on 2013-01-17 19:10
(Received via mailing list)
Be gentle guys. There was a time we didnt know this either.


Sent from Windows Mail

 *From:* Hassan Schroeder <hassan.schroeder@gmail.com>
*Sent:* January 17, 2013 12:37 PM
*To:* ruby-talk ML <ruby-talk@ruby-lang.org>
*Subject:* Re: Adding file directory automatically

On Thu, Jan 17, 2013 at 9:03 AM, Alex Gutteridge
<alexg@ruggedtextile.com> wrote:

> I assume this is a learning exercise, but if not you probably want to
start
> thinking about web frameworks and a database backend as this system
doesn't
> really scale in any sensible way. And the puts "<html>" bits burn my eyes.

+1 to that. This whole thing is so painfully un-Rubyish. And this --

> #Displaying information
> #!/media/Apache/ruby/bin/ruby
> #!/usr/local/bin/ruby
> #encoding: utf-8

is just nonsensical. A shebang line *must* be the first line of a file,
and having 2 different ones makes no sense at all.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.