Painless Rails principles

  1. Differentiate 'schema' from 'implementation'
  2. Reduce entry point pressure
  3. Decompose code based on side effects
  4. Control the number of degrees of freedom of the app
  5. Don't mix building blocks and buildable
  6. Identify "types of code" & extract them into extra layers
  7. Write code like there's no DB under ActiveRecord*
  8. Don't mix layers of abstractions
  9. Prefer black box testing over white box testing
  10. Don't fight against the framework
  11. Minimize boilerplate code

They've been derived from the following aspects:

Aspects you need to take into acount:

Sources



Webinar: How to stop worrying about ActiveRecord and love Rails again

April 14 20:00 (Msk/Minsk time)


Attend webinar