33
Beyond The Rails Way Tomasz Giereś @ Lunar Logic

Beyond the rails way

Embed Size (px)

DESCRIPTION

Quick comparison of the SOLID approach and the Rails way approach of creating web apps.

Citation preview

Page 1: Beyond the rails way

Beyond The Rails WayTomasz Giereś @ Lunar Logic

Page 2: Beyond the rails way

Last week

• The H. Project

• Success?

• Hangover

• Reasons?

Page 3: Beyond the rails way

Jump back in time

Page 4: Beyond the rails way

The Java Way

Page 5: Beyond the rails way
Page 6: Beyond the rails way

2005Rails comes out

Page 7: Beyond the rails way

The Rails Way

Page 8: Beyond the rails way
Page 9: Beyond the rails way

2006-2008http://paulklipp.com/articles/

from-java-to-ruby-book-summary.pdf

Page 10: Beyond the rails way

Problems

• Fat models

• Global variables

• Helpers

• …

Page 11: Beyond the rails way

Where’s Wally?aka understanding and debugging a flow in Rails apps

Page 12: Beyond the rails way
Page 13: Beyond the rails way

The Java Way&

The Rails Way

Page 14: Beyond the rails way

History

Page 15: Beyond the rails way

History

Page 16: Beyond the rails way

History

Page 17: Beyond the rails way

History

Page 18: Beyond the rails way

History

30-40 years

Page 19: Beyond the rails way

SOLID

• Principles

• Set of guidelines

• Big applications

• Experience

• Makes sense

Page 20: Beyond the rails way
Page 21: Beyond the rails way
Page 22: Beyond the rails way
Page 23: Beyond the rails way
Page 24: Beyond the rails way

Small projects only

• Clearly

• books.llp.pl

Page 25: Beyond the rails way

The Rails Way criticism

Page 26: Beyond the rails way
Page 27: Beyond the rails way

The Solution

Page 28: Beyond the rails way

KISS

Page 29: Beyond the rails way

Learn SOLID*

* SOLID != service objects, repositories, presenters

Page 30: Beyond the rails way

Why to start

• Universal

• Ruby on Rails Developer vs Software Developer

• Predictive workflow

• Creative work?

Page 31: Beyond the rails way

When to start

• When you can practice it

• When in environment that encourages high quality

• When surrounded by people willing to help

Page 32: Beyond the rails way

Where to start

• Sandi Metz - Practical Object-Oriented Design in Ruby

• Uncle Bob - Getting a SOLID start

• people at the office you can talk to

Page 33: Beyond the rails way

The End