3 ms·
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
by jbackus 10y 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/Attributes/ClassMethods.html#method-i-attribute http://edgeapi.rubyonrails.org/classes/ActiveRecord/Attribut...
- steveklabnik 10y agoSean has been doing fantastic, underappreciated work for a long time. Agree here.
- dopamean 10y agoI'd love to read more about it. Do you know if he has written anything about this work?
- jbackus 10y agoI 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 http://bikeshed.fm/8 Definitely also checkout the episodes where he talks about Diesel.
- rabidferret 10y agoMost in depth I went was probably in http://m.youtube.com/watch?v=PUuYAksQWg4 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. :)
- jwolgamott 10y agoSean 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-you-haven-t-heard-about http://confreaks.tv/videos/railsconf2016-rails-5-features-yo...
- trevorturk 10y agoSuper appreciated! Great work Sean. This kind of deep structural improvement will pay dividends for years.
- VeejayRampay 10y agoAgreed, thank you Sean for all your hard work. You rock!
- ansonhoyt 10y agoAgreed, the attributes API work is perhaps the top improvement for me.