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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Ruby 有没有官方 Language Reference? at 2012年09月05日

    #17 楼 @iwinux this page was last modified on 20 July 2012, at 19:43. 看起来还有人在维护

  • Tail call optimization In Ruby1.9 at 2012年09月05日

    #12 楼 @fsword 不是吧

    这是《Erlang 编程指南》里的一段话:

    关于Erlang性能的主要传说之一:Erlang中尾递归要比直接递归有效的多。在该语言初期也许是真的。但在对发行版7到12进行了优化之后,如果还继续认为尾递归让你的程序更有效率那就不再正确了。
    

    难到不是说 Erlang 里非尾递归也会很有效率?

    不是你说的只有程序员写成尾递归寒数编译器才能优化吧

  • Tail call optimization In Ruby1.9 at 2012年09月05日

    #10 楼 @fsword 那传说的 Erlang 尾递归优化是指的什么?

  • Tail call optimization In Ruby1.9 at 2012年09月04日

    #8 楼 @fleuria 看来只能避免stack level too deep

    更确切的说是能避免尾递归写法的stack level too deep?

  • Tail call optimization In Ruby1.9 at 2012年09月04日

    #5 楼 @luikore 看来是我理解错了。我以为会像 Erlang 那样把非尾递归的写法转换成尾递归写法。

  • Tail call optimization In Ruby1.9 at 2012年09月04日

    #1 楼 @jjym 因为貌似只有 MRI 有。

  • Rails 技巧之 tap & try at 2012年09月04日
    依旧先看源码(rails 3.2.8)
    

    你引用的是 Rails4.0 的源码。。3.8 的在这:https://github.com/rails/rails/blob/3-2-stable/activesupport/lib/active_support/core_ext/object/try.rb#L32

  • 各位怎么管理 css 和 javascript assets at 2012年09月04日

    #13 楼 @camel 这就是简单的小学数学题目啊 假设你有公共的 css 是 akb,你按需加载成 n 份。用户访问了 m 个不同页面。 1.最坏情况多建立了 m-1 次 http 请求 2.最坏情况浪费了 makb 的宽带

  • 建议把这个小贴士去掉吧. at 2012年09月03日

    100

  • 我做了一个 sinatra 的小应用,上线部署后吃了 500M 内存 at 2012年09月03日

    一个进程就行啊。。

  • 各位怎么管理 css 和 javascript assets at 2012年09月03日

    #8 楼 @bhuztez 这要看 css 和 js 到底有多大。假设是 500k 的,开启 gzip 以后也就 100k。现在一个 100k 的图片很普通吧。

  • 各位怎么管理 css 和 javascript assets at 2012年09月03日

    @Saito 我觉得用一个文件好。 如果用户只访问一个页面,你亏了。 但是如果用户访问 2 两个页面或以上,你就赚大了。

  • 悲催一下午的验证码噩梦 at 2012年09月02日

    一个 gem 为啥要依赖 bundler?

  • Ruby 除了 Rails 还能做什么 at 2012年09月02日

    http://www.slideshare.net/kenneth.kalmer/ruby-behind-the-scenes

  • 建议把这个小贴士去掉吧. at 2012年09月01日

    我不喜欢某些自我感觉良好的品味感。包括一些 Ruby/Rails 程序员,或是 Vim/Emacs/Textmate 用户...应该骄傲的是你做了什么而不是你用什么工具做。

    我更喜欢_why 的这句话加进小贴士:

    When you don't create things, you become defined by your tastes rather than ability. Your tastes only narrow and exclude people. So create.
    
  • 通知功能加入了实时提醒功能 at 2012年08月31日

    提醒有问题啊 刚才看到自己的帖子有回复,可是没看到提醒。 前一段时间还有一次一下子出来 12 个提醒。

  • 说一说你最最常用的 linux 命令有哪些,也算是给新手指导 at 2012年08月31日

    ls

  • 一边敲代码,一边看后台 at 2012年08月31日

    #6 楼 @jinleileiking colored logger 啊,这个颜色可以关闭的。

  • Ruby 版 Ack at 2012年08月31日

    #6 楼 @jinleileiking No,我用 vim 不用插件。

  • 没在 Rails 代码里见到过 try..catch 和事务管理 at 2012年08月31日

    #13 楼 @luikore 编程事务是指这种么? https://github.com/nkallen/cache-money/blob/master/lib/cash/transactional.rb

  • Rails3 Helper 默认全加载 at 2012年08月31日

    这篇文章不错:http://henrik.nyh.se/2012/08/helpers

  • Ruby 版 Ack at 2012年08月30日

    #3 楼 @luikore 还好 https://github.com/danlucraft/rak

  • 通知功能加入了实时提醒功能 at 2012年08月30日

    #21 楼 @ywencn 没看到桌面通知

  • 通知功能加入了实时提醒功能 at 2012年08月30日

    谁来 at 我一下

  • Ruby 有没有官方 Language Reference? at 2012年08月30日

    可以考虑建一个。

  • Ruby 有没有官方 Language Reference? at 2012年08月30日

    #4 楼 @iwinux 我记得以前的《programming ruby》是可以在线找到的

  • 什么时候需要增加测试 at 2012年08月30日

    #8 楼 @xds2000 我用 rails best practices 和 brakeman 就是为了检查自己疏漏的地方。不会按每个分析结果去改。。效果还不错。

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