Hacker News new | ask | show | jobs
by jbackus 3639 days ago
I feel bad for Sean Griffin. He spent over a year overhauling the internals of ActiveRecord to add this attributes API. His work dramatically improves coercion and type enforcement for ActiveRecord users. Seems weird for this to only get a non-descriptive bullet point in "other highlights."

Here are the docs if anyone is interested: http://edgeapi.rubyonrails.org/classes/ActiveRecord/Attribut...

5 comments

Sean has been doing fantastic, underappreciated work for a long time. Agree here.
Super appreciated! Great work Sean. This kind of deep structural improvement will pay dividends for years.
I'd love to read more about it. Do you know if he has written anything about this work?
Most in depth I went was probably in http://m.youtube.com/watch?v=PUuYAksQWg4 but I discuss it in pretty much every talk I give.

You can also just ping me on Twitter and I can talk about it more. :)

Sean gave a (great) talk at RailsConf covering the attribute work as well as other Rails5 features "that you haven't heard of".

http://confreaks.tv/videos/railsconf2016-rails-5-features-yo...

I don't know if he has written about it beyond the docs and various commits. He has talked about it many times on his podcast (which I highly recommend). Here is an episode that talks about the attributes API as well as his Relation#or work: http://bikeshed.fm/8

Definitely also checkout the episodes where he talks about Diesel.

Agreed, thank you Sean for all your hard work. You rock!
Agreed, the attributes API work is perhaps the top improvement for me.