News for hackers. Stuff that matters.

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 | 3 points | on HN )
Re:Ask HN: Django v/s Rails? Please bring your pitchforks by ale_jacques on Sunday April 09, 2023 @03:55PM (#35505874)
>> 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.

Re:Ask HN: Django v/s Rails? Please bring your pitchforks by Alifatisk on Monday April 10, 2023 @10:36AM (#35512853)
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.

Re:Ask HN: Django v/s Rails? Please bring your pitchforks by textread on Monday April 10, 2023 @11:04AM (#35513198)
> By ML you mean machine learning or meta language?

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.

Re:Ask HN: Django v/s Rails? Please bring your pitchforks by Alifatisk on Monday April 10, 2023 @01:54PM (#35515149)
Well, Ruby itself has ML libraries like Rumale [1]. But the amount is not as rich as Pythons pypi for obvious reasons.

[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

Re:Ask HN: Django v/s Rails? Please bring your pitchforks by ignurant on Tuesday April 11, 2023 @08:53AM (#35524457)
> 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.