Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
chenge
@chenge
会员
第 4215 位会员 / 2012-10-25

上海
425 篇帖子 / 1790 条回帖
51 关注者
95 正在关注
339 收藏
遇见,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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Ruby 常量可以赋值??? at 2013年05月29日

    #17 楼 @xautjzd

    
    class Test
       attr_writer :count
       def initialize 
        @count = 2
      end
       def add
          @count += 1
           puts @count
        end
    end
    test = Test.new
    test.count =5
    #puts Test.count
    test.add
    
    
  • Ruby 常量可以赋值??? at 2013年05月29日

    #14 楼 @xautjzd 这个中文翻译没有统一,最好是就代码来说。@就是实例变量吧。另外还有@@,这个不推荐使用。

  • Ruby 常量可以赋值??? at 2013年05月29日

    #12 楼 @xautjzd 你熟悉别的语言么。我觉得学会用@,基本上就可以了。

  • 有没有觉得微博的信息太庞杂了,有用信息太少 at 2013年05月22日

    微博很重要的,可以开阔眼界。当然不要指望每天都能看到有用的。

  • 求助一个很诡异的问题 at 2013年05月20日

    可能还是那个 source 命令的问题。第一次安装好了,但是环境文件没有配置好,二次启动就错了。

  • 牢骚下,Linux 下 QQ 真实头大 at 2013年05月19日

    熟悉 mac 只需要三天。腾讯有个 linux 版本的 qq,不好用。linux 适合于搞开发。

  • 一个重构代码的问题 at 2013年05月17日

    alias old_name, name 估计可行

  • 一个重构代码的问题 at 2013年05月17日

    好像是用 alias 吧。重新定义 name

  • 大家喜欢合作吗? at 2013年05月16日

    《极客与团队》前段时间有看,讲了一个人际原则 HRT,humble,respect,trust。 关键要找对人,原意合作的人,很多事情就简单。 自私傲慢就麻烦,容易官僚主义。

  • Ruby 怎么实现文件上传 at 2013年05月15日

    可以考虑转为 csv 格式,解析比较容易。

  • Ruby 怎么实现文件上传 at 2013年05月15日

    exl 是什么?

  • Teahour.fm 15 期,访谈嘉宾项新智 (@xinzhi) at 2013年05月13日

    听了一小段,感觉你们在盘查别人。

  • Rails Migration 写得心烦 at 2013年05月13日

    看来不是我一个人觉得这个麻烦。哪位能否分析一下好的做法?

  • 问大家一个 programming ruby 第二版第三章的一个问题 at 2013年05月11日

    #4 楼 @blacktulip 第一版吧

  • cap deploy 一直报这个错误 at 2013年05月11日

    最后一行,therubyracer 安装一下。

  • 问大家一个 programming ruby 第二版第三章的一个问题 at 2013年05月11日

    好像是有问题

  • 问大家一个 programming ruby 第二版第三章的一个问题 at 2013年05月11日

    你把代码贴出来可能清楚点

  • 正确性证明的问题 at 2013年05月11日

    网上说 coq 用于法国的地铁软件,无人驾驶,效果很好。还是很鼓舞的。 用于 os 这样的似乎还不现实。

  • 正确性证明的问题 at 2013年05月11日

    #1 楼 @bhuztez coq 可以辅助证明 haskell,是这个意思么?

  • 部署中,创建数据库时,报错 “连不上数据库”,求解答『已解决』 at 2013年05月09日

    mysql_config --socket 试试看

  • 部署中,创建数据库时,报错 “连不上数据库”,求解答『已解决』 at 2013年05月09日

    用别的软件连接数据库看?

  • Haskell 逆波兰计算例子 at 2013年05月09日

    #7 楼 @luikore 效果不错。加上浮点数方便么?

  • Haskell 逆波兰计算例子 at 2013年05月08日

    #2 楼 @Tony612 例子没有递归

  • Haskell 趣学指南 at 2013年05月08日

    #1 楼 @jiyinyiyong 谢谢,内容差不少。

  • ruby 能否像 haskell 一样实现 reverse at 2013年05月08日

    #1 楼 @zgm

    def reverse a 
        return [] if a==[]
        first,*rest = *a
        reverse(rest).push(first)
    end
    
  • codeschool 挂了? at 2013年05月07日

    看看如何? http://www.diguage.com/archives/14.html

  • codeschool 挂了? at 2013年05月07日

    一定要这个么?视频有优点,不过效率比较低。 地瓜哥写的 rails 抄书笔记感觉还行。

  • linux 分享随笔:linux 使用的六个管理 at 2013年05月07日

    #1 楼 @zgm 改好了

  • 推荐好书《代码之美》 at 2013年05月06日

    第七章是一个二分查找的测试例子,下面的 java 代码有 bug,你能看出来么?

    public static int buggyBinarySearch(int[] a, int target) {
                    int low = 0;
                    int high = a.length - 1;
                    while (low <= high) {
                        int mid = (low + high) / 2;
                        int midVal = a[mid];
                        if (midVal < target)
                            low = mid + 1;
                        else if (midVal > target)
                            high = mid - 1;
                        else
                            return mid;
                       }
                       return -1; 
    }
    
  • 上一页
  • 1
  • 2
  • …
  • 31
  • 32
  • 33
  • 34
  • 35
  • …
  • 56
  • 57
  • 下一页
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English