Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
chenge
@chenge
Member
NO. 4215 / 2012-10-25

上海
425 Topics / 1790 Replies
51 Followers
95 Following
339 Favorites
遇见,Ruby 2005,Elixir 2016, Go、V 2021
GitHub Public Repos
  • simple-ruby-guide-zh 30

    Ruby简明入门和提高

  • NTT 1

    Kenneth E. Iverson, Notation as a Tool of Thought 中文翻译 - 1979 ACM Turing Award Lecture

  • kerkour.com 0

    Code accompanying my blog https://kerkour.com

  • gatsby-starter-blog 0

    Gatsby starter for creating a blog

  • chenge-blog 0

  • cgblog 0

  • now-github-starter 0

    Starter project to demonstrate a project whose pull requests get automatically deployed

  • chenge.github.io 0

  • gatsby-starter-default 0

  • slate 0

    Beautiful static documentation for your API

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 在线培训的收费模式 at November 17, 2016

    订阅比较好吧。真想学的肯定不是学一个,每个都买会很繁琐吧。

    如果提供两种不好么?

  • Rails 应用在架构设计上的不足 at November 17, 2016

    #6 楼 @Xenofex 他是先肯定了 CoC 的,只是说过度使用的问题。Rails 学习难度比较大也是这个原因,有很多隐含的设定。类似于所谓的潜规则,长期来说还是明规则比较好。

    Conventions over configurations What could be wrong with conventions? We should praise Rails for giving us naming convention about database stuff, that makes sense.

    But some developers take it too literally and go mad with it. They introduce their own extra conventions. And they are usually implemented with hardly readable metaprogramming code.

    The bad thing about conventions is that they are implicit. So if there's too many of them, it can be hard to remember why everything is done in a way it is done.

    Even default conventions might become too tight for you when your app grows. So just remember that the price of convention is flexibility.

  • Rails 应用在架构设计上的不足 at November 16, 2016

    #1 楼 @Rei 他提到了 Hanami,还有一些:

    “Or you can rely on tools. You can start using tools with modularity ideas built in, like Lotus or ROM. Of course, there is a less radical way. You don't always have the luxury of starting from scratch, but you can tweak Rails to provide some complexity management. Some of of the tools that may help you:

    • collectiveidea/interactor
    • apotonick/trailblazer, apotonick/cells
    • makandra/active_type”
  • 这个 repository 模式实现看上去还不错 at November 16, 2016

    #6 楼 @darkbaby123 我感觉 Hanami 框架(原来名 Lotus)值得了解,我看目前是 v0.9, github 也有三千多粉丝了。

  • 这个 repository 模式实现看上去还不错 at November 15, 2016

    #3 楼 @darkbaby123 补充一下,AR 不方便测试,这也是用贫血的理由。

  • 这个 repository 模式实现看上去还不错 at November 15, 2016

    #3 楼 @darkbaby123 主要是要确保可修改性,也就是根据需要,快速地判断修改点和影响面。 避免搞成大泥球,宁可多写点代码,不能坏了结构。

  • 这个 repository 模式实现看上去还不错 at November 15, 2016

    #1 楼 @darkbaby123 我有一个思路,就是用贫血模型的 AR,也就是只负责数据,不写业务规则,这样就符合 SRP 原则了。

    业务规则放在 service 上,也许加 helper 什么的。

    确实 Repository 没有看到好用的,所以没流行起来。

  • 2016 年末,用户登录注册系统,Devise 还是优秀的选择吗? at November 14, 2016

    rails 自带的 has_secure_password,可以看看符合需求不。

  • Sidekiq 任务调度流程分析 at October 30, 2016

    可以组织人写本书《七周七源码》,形式不错,利于学习。

  • Sidekiq 任务调度流程分析 at October 30, 2016

    好,我也找时间阅读下这个代码,谢谢分享,期待更多大作。

  • 函数参数疑问 at August 20, 2016

    #4 楼 @shallmentmo 看来还是个复杂的问题。我看了那个英文解释,似乎也没看懂,说是第三种,引用值传递。

    简单来说,可以认为是引用传递,数值除外。

  • 函数参数疑问 at August 20, 2016

    可以区分简单数值和复杂容器对象吧,比如数组和散列。可以用 clone 来避免这种情况吧: a.clone.push b

  • 请教为什么运行 Rails s 之后,浏览器看不到任何东西。 at August 19, 2016

    new 一个新的看如何。一般是 webrick 服务器吧。

  • [Reco] 写了个推荐链接的 side project,发来这里想知道你们的看法~ at August 12, 2016

    #7 楼 @1c7 自动判断用户兴趣,推荐。

  • [Reco] 写了个推荐链接的 side project,发来这里想知道你们的看法~ at August 12, 2016

    可否增加自动推荐功能?

  • [Reco] 写了个推荐链接的 side project,发来这里想知道你们的看法~ at August 12, 2016

    挺不错的

  • Ruby 的实例变量的 scope at May 11, 2016

    #8 楼 @uestc_bird 类本身也是一个对象实例。与 new 的实例是不同的,@只能在方法内定义。

  • 如何在 view 中 render controller 的参数 at May 09, 2016

    #10 楼 @roccia 建议先用静态页面方式。再研究下 ajax 原理。回到基础,不能靠猜。

  • 如何在 view 中 render controller 的参数 at May 09, 2016

    ajax 应该有返回处理吧,估计是 ajax 协议问题。

  • 如何在 view 中 render controller 的参数 at May 09, 2016

    是 ajax 的问题吧。控制器加 puts 看运行情况。

  • 如何在 view 中 render controller 的参数 at May 09, 2016

    你的预期是图么,返回是 js 代码吧。

  • 如何在 view 中 render controller 的参数 at May 07, 2016

    #2 楼 @roccia 电脑上看正常,手机上看不行。 你似乎用了 js 插件 piechart。看是否把问题细分一下,目前不容易看懂。

  • 如何在 view 中 render controller 的参数 at May 06, 2016

    代码截图吧,乱东西没人看的吧。

  • Ruby 方法传递实例变量的问题 at May 04, 2016

    不需要传递的。

  • 做一个小而美的 Ruby 培训工作室是否会有市场呢? at March 17, 2016

    #12 楼 @apkbus 学费高估计难,别人怎么相信你呢?总的感觉市场不大,而且也不是谁都能学会的。

  • 你是如何跟踪开源软件的最新技术进展的? at March 02, 2016

    #10 楼 @nowherekai 不错。go 排第一,ruby 第四。看来多了个学习 go 的理由。

  • 看过 yinwang 写的这篇文章, 很想了解大家怎么看的 at January 30, 2016

    我也来凑下热闹,王的话虽然夸张,不过多少有些道理。动态语言有两个弱点就是可变数据,重构弱。大项目是需要工具支持重构的。 我最近打算转向 clojure。clojure 和 scala 的重构支持不知如何,java 的重构支持比较好的。

  • 测试到底是什么? at January 28, 2016

    减少 bug。现在还有 minitest,可以选用。

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