Ruby Sandi Metz:简化代码的三招

chenge · May 25, 2014 · Last by Msms replied at May 26, 2014 · 1563 hits

来自本周的 rubyweekly,作者是那本 RubyOO 书的作者。

  • 小代码
  • 重复再重构
  • 代码形态和色彩

Keep it small, duplicate until it makes sense and refactor into simplicity, and follow the shape and pattern of your code.

http://multifaceted.io/2014/3-simple-but-powerful-takeaways-from-sandi-metz/?utm_source=rubyweekly&utm_medium=email

重构演示 https://speakerdeck.com/skmetz/all-the-little-things-rubyonales

:plus1: 感觉 DRY 那里说的很好,Dare to Repeat yourself then Refactor

mark 下,

You need to Sign in before reply, if you don't have an account, please Sign up first.