Ruby Stop abusing bang method

hooopo · January 22, 2013 · Last by diudiutang replied at January 22, 2013 · 2124 hits

Good to know

和 DHH 一样,很霸的删代码~ 哈哈

遵循爱护键盘原则就可以了...

强迫症哦

我喜欢用

update_attributes!, create!, save! 抛出异常
reverse_merge!, deep_merge! 直接改变原有hash

好像经常用!的就这 2 个地方

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