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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [成都] 超有爱教育科技招聘 Rails 大牛 at 2012年05月02日

    囧

  • 除了 Rails 大家平时在其他地方有常用 Ruby 吗?干些神马来着? at 2012年05月02日

    http://ruby-china.org/topics/437

  • Ruby 除了 Rails 还能做什么 at 2012年04月28日

    http://www.slideshare.net/avocadodb/using-mruby-in-the-nosql-database-avocadodb

  • [双飞燕] 闭包和绑定疑问 at 2012年04月28日

    #10 楼 @zw963 https://twitter.com/#!/Hooopo/status/179040639902695424

  • config.threadsafe!: JUST DO IT at 2012年04月27日

    #5 楼 @huacnlee 有可能修改共享内存的代码都不是线程安全的。

  • 问个冷门点滴,重构那些事 at 2012年04月27日

    #18 楼 @ery #17 楼 @yuan 同意 可维护性、可读性是目的 重构只是手段

  • 问个冷门点滴,重构那些事 at 2012年04月27日
    用实例变量目的在于view中好调用
    
    

    这理由不成立呀 常量更可以直接调用

  • config.threadsafe!: JUST DO IT at 2012年04月26日

    #3 楼 @Saito 搞一个哇!

  • config.threadsafe!: JUST DO IT at 2012年04月26日

    #3 楼 @Saito 还要项目的代码是 threadsafe!

  • You might have expected an instance of Array 的时候的屏蔽方法 at 2012年04月25日

    #4 楼 @ywencn 太丑了

  • You might have expected an instance of Array 的时候的屏蔽方法 at 2012年04月25日
    <% Array(@c).each_with_index do |c, index| %> 
      #donothing
    <%end%>
    
    

    PS. RubyChina 快成了问答网站了..

  • Rails 3+ 默认使用 erubis ? at 2012年04月25日

    是的 erubis 兼容 erb 并且可以自动过滤敏感标签。。

  • Rails 中 save 的事务问题 at 2012年04月25日

    显然是没保存成功

  • Is Node.js Better? at 2012年04月24日

    #15 楼 @hlxwell 这东西比的是数据库的设计和读写性能,和语言的快慢没多少关系。

  • Is Node.js Better? at 2012年04月24日

    #13 楼 @hlxwell 计数器这个例子好像不恰当...

  • rubychina 最近咋感觉好慢啊 at 2012年04月24日

    #30 楼 @skandhas O_o

  • Is Node.js Better? at 2012年04月24日

    #9 楼 @clearJiang 其实 js 也可以 https://github.com/JeffreyZhao/jscex

  • Is Node.js Better? at 2012年04月24日

    http://rubylearning.com/blog/2012/04/23/ruby-in-2012/ What is your opinion on Node.js? Is this the future? Do you think Node.js will beat Ruby in web application development?

    Matt Aimonetti: This is a question I often get. I personally like node.js, I think it’s fun, easy to get started and with CoffeeScript, writing JavaScript (JS) is almost fun. That said, Node is really young, not very well documented and relies extremely heavily on callbacks which can be quite confusing at times. My experience with Node is limited, but as my personal project started growing, I started struggling to keep my code simple and easy to maintain. Because I already know Ruby quite well and because equivalent tools exist in Ruby land, I don’t see a real need to use Node besides being the new cool framework.
    
    But the project is fast growing, the cross-platform focus is welcomed and I think that for some developers, Node.js can be a great solution, especially when developing simple web APIs.
    
    Will it “beat” Ruby? Well, a framework and a programming language are two different things. Will it beat Rails in popularity, that’s a possibility due to the fact that JavaScript is becoming very popular. However, some of the issues I mentioned earlier might prevent Node.js to become as popular as some people seem to believe. Finally, at the end of the day, if a JS framework becomes a better solution than anything else I use, I will certainly switch. But so far, I don’t see that happening.
    
    
  • [北京] github:jobs 上的国内公司招聘 at 2012年04月24日

    在这里讨论身价过亿编程正不正常一点意义也木有。。。

  • ruby 可以骇客么? at 2012年04月24日

    "Ruby has no limitation, the only limitation is your imagination."

  • 一个提议 at 2012年04月23日

    支持

  • [杭州 - 滨江] 招聘 Ruby 开发工程师 at 2012年04月22日

    杭州是个好地方

  • will_paginate 是否支持非 model 的数据进行分页? at 2012年04月21日

    支持:

    array.paginate(:page => xx, :per_page => xxx)
    
    
  • erb 只要有中文就报:incompatible character encodings: UTF-8 and ASCII-8BIT at 2012年04月21日

    Rails3.2 居然还用 mysql 驱动!!

  • Ruby China T 恤第二期报名活动开始啦![已结束] at 2012年04月19日

    #73 楼 @reyesyang :-)

  • Ruby 源码 Hack... (鼓足勇气发个,有可能 TJ,慢慢更新) at 2012年04月19日

    #5 楼 @Rei 这个? http://thinkinginruby.group.iteye.com/group/wiki/1262-chinese-version-of-the-ruby-hacking-guide

  • will_paginate 在数据多的时候 count (*) 很慢,有没有办法优化? at 2012年04月19日

    优化方法很多啊 1.使用 MyISAM 表,count 很快的,因为是预先计算出来的。不过带 where 的 count 会慢。 2.使用 counter cache: 比如用户文章列表页面:把文章数量存在用户表里,分页的时候直接指定 total_entries => user.articles_count

    3.计数表: 有些表是没有根的,像 user 表。可以直接创建一个计数用的表用来存储用户总数量,帖子数量,全局访问量等信息。同样是 counter cache 的思路。在分页的时候指定 total_entries => users_count

    4.限制翻页数,比如淘宝的商品最多显示 100 页。

  • will_paginate 在数据多的时候 count (*) 很慢,有没有办法优化? at 2012年04月19日

    counter cache 和计数表

  • Ruby China T 恤第二期报名活动开始啦![已结束] at 2012年04月19日

    来晚了。。。

  • 初级 Rails 怎样成长为中级、高级 Rails at 2012年04月18日

    推荐一个豆列:http://book.douban.com/doulist/1518168/

    可能还需要一些前端和测试方面的,我不熟悉。。

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