Live data from Hacker News

Thoughts about Rails from a Django guy

lenni.info

41–42 of 42 posts

Re: Thoughts about Rails from a Django guy

#41
post #36

Interesting. Both are great frameworks. My thoughts are: I like how django lacks all that directory structure and you can easily use a single file for your models. Django templates are way more powerful and safer than erb / haml, etc. I wish there was a port of django templates in ruby. If so my preferred environment would be sinatra + datamapper + django templates.

There's also mustache ( http://github.com/defunkt/mustache ) which has some similarities to django templates and is pretty popular. "safer than erb / haml, etc" Are you are referring to auto-escaping strings? If so, in Rails 3, this is on by default, and for Haml without Rails it's a simple setting.

I use Mustache and like it very much, only I find that I wish it offered support for a few of the features in Django templates such as dot notation.

I was referring to the auto-escaping as well as to the inability to run arbitrary code inside a template (for all I know this feature is added to the newest versions, though)

Re: Thoughts about Rails from a Django guy

#42
post #7

Node.js is changing the game, Ruby and Rails are just the new Cobol.

Comparing Node.js to Ruby on Rails is as useful as comparing apples to oranges. Node.js is not a web framework. Node.js has a wonderful paradigm for evented programming, but that does not mean you can not also have evented programming with Ruby or Rails. Take a look at http://github.com/igrigorik/async-rails or things related to http://github.com/eventmachine/eventmachine
Post reply on HN