4 ms·
What does Rails do that Django doesn't? It seems like Python language is much easier to learn, with very clean syntax. And Django's architecture is usually si
by csense 13y ago
What does Rails do that Django doesn't? It seems like Python language is much easier to learn, with very clean syntax.
And Django's architecture is usually simple and easy to understand as well -- e.g. the official tutorials have you do a lot of things "by hand" before showing you parts of the Django standard library that automate them.
- hkarthik 13y agoI really can't speak to this as I don't really know Django. But I personally didn't find Ruby hard to learn, and in fact I found it pretty intuitive. The metaprogramming in Ruby allows for the creation of intuitive DSLs and APIs that are more difficult to achieve in other languages. While this can lead to a lot of the "Rails magic" that is often used without understanding, it can be highly productive for folks that really know it. Beyond that, I honestly don't think there's much difference between the two. Certainly not enough of a difference to agonize over the choice. The choice worth agonizing over more is whether you want a full framework or if you want to cobble together a toolkit of libraries to build your app. This choice exists regardless of language. I know many Python devs that won't touch Django and prefer Flask for everything.
- xtracto 13y ago> It seems like Python language is much easier to learn, with very clean syntax. This is the kind of stuff that used to start flamewars on Usenet ha. I respect your personal opinion, but just to put a different opinion (mine) out there: I find Python very opinionated and feels kind of "old" (like, when was the last time an OO language required you to provide a reference to the object as a parameter within the methods?). Also in my opinion, even now in 2014 it is still not clear what version of Python should people use 2.x or 3?, given that there is still a bunch of code out there that is not compatible with 3 (granted, there are tools to convert that code, but that makes just an additional step to do compared to just using Ruby). All in all, these are just opinions. Both of the stands are very respectable, but I wanted to put this out to compare with your opinion. I don't use Rails, even though I use ruby a lot, so on those frameworks I cannot comment.