dhh – walker – 2020-05

40 items · updated 2026-05-19 23:30 UTC · RSS · Up to archive

Webpacker presents a more difficult OOB experience for JS Sprinkles than Sprockets did

dhh discuss ruby on rails · 2020-05-23

You’re still going to want modules, npm, etc. Sprockets is never going to do all of that. All material apps need packaging. Webpacker is no

Webpacker presents a more difficult OOB experience for JS Sprinkles than Sprockets did

dhh discuss ruby on rails · 2020-05-23

Happy to discuss all the concrete proposals on how to make things better. Right now Webpacker provides a out of the box experience where all

Patterns for "data-only" Rails migrations

dhh discuss ruby on rails · 2020-05-22

We mix data and sql statements in migrations all the time at Basecamp. This is what migrations were designed to do! They’re intended to be m

Pending Migration Error usability concerns

dhh discuss ruby on rails · 2020-05-22

I’d go so far as to say that pending migrations should indeed just run by default in development and test, but those environments only. I’ve

What is the story with HTTP/2 in Rails?

dhh discuss ruby on rails · 2020-05-19

What samsaffron said. We’re running HTTP/2 with HEY through nginx. The main benefit is higher concurrent loads and just a single HTTPS hands

Admin framework by default

dhh discuss ruby on rails · 2020-05-18

You can hear the broader philosophy expanded in my RailsConf 2015 keynote as well: YouTube. Goes over the prepper’s backpack metaphor and mo

Pending Migration Error usability concerns

dhh discuss ruby on rails · 2020-05-18

I really dislike that big error message as well. We should be able to catch the Pending Migrations Error and give it a dedicated page that s

Admin framework by default

dhh discuss ruby on rails · 2020-05-18

I’ll give the short answer on the “what goes on the menu?” and it’s “the chef’s choice”. It’s not an empirical question with an empirical an

Configurable ActionText

dhh discuss ruby on rails · 2020-05-16

Please Do Investigate :smile:

Console is not aware of code changes

dhh discuss ruby on rails · 2020-05-16

Like --auto-reboot and the reminder too! Totally agree that you can get away with a lot of magic when you tell people what tricks are being

Should db:test:prepare Also Call db:seed by Default?

dhh discuss ruby on rails · 2020-05-16

I’d be happy to see #2. Having db:test:prepare always call db:seed isn’t going to fly. Too divergent use case. Totally fine for an individua

Configurable ActionText

dhh discuss ruby on rails · 2020-05-16

I’d be happy to see an easy way to slim down the formatting options available in Action Text. I’d even be interested in seeing a different t

Interactive "rails new"

dhh discuss ruby on rails · 2020-05-14

Oh, and also ./bin/rails actionmailer:install along with all the other frameworks you can opt out off with --minimal or --interactive.

Interactive "rails new"

dhh discuss ruby on rails · 2020-05-14

Betsy, I’m happy for us to start kicking off issues/PRs for some of these ideas. There’s a clear go-ahead on --minimal and --interactive 👍

ActiveAuthentication

dhh discuss ruby on rails · 2020-05-12

Lol, that’s supposed to be “likely to be LOW-level”. That is infrastructure, not components.

ActiveAuthentication

dhh discuss ruby on rails · 2020-05-12

The work we’d extract from HEY is likely to be high-level, like CurrentAttributes, has_secure_password, and the like. I don’t have any perso

Javascript documentation is out of date and minimal

dhh discuss ruby on rails · 2020-05-12

TL6 isn’t timed with a specific Rails release for the moment, so when we’re ready to share the work, we can definitely do a bunch of joint d

Turbolinks doesn't handle render

dhh discuss ruby on rails · 2020-05-12

Yes. The need for UJS is gone with TL6.

Is there any "official" way to organize one-off scripts?

dhh discuss ruby on rails · 2020-05-11

Oh, I hadn’t even realized that. Yes, I would support bringing back script/ as a default directory, and showing that this is a good usage.

Console is not aware of code changes

dhh discuss ruby on rails · 2020-05-11

I think it’s essentially the same approach: Detect code changes. Tell the user inline in the console: “The class MagicMonkey was changed.

Should db:test:prepare Also Call db:seed by Default?

dhh discuss ruby on rails · 2020-05-11

I think we indeed have a muddy definition of seed that doesn’t actually fit the original strict view. Which makes it difficult to rely on it

Console is not aware of code changes

dhh discuss ruby on rails · 2020-05-11

Actually, the stale object point could be entirely sidestepped if instead of reload, we reboot. Simply start a brand new console session wit

Turbolinks doesn't handle render

dhh discuss ruby on rails · 2020-05-11

Plan is to have TL6 out ~late summer/early fall. It’ll address this issue and more. TL6 is now fully aware of forms.

Console is not aware of code changes

dhh discuss ruby on rails · 2020-05-11

I think having an in-line notice that the code was changed, and to reload if you want those updates in the session, would be great. Doubt it

Interactive "rails new"

dhh discuss ruby on rails · 2020-05-10

That sounds like a great idea! If we’re letting you run stuff straight from a URL, we should probably preview what you’re about to run. But

Sprockets abandonment

dhh discuss ruby on rails · 2020-05-10

I did a survey at the time of Webpacker, and I do think we looked at Parcel. But I don’t recall why we didn’t go that route. The basic premi

Is there any "official" way to organize one-off scripts?

dhh discuss ruby on rails · 2020-05-10

We use script/migrate/* at Basecamp. It’s just a basic script that starts with: require_relative "../../config/environment" We also have s

ActiveAuthentication

dhh discuss ruby on rails · 2020-05-10

Also, I don’t think there’s a zero sum here. A good idea doesn’t have to justify itself with what it would replace, like “be more beneficial

ActiveAuthentication

dhh discuss ruby on rails · 2020-05-10

Devise is good for the omnibus, but I’d like to make more of the core ingredients directly accessible. Like we did with has_secure_password.

Common theme: Framework stacktrace vomit is rough

dhh discuss ruby on rails · 2020-05-10

We have a complete API to do this: Rails.backtrace_cleaner.add_silencer { |line| /my_noisy_library/.match?(line) } But we haven’t updated

Common theme: Framework stacktrace vomit is rough

dhh discuss ruby on rails · 2020-05-10

I’m a big fan of backtrace cleaning! I don’t think we’ve upgraded our standard backtrace cleaning to account for neither spring nor bootstra

Local ActiveStorage and URL expiration with big (~long) file uploads

dhh discuss ruby on rails · 2020-05-10

Betsy, you mean that DiskService should have been called LocalService or even TestService to emphasize its intentions? I could see that. But

Local ActiveStorage and URL expiration with big (~long) file uploads

dhh discuss ruby on rails · 2020-05-10

I like the idea of have the guide walk you through “here’s how to serve from your own controller”. We tell you that this is what you have to

Interactive "rails new"

dhh discuss ruby on rails · 2020-05-10

Great summary, Betsy. I’d like to throw my support behind both an interactive option and a minimal option, as well as better tooling and doc

App/javascript feels like the wrong name for that directory

dhh discuss ruby on rails · 2020-05-10

I think the primary pressure to rename app/javascript comes from when you’re doing SPA-style, you want Webpack for everything, and you don’t

Local ActiveStorage and URL expiration with big (~long) file uploads

dhh discuss ruby on rails · 2020-05-10

I think it’s also fair for us to commit to the fact that Active Storage was specifically designed and intended to work with cloud storage se

`rails test` doesn't run system tests

dhh discuss ruby on rails · 2020-05-10

Yeah, we don’t run the system tests, because they’re generally slow. We tend to primarily run system tests at Basecamp as a CI step. But thi

Sprockets abandonment

dhh discuss ruby on rails · 2020-05-10

Just for a bit of history here. When we adopted Webpack as the preferred solution to compiling modern JavaScript in Rails, it was because We

Helping devs understand concerns faster

dhh discuss ruby on rails · 2020-05-10

Worth pointing out here is that the stuff we put in app/models/concerns are concerns that apply to multiple classes. An example from HEY is

Helping devs understand concerns faster

dhh discuss ruby on rails · 2020-05-10

I think we’d do well to explain concerns better. I’ve been writing code with mixins for so long that I’ve taken it completely for granted t