/loyd

Example app for my "Stop putting every class in the models directory" talk

Primary LanguageRuby

Example Rails up for Stop putting every class in the models directory talk.

Runnning the tests

Running the fast tests (no rails or AR)

bundle exec rake spec_fast

Running the slow tests (boots rails)

bundle exec rake spec_slow

Running all the tests (useful for CI)

bundle exec rake spec

Resources

Example Sinatra app

https://github.com/collinschaafsma/slimfit

Awesome talk by Uncle Bob.

http://confreaks.com/videos/759-rubymidwest2011-keynote-architecture-the-lost-years

Clean Code Book

http://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882

Jumpstart Labs: Facade Pattern

http://tutorials.jumpstartlab.com/topics/models/facade_pattern.html

Great talk by Corey Haines

http://www.youtube.com/watch?v=bNn6M2vqxHE

Software design patterns

http://en.wikipedia.org/wiki/Software_pattern

Draper

https://github.com/jcasimir/draper

Railscast: Presenter from scratch

http://railscasts.com/episodes/287-presenters-from-scratch?autoplay=true

S.O.L.I.D

http://en.wikipedia.org/wiki/SOLID_(object-oriented_design)