Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
@allenwei
高级会员
第 366 位会员 / 2011-12-02

[email protected]
西安
10 篇帖子 / 299 条回帖
5 关注者
0 正在关注
1 收藏
GitHub Public Repos
  • Postgresql-Web 5

    A web interface of Postgresql for Rails

  • sidekiq-rollbar 5

    Report exception to Rollbar

  • bull 1

    Premium Queue package for handling distributed jobs and messages in NodeJS.

  • JSON-encode-benchmark 1

    JSON encode benchmark across Ruby, JRuby, NodeJS, Go

  • representable 1

    Maps representation documents from and to Ruby objects. Includes XML and JSON support, plain prop...

  • redmine-cookbook 1

    An OpsCode Chef cookbook for Redmine.

  • mask 1

  • mjml-utils 1

    The utility belt for MJML developers

  • graphql-code-generator 0

    GraphQL code generator with flexible support for custom plugins and templates

  • react-native-elements 0

    Cross Platform React Native UI Toolkit

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Safari 的快捷键能够调整么? at 2012年04月30日

    下一个这这装上就好了 https://github.com/rs/SafariTabSwitching 另外推荐 Glims 插件

  • 37signals 测试七忌 at 2012年04月24日

    #22 楼 @ranmocy 对于 cucumber 的写法有很多争议,基本有两种 1. 用最基本的 step 写下用户的点击行为,这样写程序员会少写不少代码 2. 用描述性的语句写每个 step,这种对非程序员来说非常易读。 不管哪种写法都会增加写程序的负担,毕竟写完 feature 还要写 step 实现

    BDD 类型的测试框架都会有全局观,看你怎么去写,没必要一定用 cucumber,重要是的没多少人真正在用 BDD 开发。 BDD driven 出用户的行为,driven 出 TDD,结合起来才是一个好的测试

    我也不是反对 cucumber,在我们公司 integration test 就是用 cucumber 写的,提需求的人会写出大概的 cucumber 的每个 feature,每个 step,step 就是语义化的,大家都能看懂的,程序员拿去修实现,cucumber 测试通过后,QA 会重新看写好的这些 feature 是不是满足需求

    每个工具都有他适用的范围,没有银弹

  • 37signals 测试七忌 at 2012年04月23日

    #17 楼 @ranmocy 理论上 function test 或者 integration test 可以覆盖用户的行为,但 unit test 在方便开发和调试上还是很有必要的,要不 integration test 出了问题,你都不知道什么地方出的问题,粒度太大。

    cucumber 写起来比较麻烦,不过对非程序员的人写 integration test 还是比较友好的,如果都是程序员去写,那用 steak,或者直接 rspec 就好了

  • 不知道谁知道关于 Bootstrap 模板或者一些漂亮的站点 at 2012年04月21日

    这有一些 theme http://wrapbootstrap.com/ http://ajkochanowicz.github.com/Kickstrap/index.html http://bootswatch.com/

  • Ruby 程序员回家 Soho 好不好? at 2012年04月20日

    看来可以远程办公的工作还是很吸引人的,在小城市拿着大城市的工资,有很多时间和家人在一起

  • 37signals 测试七忌 at 2012年04月19日

    出来一个反驳的文章 http://js.hu/blog/2012/04/18/testing-woes/

  • 关于 Rails 中的 Ajax 的疑问 at 2012年04月18日

    两个请求,这些 instance variable 肯定是不能共享的 不知道为什么需要另一个 ajax 请求

  • gem install 安装报错,已安装 xcode at 2012年04月14日

    你可以试试 xcode-select 命令,切换到正确的 xcode path

  • sphinx 搜 Article 里 title 匹配 dog 超过 2 次的所有文章 at 2012年04月07日

    这里是官方文档,很多语法你可以尝试一下

    http://sphinxsearch.com/docs/1.10/extended-syntax.html

  • 有没有在 mac 系统下配置 ror 环境好一点的说明啊。 at 2012年03月31日

    贴出来什么问题,大家会帮你解决的

  • [求推荐] 写 open api 的工具 at 2012年03月29日

    之前看到过这个https://github.com/zipmark/rspec_api_documentation,我没试过,你可以看看,文档最麻烦的就是不小心就忘记更新了

  • 字符串变 hash at 2012年03月29日

    举个例子

    def print *args
      args.each {|x| puts x}
    end
    
    print 1,2,3
    
    print *[1,2,3] 
    
  • 有用 vim 写 javascript 吗?关于自动对齐 at 2012年03月28日

    我一直用 jsbeautify http://www.vim.org/scripts/script.php?script_id=2727 这个是 online 的版本,你可以先试试, http://jsbeautifier.org/

  • 怎么在 activeadmin 这个框架中添加自定的按钮? at 2012年03月25日

    试试这个

    action_item :only => :index do 
     link_to some_path
    end
    
    
  • RubyChina 学习笔记 at 2012年03月20日

    #1 楼 @alucardpj 正解,asset pipeline 出了以后,你可以把任何一个 javascript lib 包在 gem 里发布,这样还有助于版本管理

  • 是否一定要用 cap 来部署? at 2012年03月20日

    你可以试试 whiskey_disk https://github.com/flogic/whiskey_disk 比 capistrano 轻量级

  • 分享一下关于 Active Model scope 的小发现 at 2012年03月17日

    莫非你指的是 scoped , 这个确实比较常用

  • thinking sphinx 嵌入关联 建立索引的问题 at 2012年03月16日

    number 必须是数据库字段名 可以看一下生成的 sphinx config 文件里面的 sql

  • 改变我的读书环境 -- 竖屏、壁挂、台灯等。 at 2012年03月11日

    坚决不在墙上打钉子,可以选择上在桌子的那种啊

  • Octopress 真好玩 at 2012年03月11日

    要是能多点 theme 就好了,看大家搞的都长一样,审美疲劳了

  • Memcached 可以用来缓存 json 吗? at 2012年03月11日

    #10 楼 @Rei @ywencn 一直比较关心缓存的问题,如何利用 etag 和 rack-cache 进行缓存呢?有没有比较好的例子

  • 关于 database.yml 里密码的设置 at 2012年03月11日

    我们之前用的一个办法是用一个 secret file 去渲染 databases.yml.erb,secret file 只在有权限部署的人那里传递,不妨在版本控制里面

  • rails 中怎么获得 validates_XXX 的错误信息,自定义校验的错误信息怎么获取 at 2012年03月07日

    scaffold 是一个很好的例子

  • Ruby China is My New Hello World at 2012年03月05日

    #14 楼 @ashchan 开启 ARC 还是很有必要的,用引入项目文件的方式加入依赖,让依赖自己编译,就可以避免依赖项目不是 ARC 的问题

  • 发起一个讨论 有关 block 的用途. at 2012年03月05日

    #10 楼 @zw963 如果你有些 instance_variable 就不太合适了,所以为了隔离一般都会创建新的实例

  • Ruby China is My New Hello World at 2012年03月05日

    建议你看看 Restkit 提供的 demo,顺便有时间看看 Three20 的 demo,相信你会很快搞定一个完整的客户端的

  • 发起一个讨论 有关 block 的用途. at 2012年03月04日

    写 dsl 的时候可以用到,比如:

    class A
      def self.help(&block)
        a = A.new 
        a.instance_exec &block
      end
    
      def method1
        puts "method1"
      end
    
      def method2
        puts "method2"
      end
    
    end
    
    A.help do 
     method1 
     method2
    end
    
  • 大家聊聊近三年 Ruby 社区的进步吧 at 2012年03月02日

    railscasts.com railscasts-china.com

  • 这里有多少人用机械键盘? at 2012年02月26日

    #4 楼 @ashchan 用起来会不会很别扭?

  • Ruby 1.9.3-p125 is released at 2012年02月17日

    看 change log 加了 llvm 的 support 是不是在 lion 下安装的时候会方便些

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