Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rails is definitely not for beginners and the code size is an indicator - there is a steep curve to understand everything that Rails 3.1 uses per default - especially the (initially) arcane handling of javascript runtimes to compile coffeescript...

But: Sinatra ain't beginner-friendly either, I also don't think thats the goal. Sinatra is basically a minimal base framework for matching HTTP requests, generating responses and building a Rack stack around the base class. But it doesn't give you a lot beyond that. As such, it requires deep knowledge of how to use HTTP and Rack to do more fancy stuff.

I also don't think that there are "beginner-friendly" frameworks beyond the most simple ones. The problem is that each feature that a framework encodes also requires the user to learn how it works. Most beginners don't even understand the benefits, drawbacks and best practices when it comes to HTTP - how would they understand all the things that Rails has amassed over the years?[1]

If any, I would recommend pure Rack: its a one page specification that can be read and understood in an hour.

As a shameless plug: if you consider Rails too feature-laden, consider Padrino - it is definitely worth a look. (Disclaimer: i have commit access to the Padrino repository and sometimes use it)

[1] I don't consider users coming from other frameworks (even in other languages) as "beginners" - usually, they already know the domain language - for example what CSRF is and what Rails does against it.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: