Live data from Hacker News

Ruby on Rails in a week

simplethread.com

41–50 of 176 posts

Re: Ruby on Rails in a week

#41

I love rails, but despite its presense for over a decade, it doesn't feel mature. Something as basic as a native left join in ActiveRecord wasn't added until Rails 5.0, on June 30, 2016. Something as basic as native multiple database support wasn't released until Rails 6.0, on August 16, 2019, 15 years after its initial release... These are just two examples.

Multi-database support is not "basic". At what point do you need that? What percentage of users do?

Regardless, it was fully supported in gems for years before it went into Rails. It's nice to have it in core. But to say that Rails doesn't feel mature without it?

Come on.

Re: Ruby on Rails in a week

#42

I love rails, but despite its presense for over a decade, it doesn't feel mature. Something as basic as a native left join in ActiveRecord wasn't added until Rails 5.0, on June 30, 2016. Something as basic as native multiple database support wasn't released until Rails 6.0, on August 16, 2019, 15 years after its initial release... These are just two examples.

Do you have any examples of features that haven't been added yet, which prevent Rails from being considered mature?

Re: Ruby on Rails in a week

#43

I love rails, but despite its presense for over a decade, it doesn't feel mature. Something as basic as a native left join in ActiveRecord wasn't added until Rails 5.0, on June 30, 2016. Something as basic as native multiple database support wasn't released until Rails 6.0, on August 16, 2019, 15 years after its initial release... These are just two examples.

[deleted]

Re: Ruby on Rails in a week

#44
post #2

Having picked up Rails 9 years ago and having been using it literally daily ever since, it's joyful to read from someone that is just starting. I also started with https://www.railstutorial.org/book , highly recommend it. I also loved Metaprogramming Ruby (Paolo Perrotta) - it's more advanced and starts to open your mind to how Rails magic DSL's were built. I just bought today "Rebuilding Rails" ( https://rebuilding-…

I learned RoR from the wonderful Agile Web Development with Rails (2nd edition). David Black’s “Ruby for Rails” and a little later “Eloquent Ruby” helped me to better grasp the difference between Ruby the language and Rails the framework.

I was a kid, and read the first two books 14 years ago. One on a holiday in Kenya and the other in Egypt. No distractions, just travel, family and reading.

These days it seems like a lot of junior developers want to learn it more interactively. I hope books stay popular. In my opinion, they do a great job at explaining the why & the reasoning, instead of just showing you how.

Re: Ruby on Rails in a week

#45

I love rails, but despite its presense for over a decade, it doesn't feel mature. Something as basic as a native left join in ActiveRecord wasn't added until Rails 5.0, on June 30, 2016. Something as basic as native multiple database support wasn't released until Rails 6.0, on August 16, 2019, 15 years after its initial release... These are just two examples.

Rails _did_ support multiple databases up until then, it just wasn't _as easy_ as everything else in rails. You just defined another database in database.yml (say "second_database") and then ran something like

  class Foo 
Still pretty straight forward and simple - just opaque.

A lot was available in the Rails ecosystem or using Rails code without being explicitly supported by Rails itself. Much of the last few years has been including support for stuff like this that was already being used. To me, that's what a mature framework does.

Re: Ruby on Rails in a week

#46
> is there a version manager I should be using?

> I am familiar with nvm and pyenv for managing Node and Python versions, respectively, however the tutorial I was following did not mention any Ruby version manager. I took to the internet and found the highly popular, rbenv.

If you want "just" a version manager for ruby, I'd go with rbenv. But if you use, say, node and python too - I'd go with asdf:

https://github.com/asdf-vm/asdf

https://github.com/asdf-vm/asdf-ruby

Keeps the stampede of VMs out of your bashrc.

Re: Ruby on Rails in a week

#48
post #6
post #2

Having picked up Rails 9 years ago and having been using it literally daily ever since, it's joyful to read from someone that is just starting. I also started with https://www.railstutorial.org/book , highly recommend it. I also loved Metaprogramming Ruby (Paolo Perrotta) - it's more advanced and starts to open your mind to how Rails magic DSL's were built. I just bought today "Rebuilding Rails" ( https://rebuilding-…

Those are great resources. One I'd add to it, for general ruby programming, is the Well Grounded Rubyist ( https://www.manning.com/books/the-well-grounded-rubyist-thir... ) . It's been kept up to date (3rd edition was released in 2019) and I found it very readable and informative.

Also I will add Practical Object Oriented Design in Ruby, by Sandi Metz (https://www.poodr.com/). It was a great help to me when I was first beginning to self teach programming years ago. A lot of it applies no matter the language; I haven't written Ruby in probably 4 years but the principles in that book guide my programming to this day.

Re: Ruby on Rails in a week

#49
On an "attitude" level, it's very useful to understand the doctrine of Ruby on Rails (RoR), as written by DHH [1]. Especially if you're coming from some other paradigms / languages etc., RoR can feel quite different. Understanding the philosophy is a nice window to kickstart the "way" of RoR.

On a more practical level, I've found the official Ruby on Rails guides [2] to be super helpful. I started a RoR job almost a year ago without having done any Ruby at all (I had a Python background). I probably should have gone through the tutorials in the OP and in other comments (rails tutorial book comes to mind). But since I didn't, I used the RoR guides A LOT. And they were super useful. Everything from routes, to controllers, to ActiveModel and migrations. They give you a good starting point to get most of the job done. Highly recommend looking at the relevant guides if you are working on specific RoR things!

1: https://rubyonrails.org/doctrine/

2: https://guides.rubyonrails.org/

Re: Ruby on Rails in a week

#50
post #46

> is there a version manager I should be using? > I am familiar with nvm and pyenv for managing Node and Python versions, respectively, however the tutorial I was following did not mention any Ruby version manager. I took to the internet and found the highly popular, rbenv. If you want "just" a version manager for ruby, I'd go with rbenv. But if you use, say, node and python too - I'd go with asdf: https://github.com…

I've since moved my ruby projects over to asdf for its simplicity, and the fact that you're going to be stuck using something to manage node anyways.
Post reply on HN