Re:Ask YC: Should I use a framework or just write the code m...
by nanijoe on Thursday November 15, 2007 @10:22PM
(#80505)
No reason to knock the 'magicality' of rails. It works for some people; And since it is only code at the end of the day, you can always get to the bottom of the magic if you do a little digging.
While we are on the topic, I have always wondered why the Django team insists on being an MTV (Model Template View) framework..don't you guys think just conforming to MVC would make life easier for people new to Django? (This is a serious question)
Re:Ask YC: Should I use a framework or just write the code m...
by icky on Friday November 16, 2007 @12:01AM
(#80533)
> No reason to knock the 'magicality' of rails.
The problem with relying on magic is that you won't know what to do when it stops working.
Re:Ask YC: Should I use a framework or just write the code m...
by HiddenBek on Friday November 16, 2007 @08:18AM
(#80611)
The Rails magic is well defined though, and it's all documented. It doesn't simply 'stop working'. It's really nothing more than a set of conventions that happen to make certain things really convenient.
One of the nice things about Django is that it's just Python. You can always look at the import statements in a module to see exactly what code is being run and where it's coming from. I've never used Ruby on Rails, but I have the impression it can be opaque in this area. ("Just create a file named makeasite.rb and put the single word 'create' in it, and Rails will do the rest!")
Personally, I'm vehemently against "magic" in a framework / programming environment, which is one of the reasons I love Python -- and one of the reasons we don't have a lot of magic in Django.
Let me know if you have any specific questions.
Adrian (Django cocreator / core developer)