Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
@excosy
Member
NO. 18205 / 2015-04-15

[email protected]
3 Topics / 7 Replies
0 Followers
0 Following
7 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 干掉你代码中的坏味道 at August 18, 2016

    个人认为 DuplicateMethodCall 这种类型的错误相当不靠谱,至少得区分一下左值右值吧。右值反复出现确实可以用一个临时变量存储避免重复计算,但左值及 write 型的方法能不出现 DuplicateMethodCall?

  • Hash.new 的陷阱 at April 21, 2016

    #3 楼 @qinfanpeng 受教了,谢谢

  • Ruby 里的 %Q, %q, %W, %w, %x, %r, %s, %i (译) at February 18, 2016

    #9 楼 @alsotang js 有 console.log(),而且 console.log 还有带 css 样式的%c玩法,其它哪个语言有?

  • ActiveRecord Model 使用 hash 创建的对象字段全是 nil at April 23, 2015

    #4 楼 @azhao 被 strong paramters 替代的不是 attr_accessible 吗?attr_accessor 是 ruby 方法不是 rails 方法啊

  • ActiveRecord Model 使用 hash 创建的对象字段全是 nil at April 23, 2015

    #2 楼 @serco 成功了,可是这是为什么呢?

  • ActiveRecord Model 使用 hash 创建的对象字段全是 nil at April 23, 2015

    #1 楼 @dandananddada 不是这个问题,用符号做 key 的 hash new 出来还是 nil

  • 10 个 Ruby 技巧提升你的代码 at April 20, 2015

    <<HERE 与<<-HERE 的区别:前者结束符 HERE 必须顶格写,不能有缩进,后者没有这个限制,但 HERE 也必须单独一行 (不能有其它非空白字符)

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English