Latest Posts
Refactoring Ruby: DRY up your domain models using a struct table In the screencast and blog post below, you’ll watch over the shoulder of RubyTapas guest chef Sam Livingston-Gray as he uses Ruby’s Struct class, the Vim editor, and some clever formatting to rearrange his view of a refactoring problem.
Fluency is “what you can say without having to think about how to say it.” “Refactoring” is a language that describes ways to make your code suck less. I want to inspire you to become more fluent in that language, so you can make your code suck less without having to think about it.
Top 10 of Codejunk/Noise 10. Lousy Comments 9. Trailing Whitespace 8. Commented-Out Code 7. Needless Parentheses 6. Explicit Default Parameters 5. Unnecessary Requirements 4. Stringifying Strings 3. Too Much Hard Work 2. Duplicated Tests 1. Combine All The Codejunk Refactoring Code Example
Vim tricks
React.js and Rails 6