Skip to main content

Posts

Showing posts from March, 2013

Rules of Fight Code squad

1. You should tell everyone about Fight Code squad 2. If you don't want to annoy people with rules, check rule #1 3. Something that is bigger than it should, call "Pile of shit" 4. Something bigger than "Pile of shit", call "Huge pile of shit" 5. Splitting Huge pile of shit on smaller piles, is not considered refactoring, it's just shitty job. 6. Don't short down variable names, abbreviations was invented by bureaucrats to confuse shit out of regular people. There should be no bureaucrats in Fight Code squad. 7. If method is taking more than 20 lines then you should feel bad, think again. 8. If class/module is taking more than 500 lines, then it's Pile of shit. 9. Readability over Functionality, if you can't read it after hangover, don't write it. 10. If (method|class|module|factory...) is used only once in a code, it shouldn't exist.  11. If method is taking one line, then something should be wrong with wh