Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Hooopo
@hooopo
Admin
NO. 8 / 2011-10-28

[email protected]
nil
北京
160 Topics / 3013 Replies
360 Followers
0 Following
74 Favorites
聪明的妖怪录下了唐僧的紧箍咒
Reward
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
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • [成都] 超有爱教育科技招聘 Rails 大牛 at May 02, 2012

    囧

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

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

  • Ruby 除了 Rails 还能做什么 at April 28, 2012

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

  • [双飞燕] 闭包和绑定疑问 at April 28, 2012

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

  • config.threadsafe!: JUST DO IT at April 27, 2012

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

  • 问个冷门点滴,重构那些事 at April 27, 2012

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

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

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

  • config.threadsafe!: JUST DO IT at April 26, 2012

    #3 楼 @Saito 搞一个哇!

  • config.threadsafe!: JUST DO IT at April 26, 2012

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

  • You might have expected an instance of Array 的时候的屏蔽方法 at April 25, 2012

    #4 楼 @ywencn 太丑了

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

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

  • Rails 3+ 默认使用 erubis ? at April 25, 2012

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

  • Rails 中 save 的事务问题 at April 25, 2012

    显然是没保存成功

  • Is Node.js Better? at April 24, 2012

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

  • Is Node.js Better? at April 24, 2012

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

  • rubychina 最近咋感觉好慢啊 at April 24, 2012

    #30 楼 @skandhas O_o

  • Is Node.js Better? at April 24, 2012

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

  • Is Node.js Better? at April 24, 2012

    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 April 24, 2012

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

  • ruby 可以骇客么? at April 24, 2012

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

  • 一个提议 at April 23, 2012

    支持

  • [杭州 - 滨江] 招聘 Ruby 开发工程师 at April 22, 2012

    杭州是个好地方

  • will_paginate 是否支持非 model 的数据进行分页? at April 21, 2012

    支持:

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

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

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

    #73 楼 @reyesyang :-)

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

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

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

    优化方法很多啊 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 April 19, 2012

    counter cache 和计数表

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

    来晚了。。。

  • 初级 Rails 怎样成长为中级、高级 Rails at April 18, 2012

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

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

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