Pittsburgh Ruby lightning talk night: RVM, business logic with Rails, IRC, rspec-given, Vagrant

The Pittsburgh Ruby meetup held a lightning talks session.

Originally, I was not going to present anything, since I did not feel that I had anything exciting to quickly share (I have not been doing much Ruby programming lately at all other than debugging my Octopress-generated blog), and don’t like talking just to talk.

But at the very last minute, just half an hour before the meeting, I noticed some developments in the world of RSpec announced on Twitter by Jim Weirich, and I got excited enough that I decided to talk about his rspec-given, which was just released at version 3.0.0.

Colin briefly talked about how he likes to automate things, and therefore, in the context of using RVM, created rvm_recommended_ruby.

Jon, on business logic in pure Ruby

Jon gave a short summary of his blog post on not putting all business logic into Rails models, but instead, decoupling from ActiveRecord and Rails altogether. This is a theme that has risen a lot in recent years in the Rails community.

Carol, on how to use IRC to get help

Carol talked about how to use IRC to get help when working on projects.

Me, on rspec-given

I talked about cool features in rspec-given.

rspec-given has actually been around for a while, but I had not used in the past. I plan to use it in the future.

It provides Given, When, Then, and And for writing specifications.

Also, now there is Invariant, which I think is a great addition to RSpec, enabling an easy way to check invariants as part of every example.

Finally, I love the new natural assertions, the ability to write stuff like

Then { stack.top == :second_item }

instead of

Then { expect(stack.top).to eq(:second_item) }

while RSpec automatically generates useful messages on failure.

Colin again, on Vagrant

Since all the lightning talks were done in less than half an hour, Carol called for more volunteers to talk about something. Colin ended up impromptu talking about his use of Vagrant to create development environments.

There was particular interest in how to share files with the host file system. Vagrant makes this easy.

Vagrant is great. Use it.

Ruby meets Python

Carol reminded everyone that coming up is a Ruby/Python joint social.

Conclusion

A relatively short Pittsburgh Ruby meetup, and with a smaller crowd than some others in the past, but a fun and instructive one.

Don’t forget, Steel City Ruby Conference 2013 is in a month! I’m excited to attend again.

comments powered by Disqus