Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Ery
@ery
高级会员
第 594 位会员 / 2011-12-27

沃丰时代 Udesk
北京
38 篇帖子 / 1123 条回帖
36 关注者
37 正在关注
104 收藏
西伯利亚的雪景 万丈高空的鹰
GitHub Public Repos
  • railscasts-downloader 12

    a script to download and keep the railscasts videos up to date

  • suitup 10

    Common bash commands, support zsh

  • deploy-rails 8

  • showbuilder 7

    Show Builder

  • emknight 5

    Ember Knight is a front-end project base on ember.js

  • emcastle 3

    Ember Castle is a back-end project base on rails

  • sublime-text-2-ruby-tests 2

    Sublime Text 2 plugin for running ruby tests! (Unit, RSpec, Cucumber)

  • fetchshare 2

    Fast simple fetch and share

  • nginx-init-ubuntu 1

    Tried and true Nginx init script - got enhancements? Send a pull!

  • Ery.Sublime 0

    Sublime config of Ery

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 长春也搞一次 RoR 聚会??会有人参加么? at 2013年10月02日

    15543001108 Ery

  • win2008 下安装 gem 问题 (无外网环境) at 2013年09月30日

    如果只是开发的话可以试试 sqlite,我已经好久不用 windows 了。

  • 如果有一款针对自由职业者和小微企业的项目销售管理软件 at 2013年09月26日

    #18 楼 @Victor 哈哈,是我们,很多人都质疑这一点。

  • 如果有一款针对自由职业者和小微企业的项目销售管理软件 at 2013年09月26日

    和我们的项目有些类似,不过我们做的是“进销存”,我们做了 3 年多。 http://baoleihang.com

  • 新人来扯淡…还望各位大大谅解…只想了解一下真实的程序员 at 2013年09月21日

    真绝对是 炫耀贴

  • 简洁,更简洁 at 2013年09月07日

    很不错!

  • 李开复老师被诊断出淋巴癌,祝李老师早日康复 at 2013年09月06日

    祝福

  • Magic Mouse 实在用不下去了,求推荐鼠标 at 2013年08月27日

    雷蛇(Razer)炼狱蝰蛇 DeathAdder http://item.jd.com/179784.html

  • 如何开始你的 SOHO 之旅 (2) 发布了 at 2013年08月27日

    Nice!

  • 如何在 observer 生成 log 时取得"当前登陆用户"的信息? at 2013年08月26日

    observer 是一个不错的技术, 但是当用户需求依赖 session的时候,observer就不适合了。

  • Ruby 性能真的比 Node 差这么多么? at 2013年08月20日

    V8 很强大

  • 请教一个累计统计的 sql at 2013年08月18日

    #7 楼 @mvj3 Statlysis 看起来不错。报表如果多的话,维护的代码量还是灰长大的。所以用第三方 Gem 应该是优先的选择。谢谢你的推荐。

  • 请教一个累计统计的 sql at 2013年08月18日

    #10 楼 @as181920 单独后台一个程序,分析现有数据,然后生成报表基础数据。 Rails 程序再根据报表基础数据,做报表计算。

  • 请教一个累计统计的 sql at 2013年08月17日

    你这是要做报表啊,我们也在做,哈哈。 我们采用了线下 batch 处理。

  • 一小段代码重构 at 2013年08月16日
    class Bob
      def hey(words)
        parser words do
          silent?   "Fine. Be that way!"
          shout?    "Woah, chill out!"
          question? "Sure."
          question? "Whatever."
        end
      end
    end
    
  • 一份 Ruby 面试题 at 2013年08月14日

    原来 map 就是 collect

    Example:
      select("post", "person_id", Person.all.collect {|p| [ p.name, p.id ] }, {:prompt => 'Select Person'})
    
    could become:
      <select name="post[person_id]">
        <option value="">Select Person</option>
        <option value="1">David</option>
        <option value="2">Sam</option>
        <option value="3">Tobias</option>
      </select>
    
    
  • 面试的时候你最讨厌碰到的情况是什么? at 2013年08月14日

    我最讨厌,让我在纸上写代码,因为我从来不在纸上写代码。 我还讨厌,给我一段代码,让我计算出结果,我又不是计算机。

  • 九句名言,你最喜欢哪一句? at 2013年08月11日

    任何傻瓜都能写出计算机可以理解的代码。好的程序员能写出人能读懂的代码 +1

  • 一小段代码重构 at 2013年08月11日

    #58 楼 @hisea nice! 结构体的可读性 很强,但是正则表达式的可读性较弱

  • 一小段代码重构 at 2013年08月09日
    class Bob
      def hey(words)
        is_silent = words.nil? || words.strip.empty?
        if is_silent
          return "Fine. Be that way!"
        end
    
        is_shout = words.upcase == words
        if is_shout
          return "Woah, chill out!"
        end
    
        is_question = words.end_with?("?")
        if is_question
          return "Sure."
        end
    
        return "Whatever."
      end
    end
    
  • 一小段代码重构 at 2013年08月09日

    #49 楼 @blacktulip 请问 It's better not to pass words around so much. Can you think of a way to avoid that? 这个板砖是谁丢的?

  • 一小段代码重构 at 2013年08月09日

    阅读复杂度分析 if end 最低 if else end 中等 if elsif end 偏高 if elsif elsif end 更高 elsif 越多 阅读的复杂度越高。

  • 一小段代码重构 at 2013年08月09日

    if elsif 比 if 的阅读成本高一些。

    在 hey 函数中, 不用elsif,也能实现, 所有,只用 if 即可。

  • 一小段代码重构 at 2013年08月09日

    少用 elsif

    class Bob
      def hey(words)
        if words.nil? || words.strip.empty?
          return "Fine. Be that way!"
        end
    
        if words.upcase == words
          return "Woah, chill out!"
        end
    
        if words[-1] == "?"
          return "Sure."
        end
    
        return "Whatever."
      end
    end
    
  • [上海] 高薪诚聘 Ruby 高级工程师 (10-15k) at 2013年08月08日

    如果是 扣掉四金和所得税的话,入手 10-15k,还可以接受

  • 尝试 Rails,问个比较随便的问题。 at 2013年08月08日

    #57 楼 @kevin__liu 我也不记得啦,哈哈哈

  • 姨妈贴 RVM rbenv 讨论 at 2013年08月06日

    #32 楼 @hooopo 哈哈,谢谢你的分析,有点道理。 请问 你在 test_helper.rb 中 加载 bundle 环境了吗?

  • 姨妈贴 RVM rbenv 讨论 at 2013年08月06日

    #29 楼 @hooopo 代码是错的,这个答案是相对的, 如果 使用 rvm gemset 代码就是对的。 如果 使用 budler 代码就是错的。 那么 你觉得 到底是 代码错了,还是 bundler 错了?

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