HACKER Q&A
📣 textread

Django v/s Rails? Please bring your pitchforks


The order was chosen alphabetically.

Is the Django equivalent of Hotwired.dev as polished? Whats the Django story around mobile apps?

Is Rails still into magic? How does Ruby remain relevant in the ML wave?

Repeat after me:- I solemnly swear that I wont be downvoting comments in favor of the other framework.

Previous discussion from 2019: https://news.ycombinator.com/item?id=20921454


  👤 ale_jacques Accepted Answer ✓
>> Is the Django equivalent of Hotwired.dev as polished? Whats the Django story around mobile apps?

No. Even Hotwire is not equivalent to Rails. You could even use Hotwire WITH Django. Take a look at https://htmx.org and/or https://unpoly.com (there are others) for libraries that has the same HTML-over-the-wire moto, just like Hotwire.

>> Is Rails still into magic? How does Ruby remain relevant in the ML wave?

ML wave? Would ML mean Machine Learning? If so, makes no sense to compare a web framework to something else not web related.


👤 ignurant
> Is Rails still into magic?

Yes, but you too [can join the magicians guild](https://guides.rubyonrails.org/). They are very open. In fact, they even share with anyone [every single trick they know](https://github.com/rails/rails).

Some call it Rails Magic, but others call simply call it a framework. There’s no arcane magic here — it’s all in the book.


👤 Alifatisk
By ML you mean machine learning or meta language?

Rails is a fine framework with "batteries included", if you are looking for a monolith then Rails is a good option. I have no experience with Django but I see no reason to believe why Django would not be as capable as Rails.

As of Hotwire, It's not only for Rails, other frameworks like Laravel & Django can use it too, Hotwire is more an idea of alternative approach to SPAs.