Memphis Ruby

Memphis Ruby

Fork me on GitHub

The Memphis Ruby Users Group is a software group interested in topics related to the Ruby programming language. We have monthly meetups at various locations throughout the Greater Memphis Area. We usually have two presentations each month, given by local practitioners. Our members and topics range from novice to expert, and we welcome newcomers.

Join Us for the Next Meeting!

{{ date }} — {{ event.venue.name }} — {{ event.yes_rsvp_count}} RSVPS

Meetings & Updates

Jason Charnes — July 22, 2016

Hello again! Last night we had our July 2016 meetup at the FedEx Institute of Technology. Our resident microservice expert Josh W. Lewis gave us a fantastic, and well balanced, look at microservices. Starting with an overview of microservices, Josh showed us some of the pros and cons of microservices compared to the “monolithic” approach. He then explained how the different services communicate, as well as some examples of individual responsibilities each service can have.

Josh Presenting at Memphis Ruby Users Group

Josh wrapped up the presentation with a walkthrough of Pliny. Pliny seems like a fascinating approach to building APIs with Ruby. I found Josh’s talk to be a very good way to help developers decide when microservices are appropriate. The night didn’t stop with microservices! We ended with a walk around the University of Memphis catching Pokemon.

If you’re interested in Ruby, new to Ruby, experienced with Ruby, or just wanna hang out- come check out our next meetup!

Special thanks to the University of Memphis for hosting the event, as well as LensRentals for the Pizza.

Josh W. Lewis — January 28, 2015

This month, we had a great meetup at Coroutine’s new office space on Broad Ave.

Jason Charnes educated us on how to decorate your models as an alternative to Rails' helper system. A tradidtional Rails view helper might look like this:

module ChurchesHelper
  def remove_church_from_name(name)
    name.split(" ").reject{ |e| e == "Church" }.join(" ")
  end
end

And you’d use it like this:

  <h5><%= remove_church_from_name(c.name) %></h5>

This works, and helps keep your code DRY, though you usually end up with long method names, and several concerns mixed into a module.

Draper is a RubyGem for adding decorating methods to models. With Draper, you can do something like this:

class ChurchDecorator < Draper::Decorator
  def name
    model.name.split(" ").reject{ |e| e == "Church" }.join(" ")
  end
end

Which you can use in your views like this:

  <h5><%= @church.name %></h5>

It certainly feels more Object Oriented, and in my book, it’s a little clearer. Jason showed us how to get setup with Draper, and explained some of the deeper semantics. Check out Jason’s slides here.

We concluded the event with an inpromptu editor showdown. Various developers showcased their editors, with varying degrees of success (I hope I didn’t turn anyone off on Vim). We saw Vim, Atom, and PHPStorm, and talked about others like Sublime and TextMate.

Thanks to Coroutine for the meeting space and the awesome Broadway Pizza.

Tagged: ruby, gem, decorators