model / view / controllerwe can randomly toss shit in helpers/ and lib/
Don’t let Rails kill your software design skills you’re smarter than that
Example Apps Oh snap. Real code.
Why? Dude. I gotta get shit done.If you don’t have time to do it right, when will you have time to do itover? John WoodenThe only way to make the deadline -- the only way to go fast -- is tokeep the code as clean as possible at all times. Robert C. Martin
S.O.L.I.DFolks can grock itEasier Refactoring Testable Code
Speaking of testing
Speaking of testingTesting should be fast. Really fast.
Step (1) Cut a hole in a box
Step (2) Don’t put Rails in that box
Example CodeDamn son. More code.
TDD promotes good design TDD might not actually suck!
The word on the streetWe need something better. Persistence and logic are two separateresponsibilities that every rails app combines. Steve KlabnikI pull the behavior out of my models into other objects that wrap themodels. I prefer to make the AR objects simple wrappers around the db-access stuff in AR. Corey Haines
Resources Example Rails apphttps://github.com/collinschaafsma/loyd Example Sinatra apphttps://github.com/collinschaafsma/slimﬁt More resources https://gist.github.com/1934139 @collinschaafsma