Hi Rebecca,

I'm not sure if Virtus has been suggested or not, but it's become a staple 
in my daily use. https://github.com/solnic/virtus

Phillippe Creux did a nice post about 
this: 
http://brewhouse.io/2015/07/31/be-nice-to-others-and-your-future-self-use-data-objects.html

I love this gem for 2 reasons:

1. It helps show developers of all levels that Rails is not magic, it's 
just code.  This lesson, often, takes a long time to learn and keeps junior 
developers from using concepts such as Service Objects.
2. It makes code so much cleaner and helps corral code that seems to not 
have a place, such as dealing with custom hashes and such.

I have used this gem on "traditional" Rails projects and pure API projects 
with ActiveModel Serializer.

Another benefit is, it's simple to use both Inheritance and Composition.

In the end, you get an object that is simple to reason and extend, instead 
of looking at a wall of code that is dealing with a bunch of hashes / JSON.

Best,

Misha

On Friday, October 16, 2015 at 12:07:33 PM UTC-4, Rebecca Colavin wrote:
>
> Hi SdRuby!
>
> As part of the program at SDlearn, students give a short presentation 
> during week 7. My plan is to present on useful gems and people have given 
> great suggestions (thanks Ben and Patrick!). A 
>
> follow up question is "are there any little know gems that you feel should 
> be more widely used?" And if you have any general advice on the subject, 
> that would also be great. Thanks. 
>

-- 
-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
--- 
You received this message because you are subscribed to the Google Groups "SD 
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to