Live data from Hacker News

Ruby on Rails 5.1

edgeguides.rubyonrails.org

31–35 of 35 posts

Re: Ruby on Rails 5.1

#31
post #20

Earlier quoted context omitted.

I haven't really been following yarn or web pack. Can you give an example of how it changed your life?

Using npm alone is like using bundler without a Gemfile.lock. If one person does `npm install` today, and a new teammate does `npm install` in a month, the new teammate will install different versions . With yarn, there is a yarn.lock to make sure everyone gets the same versions when they run `yarn install`. Also, yarn is way faster.

There is npm shrinkwrap, but the yarn folks will tell you yarn is better.

Re: Ruby on Rails 5.1

#32

Earlier quoted context omitted.

You're right, but curiously every post announcing Rails 5.1 at the time got nowhere on HN: https://hn.algolia.com/?query=rails%205.1&sort=byPopularity&... I think there's now too much going on and too few people reading /newest for the HN front page to be a resaonably accurate representation of the big stories if a key Rails release didn't even make it at the time :) Seen quite a few similar instances as well. (The r…

Or more people are just moving on from Rails. I used to religiously follow every release. That ended shortly have the first few 3.x releases

There is also that. But as a very keen purveyor of /newest (I basically have every single thing come into a Slack channel) I am increasingly finding gems or even significant news that would have once done well on the front page just never reaching it. There is truly more cool stuff than we have room to show :-) That is a great opportunity as well, though.

Re: Ruby on Rails 5.1

#33
post #15

I'm still surprised they removed the formatting for db/schema.rb which I rely on quite a bit to remind myself what properties models have, whether or not their status can be set to null, and how many digits of precision my decimal columns have. I went as far as writing my own formatter which consumes the db/schema.rb generated string and outputs another string with better formatting. The code is kinda shaky because I…

You should check out the `annotate` gem.

Annotate is great! I cannot work in a Rails app without annotate.

Re: Ruby on Rails 5.1

#34

Earlier quoted context omitted.

Using npm alone is like using bundler without a Gemfile.lock. If one person does `npm install` today, and a new teammate does `npm install` in a month, the new teammate will install different versions . With yarn, there is a yarn.lock to make sure everyone gets the same versions when they run `yarn install`. Also, yarn is way faster.

There is npm shrinkwrap, but the yarn folks will tell you yarn is better.

There is ${some_random_lib} to solve this problem? Yawn! Use Yarn, it comes baked in.

Re: Ruby on Rails 5.1

#35
post #20

Earlier quoted context omitted.

I haven't really been following yarn or web pack. Can you give an example of how it changed your life?

Using npm alone is like using bundler without a Gemfile.lock. If one person does `npm install` today, and a new teammate does `npm install` in a month, the new teammate will install different versions . With yarn, there is a yarn.lock to make sure everyone gets the same versions when they run `yarn install`. Also, yarn is way faster.

Thanks for the analogy. I am now update-to-date w/ 3 years of JS churn :)
Post reply on HN