News for hackers. Stuff that matters.
Re:Lotus, a web framework for Ruby by pandatigox on Monday June 23, 2014 @11:28PM (#7936053)
Sinatra, in my opinion, gets pretty hacked together after the initial `def get '/'; puts "Hello World"; end`

Personally, I think Camping is the perfect fit for Ruby frameworks

Re:Lotus, a web framework for Ruby by nitrogen on Tuesday June 24, 2014 @12:11AM (#7936154)
It is very possible to organize a Sinatra project elegantly. It generally involves a combination of require_relative and Dir.glob().
Re:Lotus, a web framework for Ruby by jrochkind1 on Tuesday June 24, 2014 @12:21AM (#7936181)
That's interesting; I tend to agree with the crowd that wishes Rails didn't do any kind of auto-loading.

But are you suggesting that you need to add a kind of basic auto-loading to Sinatra to keep things sane?

Re:Lotus, a web framework for Ruby by vidarh on Tuesday June 24, 2014 @04:48AM (#7936738)
Rails autoloading "just happens". If you're doing explicitly require/require_relative, even on the results of Dir.glob(), the application explicitly specifies what will be loaded, and when. For my part I find that much cleaner.
Re:Lotus, a web framework for Ruby by auxbuss on Tuesday June 24, 2014 @10:04AM (#7937776)
Another way is to add a file, say init.rb, to a directory and require_relative that. It achieves the same thing, of course.
Re:Lotus, a web framework for Ruby by Argorak on Tuesday June 24, 2014 @11:25AM (#7938248)
Only if you treat it as a framework. Sinatra is a great library.