Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Hooopo
@hooopo
管理员
第 8 位会员 / 2011-10-28

[email protected]
nil
北京
160 篇帖子 / 3013 条回帖
360 关注者
0 正在关注
74 收藏
聪明的妖怪录下了唐僧的紧箍咒
打赏作者
GitHub Public Repos
  • oh-my-github-circles 47

    GitHub User Circle Generator Using GitHub Actions

  • hackernews-insight 21

    Hackernews Insight using TiDB Cloud

  • repo-track-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any repository to your da...

  • oh-my-github-pipeline 6

    🔄 A flexible open-source data pipeline for seamlessly syncing data from any github user to your d...

  • chatgpt-xiaoai 3

    小爱音箱集成LLM,SaaS 服务

  • repo-contributor-circles 1

    GitHub repo contributor circles generator.

  • ossinsight-x 1

    Automatically post trending repos to Twitter every day.

  • mi-service 1

    XiaoMi Cloud Service for mi.com

  • hooopo 0

  • streamlit-echarts-demo 0

    Demo for Streamlit ECharts component

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 好性感的胡子~~········我差点爱上他了 at 2012年03月03日

    tenderlove 既是 ruby commiter 又是 rails commiter the only person~

  • 一个让我很兴奋的消息 (貌似坛子之前没有人发过?) at 2012年03月03日

    #14 楼 @zw963 Ruby 社区流行的一句话叫 "Matz is nice so we are nice."

  • 大家谈谈对 Ruby 和 Rails 的不满之处吧 at 2012年03月03日

    #10 楼 @hhuai 没有了 eval 就没有了 ERB,没了 ERB 也就没有了 Rails.....

  • Method end with Bang means dangerous at 2012年03月02日

    #3 楼 @linjunpop 这是为什么呢 我要做些什么才能让他 readability 呢

  • rails 中 最近来访 功能的实现 at 2012年03月01日

    #10 楼 @tassandar 其实,我觉得吧 上面的几种方案都是可行的。而且用数据库的方案更灵活,比如要统计最近被访问最多的人这种需求的时候也很方便做。

    做这种设计的时候也要综合考虑其他因素。

    如果项目里没有用到 redis mongodb 什么的还是直接用 mysql。

    好像有个原则叫“如无必要,勿增实体”,在这里郑重的 at 一下蜗牛同学.. @ywencn :-)

  • rails 中 最近来访 功能的实现 at 2012年03月01日

    #7 楼 @tassandar 先不考虑缓存的方法 最原始的方法: user has many visitors

    用户 A 来访用户 B -> 查询 B 的 visitors 数量,如果小于 10,插入一条记录到 visitors 表里面,或更新时间 如果等于 10,先删掉最后一条,再插入。

    再简单一点,不用表,只用一个数组字段序列化到 user 表里面

  • 大家谈谈对 Ruby 和 Rails 的不满之处吧 at 2012年03月01日

    #37 楼 @nouse

    I did hear that Strobe (company who was hiring Carl Lerche, Yehuda Katz and contracted Jose Valim) used to have an ActionPack based, mini stack but it was never released and apparently only Rails core members really knew what was going on there.
    

    这是真的吗?

  • 大家谈谈对 Ruby 和 Rails 的不满之处吧 at 2012年03月01日

    #33 楼 @Saito 其实这些方法本身的意思已经明确了。。比如 delete

  • 大家谈谈对 Ruby 和 Rails 的不满之处吧 at 2012年03月01日

    #1 楼 @Rei 自己手写还是习惯了 => 用生成器的时候加上rails generate xxx --old-style-hash

  • 一个让我很兴奋的消息 (貌似坛子之前没有人发过?) at 2012年03月01日

    #9 楼 @hhuai http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_125/ChangeLog ruby 的 commit 信息和代码注释也是英文的:https://github.com/ruby/ruby 你说的那个是 issue trace 系统。大部分讨论问题的都是日本人,他们相互交流用日语最方便。有不懂日语的人参加讨论人家也会用英文的:-)

  • 一个让我很兴奋的消息 (貌似坛子之前没有人发过?) at 2012年03月01日

    #5 楼 @hhuai ruby 的 changelog 一直就是英文的.. http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_0/ChangeLog http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_125/NEWS

  • Restful API Base Server 的小小讨论 at 2012年02月29日

    #8 楼 @soloara 哈哈 终于回到本质了

  • 好性感的胡子~~········我差点爱上他了 at 2012年02月29日

    4 楼 @camel http://www.slideshare.net/tenderlove/zomg-why-is-this-code-so-slow

  • 大家谈谈对 Ruby 和 Rails 的不满之处吧 at 2012年02月29日

    #20 楼 @raykin 什么性能?

  • 请教一个基础问题 at 2012年02月29日

    migration 是一定用的...

  • Ruby1.9 数组,哈希,枚举,集合的迭代器方法归纳与比较 at 2012年02月28日

    乱了 乱了

  • 请教一下 ruby-china 内的图片上传是存到 mongodb 里吗? at 2012年02月28日

    #15 楼 @ywencn 让你使用 mysql 是因为你都已经使用了 mysql,还何必再搞一个 mongodb。 增加一个 db,从概率的角度,增加了出错的几率。

    我是想说用文件系统存图片除了性能一点优点也没有。 是典型的反模式。但是也不是适用所有应用场景。知道各自的优点和缺点才能做取舍。

  • 请教一下 ruby-china 内的图片上传是存到 mongodb 里吗? at 2012年02月28日

    #13 楼 @ywencn No... 我说一下 mysql 存图片的好处哈: 1.备份容易 2.管理统计容易 3.操作容易,比如想删除直接就 delete xx 4.事物,你懂的。

  • 请教一下 ruby-china 内的图片上传是存到 mongodb 里吗? at 2012年02月28日

    #11 楼 @ywencn 蜗牛你终于醒悟了 图片也用 mysql 存吧:-)

  • 谁有发送大量 email 的方法? at 2012年02月28日

    发 spam 呀?

  • Rails 的下一次版本,看图 at 2012年02月28日

    #1 楼 @ywencn 日你啊 什么时候 3.0 不维护了?

  • 菜鸟想问一下 nokogiri 和 hpricot 那个好一些 at 2012年02月27日

    #10 楼 @camel nokogiri 用 css 选择器和 xpath 解析 dom,已经很优雅了..

  • 菜鸟想问一下 nokogiri 和 hpricot 那个好一些 at 2012年02月27日

    #4 楼 @camel 可以做一下比较么

  • 关于 Ruby 网络编程,过来看看,肯定有收获 at 2012年02月27日

    不要标题党哇...

  • zw963 的 Ruby 笔记之`常犯错误` at 2012年02月27日

    怎么感觉格式还是很乱呀

  • 关于查看 Rails 动态生成的函数源码的问题 at 2012年02月27日

    #9 楼 @hysios 是哇 像 rails 这样的项目 直接看源码和看出错的错误信息都很容易追踪的

    #6 楼 @iwinux 这个 pry 取到的方法没什么意义呀 元编程最 magic 的是 self、scope 和 definee。没有这些,只看到一个方法是很难的,除非代码非常简单。

  • 在服务器部署时默认信任 rvmrc 文件 at 2012年02月26日

    我都是把 rvmrc 放到 gitignore 里..

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