@zilasino If it's a hardcoded concept that code will reference explicitly, enum. If code can break if a magical DB row gets deleted or isn't seeded, that's a red flag for me.
@zilasino For new work I use ActiveStorage. For existing projects that started with CarrierWave, I stick with that. CarrierWave has everything on the model while ActiveStorage adds some joins, so if a legacy app isn't careful you can accidentally end up with subtle N+1 if you migrate.
@phillyrb@kcdragon_ Curious what the % of attendance work at Power Home Remodeling? RailsConf left me with the impression that most rubyists currently in the area are work there.
@phillyrb@kcdragon_ Sorry to have missed it! Need to clear my calendar for these in-person Philly.RB meetups. Haven't been to one since the University City days. I could potentially talk about rehabbing rspec test suites for legacy applications if anyone would be interested in that.
@ThePrimeagen I refuse to believe anyone at any point of history did a significant amount of editing in ed. Only reason I've ever opened it was because Linux for Dummies had a chapter on it back in the day.
I wonder what percentage of the internet is going to be down today due to the CloudFlare issues. I would imagine no where near the scale as when AWS hickups, but still. It's unfortunate how we added points of failures to the biggest decentralized system in the world.
@rjs Are you talking about a world where what agents generate is deterministic? If I'm understanding you correctly, I have a hard time seeing prompt input replacing the role of declarative code as long as the result of any given prompt has some randomness to it.
After 20 years, I finally found something I strongly dislike in ruby on a language level. If you define a setter like `foo=` if you do `foo = :bar`, the expression will always return :bar. It's impossible to get `foo=`'s return. I guess it's true that no one is perfect after all!
How am I just learning about `git switch -` today?? I've spent so much mental energy when hopping into another branch to check on something over the years.
I've been using vim key-binds for over 20 years and I still don't really know them. I move lines around with `dd (move) P` all the time. Somehow I managed to lowercase the entire line while I was doing that. Never did that before!
@JasonSwett @solnic29a There's 2 pieces here. 1) Should we use cmd/form objs? Maybe. Depends how complex CreateUser is. 2) Is PM more readable for success/fail processing? Maybe. I like non-recoverable failures (like DB failure) to be exceptions. If you only have 2 states left, PM is noisier.