29 Nov '15, 2pm

Code #ruby on #rails like you build Lego

class ProcessOrder < Struct.new(:order) class RollbackTriggerError < StandardError; end def call ActiveRecord::Base.transaction do update_stock = UpdateStock.new(order).call raise_error unless update_stock.success? complete_order = CompleteOrder.new(order).call raise_error unless complete_order.success? prepare_for_shipment = PrepareForShipment.new(order).call raise_error unless prepare_for_shipment.success? end rescue RollbackTriggerError @success = false ensure self end def success?; @success != false; end def raise_error; raise RollbackTriggerError; end end

Full article: http://slides.com/apneadiving/code-ruby-like-you-build-legos

Tweets

Posted my "Code Ruby like you build Lego" slide...

rubyflow.com 30 Nov '15, 6pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Remote job: Ruby on Rails Developer at A Hundre...

jobmote.com 28 Nov '15, 10pm

You have a Github account and are following some interesting projects and people. Even better if you have some public proj...

Thinking about learning how to code? Ruby on Ra...

connect.powertofly.com 28 Nov '15, 3pm

When browsing through the infinite realm of information on Ruby on Rails, the recurring message is that it's one of the ea...

Fix bug in login in ruby on rails site by ddraz...

freelancer.com 28 Nov '15, 6pm

Project Budget €30 - €250 EUR Total Bids 5 Project Description Fix bug in login in ruby on rails site Looking to make some...

New Job Alert: Lead Ruby on Rails Developer at ...

simplyhired.com 30 Nov '15, 12pm

Ruby on Rails Developer Location: Seattle WA Duration: 1 + Year Long Contract Core Qualifications: 6 or more years of expe...

Crie um Website by desenvolvimento3 https://t.c...

freelancer.com 29 Nov '15, 10pm

Skills Required Graphic Design Ruby Ruby on Rails Website Design Project Budget R$4500 - R$9000 BRL Total Bids 2 Project D...

#eBookDe Ruby on Rails Bible https://t.co/wg0ajIeBgg

#eBookDe Ruby on Rails Bible https://t.co/wg0aj...

ebookde.com 28 Nov '15, 4am

Thanks to the explosive growth in popularity of the Rails framework, the equally popular Ruby programming language now has...

QR code generator by relanahul https://t.co/D4n...

freelancer.com 23 Nov '15, 11pm

Project Budget $15 - $25 USD / hour Total Bids 3 Project Description Pls build a QR code generator with RoR Looking to mak...

The Professional Ruby on Rails Developer #udemy...

udemy.com 26 Nov '15, 8pm

** Course updated August 2015!! ** Now with over 10,000 students enrolled! The Professional Ruby on Rails Developer Course...

New Job Opening For Ruby on Rails Developer @TheLevelUp Boston, MA, USA

New Job Opening For Ruby on Rails Developer @Th...

yostartups.com 30 Nov '15, 12pm

Join the LevelUp Team and work alongside other talented, driven individuals to help leading restaurant brands achieve thei...

Badass Tech-savvy Doll Teaching Girls Build The...

takepart.com 26 Nov '15, 1pm

Parents tired of presenting their kids with bikini-clad Barbies and heavily made-up Bratz dolls cheered when GoldieBlox ca...

New Job Alert: Front End Engineer - Rails, Ruby...

simplyhired.com 28 Nov '15, 3am

Front End Engineer - Rails, Ruby, JavaScript - Hiring ASAP! If you are a Front End Engineer with 3+ years of experience on...

Interesting read: Bored At Work? Here Are 6 Rea...

connect.powertofly.com 26 Nov '15, 5pm

It's a well-known truth that Ruby on Rails was designed to make programmers happy. And no wonder, with start-ups steadily ...

Code Ruby like you build Lego

rubyflow.com 11 Dec '15, 2pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

#eBookDe Railsspace: Building a Social Networking Website with Ruby on Rails https://t.co/qd3nLHwM0N

#eBookDe Railsspace: Building a Social Networki...

ebookde.com 26 Nov '15, 10am

Ruby on Rails is fast displacing PHP, ASP, and J2EE as the development framework of choice for discriminating programmers,...