Skip to content

Comment on Brut: A New Web Framework for Ruby

Comments

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/

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.

Thanks for the kind words!

Sorbet is nice, but for data structure enforcement and data validation, I much prefer the dry-rb ecosystem.

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.