Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Gao Jun
@Gao-Jun
会员
第 85288 位会员 / 2020-09-15

复旦大学
上海
3 篇帖子 / 12 条回帖
0 关注者
0 正在关注
0 收藏
GitHub Public Repos
  • www.ruby-lang.org 0

    Source of the https://www.ruby-lang.org website.

  • ruby-eventsource 0

    Server-Sent Events client for Ruby

  • api-client-builder 0

  • rucaptcha 0

    Captcha Gem for Rails, which generates captcha image by Rust.

  • ruby-ts 0

    Bring ruby methods to JS.

  • opencast 0

    The free and open source solution for automated video capture and distribution at scale.

  • Canvas-Note 0

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 使用 Github Primer Design System 设计和 Github 风格一致的布局 at 2025年01月01日

    看着不错,只是离 stable 似乎还很遥远。生产环境不敢用。

  • 37signals Writebook 源码学习 (2) - routes.rb at 2024年11月22日

    我觉得没啥深层含义。可能就是开发过程中,routes 是在不同历史时期不同人定义的。

  • ruby on rails 这个名字意思是铁轨上有红宝石,会不会太危险了? at 2024年11月21日

    根据 Logo,也许指的是红宝石在铁轨边?

  • Rails World 2024 Opening Keynote - David Heinemeier Hansson at 2024年09月29日

    Rails 8 的思路还是不错的。一方面减少外部依赖:Solid Cache 如果真如 DHH 所述的那样,性能和 Redis 不相上下,那应用里多个 sqlite 文件做缓存真是一个很好的解决策略;Solid Queue 终于弥补了 Rails 没有默认 Queue 的问题;Thruster 可以在但应用场景下替换 Apache / Nginx。另一方面解决实际痛点,Kamal 2 的 5 分钟 Demo 还是很惊艳的。

  • 请教,Rails 支持操作 word、excel 这些文档吗? at 2024年06月20日

    处理 excel 方面,用过 roo, spreadsheet, RubyXL。 用下来 RubyXL 适用性最好。

  • 2024 年了,你还在使用其他高性能 Ruby 框架吗? at 2024年03月16日

    所谓的“高性能”其实是相对的。对于绝大多数的使用场景来说,主流框架的服务能力都能够满足需要了。 即使面临一些高并发的情况,堆硬件也基本可以满足。 在这个背景下,Rails 这种功能全面的框架更具实用性。

  • ruby 已换源为 ruby-china,为什么 rails new 还是用的 rubygems 呢 at 2023年12月06日

    rails 用 bundler 来管理 Gems,所以还需要设置 bundler 的配置。

    bundle config mirror.https://rubygems.org https://gems.ruby-china.com/
    
  • 大家一般用 Ruby 都来做什么?(除了 Rails) at 2023年11月05日

    基于 Thor 做各种命令脚本。基于 Faraday 做各种 RESTful API 调用接口。 开发效率高,做起来够快。

  • 请教一个 Ruby 语法问题 at 2023年10月12日

    紧接着的下一句话是:

    However, it had to come back in version 2.7 onwards upon popular demand. Therefore, to run flip-flop code and follow along with our examples, you will need a Ruby installation with version > v2.7 (or < v2.6).

    讨论 https://bugs.ruby-lang.org/issues/5400 的结果也是继续保留。从讨论过程看,的确在一些场景下,这个语法很方便。

  • 请教一个 Ruby 语法问题 at 2023年10月11日

    原来如此,明白了。谢谢。

  • 请教一个 Ruby 语法问题 at 2023年10月11日

    对于

    (n==2)..(n==3)
    

    n 如果未定义,报错信息为 undefined local variable or method `n' for main:Object (NameError)

    将 n 先初始化一下,例如 n=2,报错信息变为 bad value for range (ArgumentError)

  • 使用 2.7.1 后性能和内存消耗都变差了 at 2020年09月15日

    后面一个问题,用 JRuby 就可以了。

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