Classes can be no longer than one hundred lines of code. Methods can be no longer than five lines of code. Pass no more than four parameters into a method. Hash options are parameters. Controllers can instantiate only one object. Therefore, views can only know about one instance variable and views When a call comes… Continue reading Sandi Metz’ Rules for Developers
Category: Recent posts
Don’t fight stupid; make more awesome
“If you keep bumping into ‘no,’ and the organization makes it hard to get to ‘yes,’ you are going to have a long, slow, painful death. Get out of there! Every time I tried to win over stupid, I regretted it. On the other hand, every time I’ve gotten people to swing around and build… Continue reading Don’t fight stupid; make more awesome
Little ghosts
Your ideas that you entertain for far too long without executing them become like little ghosts; following you everywhere you go. And on your deathbed, they will be standing around you, very sad, asking you why you never brought them fully to life.