This self-documentation is a great gift for other developers (and your future-self). A quick look at the Data Object definition tells us what attributes are available. No need to go through those four classes where a hash that’s returned by a third-party API is transformed, filtered, reduced, deleted, symbolized keys and recursively flattened… wait, what?!

Via: http://brewhouse.io/2015/07/31/be-nice-to-others-and-your-future-self-use-data-objects.html

Published by Avdi Grimm

Leave a Reply

Your email address will not be published. Required fields are marked *