News for hackers. Stuff that matters.
Re:Brut: A New Web Framework for Ruby by Lio on Wednesday July 09, 2025 @06:07AM (#44508113)
I loved David's book Sustainable Rails[1], it's one of the books on Rails I always recommend.

This is a really interesting take. I'd love see one of these small alternative frameworks full embrace Sorbet and use it for things like form validation. I guess that might defeat the gradual typing approach but it would definitely be interesting.

1. https://sustainable-rails.com/

Re:Brut: A New Web Framework for Ruby by krowek on Wednesday July 09, 2025 @08:07AM (#44509000)
Very talented person, and good speaker as well. I recommend some of his talks as well, perhaps this one closer to the content of the book https://www.youtube.com/watch?v=CRboMkFdZfg.
Re:Brut: A New Web Framework for Ruby by davetron5000 on Wednesday July 09, 2025 @09:11AM (#44509633)
Thanks for the kind words!
Re:Brut: A New Web Framework for Ruby by FrancoisBosun on Wednesday July 09, 2025 @10:19AM (#44510389)
Sorbet is nice, but for data structure enforcement and data validation, I much prefer the dry-rb ecosystem.
Re:Brut: A New Web Framework for Ruby by Lio on Thursday July 10, 2025 @06:41AM (#44519469)
I've used dry-rb a bit but had problems with breaking changes that put me off.

I love some of the ideas but they seem a bit too heavy for my taste.

e.g. I think (project) standardised results are a fantastic idea but I don't need the weight of Dry::Monad for that.

I think I can get enough benefit from built in features like .then and throw..catch with tags for signaling without an extra dependency and the risk of the API breaking on upgrade.