Ask HN: 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
5 comments
[ 2.4 ms ] story [ 22.8 ms ] threadNo. 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.
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.
I meant Machine Learning
> if you are looking for a monolith then Rails is a good option.
I am really interested in learning more about the monolithic approach that Rails advocates. What would be a good codebase to study?
I am looking for some sort of large monolith that is open source. Would Gitlab or Discourse codebase, qualify as a good candidate? I tried find the RealWorld demo app on Github, but couldn't find a canonical Hotwired-Rails7 implementation.
[1] https://github.com/yoshoku/rumale
Regarding Rails, To be honest, if you want to study Rails. I would suggest you nothing more than their official website. It's really good!
https://guides.rubyonrails.org/getting_started.html
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.