Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
刘宏庆
@ane
Member
NO. 8972 / 2013-09-02

[email protected]
听云
天津
84 Topics / 417 Replies
15 Followers
12 Following
59 Favorites
做一个快乐的程序员
GitHub Public Repos
  • course 0

  • postgres 0

    practice postgres

  • LeetCode 0

    LeetCode刷题记录与面试整理

  • ralgo 0

  • pghero 0

    A performance dashboard for Postgres

  • ActiveRecordExtended 0

    Adds additional postgres functionality to an ActiveRecord / Rails application

  • kitsu-server 0

    :steam_locomotive: Rails API server for Kitsu

  • pg_search 0

    pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search

  • fx 0

    Versioned database functions and triggers for Rails

  • Robinhood 0

    Unofficial Documentation of Robinhood Trade's Private API

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 闭包如何访问外部变量 at February 10, 2014

    #13 楼 @rasefon 他那个一定会报错啊,undefined,都不知道 a 是什么了,就先用

  • 闭包如何访问外部变量 at February 10, 2014

    #11 楼 @cwheart 我记得 var 变量好像是预习声明,后赋值

  • 闭包如何访问外部变量 at February 10, 2014

    #6 楼 @cwheart 这也是我的疑问的地方,是不是内部定义 name,会覆盖闭包对外部的引用环境?

  • 闭包如何访问外部变量 at February 10, 2014

    #4 楼 @zj0713001 是不是内部定义 name 变量,就会覆盖外部环境在闭包中作用域上下文?

  • js 面向栈的问题 at February 10, 2014

    #12 楼 @saiga “类似 Java 的内部类是在编译时给 内部类一个隐含成员指到外部实例。Javascript 就是通过作用域链查找到上一个执行上下文。”这句话让我想起来,当年看 threadlocal 源码的时候遇到过,现在幡然明白,那样写的原因

  • js 面向栈的问题 at February 10, 2014

    #12 楼 @saiga 好人一生平安

  • 闭包如何访问外部变量 at February 10, 2014

    #1 楼 @search 哦,也行吧,如果非浏览器

  • js 面向栈的问题 at February 10, 2014

    #9 楼 @frank_128 😅你赢了

  • js 面向栈的问题 at February 10, 2014

    #5 楼 @linjunhalida “localVar 被放在 testFn 的堆中”这样说也不太对。大多数人会解释为“testFn() 的作用链保存了上下文环境”。不知道说的对不对,求进一步详解

  • js 面向栈的问题 at February 10, 2014

    #5 楼 @linjunhalida localVar 被放在 testFn 的堆中

  • js 面向栈的问题 at February 10, 2014

    #3 楼 @rasefon 哦,我想通了

  • js 面向栈的问题 at February 10, 2014

    #1 楼 @jasli2 此话怎解,可否细细道来

  • 10w 并发的服务器方案 at January 21, 2014

    #24 楼 @xiaoronglv 哈哈,好,换个

  • 10w 并发的服务器方案 at January 21, 2014

    #20 楼 @cassiuschen 12306 是个奇葩

  • 10w 并发的服务器方案 at January 21, 2014

    #16 楼 @zeeler 就是要找忽悠老板的方案,我估计老板自己心里多少应该有点概念。这个不是我闭门造车的能出来的

  • 10w 并发的服务器方案 at January 21, 2014

    #13 楼 @zeeler 五六台大概什么配置额服务器?

  • 10w 并发的服务器方案 at January 21, 2014

    #10 楼 @zeeler 主要是目前处于 demo,阶段。你说,要是用 node 先写个简单的匹配程序,靠谱吗

  • 10w 并发的服务器方案 at January 21, 2014

    #8 楼 @zeeler 是啊,你说的这些我懂,可用户和老板不懂,老板跟我要方案,搞的我头大,用户基本没啥要求,就是一个支持 10w,追问其他的,他让你想。。。

  • 10w 并发的服务器方案 at January 21, 2014

    #6 楼 @zeeler 它还真不是 push,用途就是手机给服务器发端数据,服务器将数据处理以后返回给手机

  • 10w 并发的服务器方案 at January 21, 2014

    #1 楼 @wushexu 肯定不可能一台服务器,只是策划一下,大约需要多少台什么配置的机子,如果用云可不可以

  • 10w 并发的服务器方案 at January 21, 2014

    不是吧,刚刚 google 一下,居然第一个就是我的这个问题

  • proc 中的 return at January 06, 2014

    #10 楼 @piecehealth 如果我刚才测试代码没有写错的话“p = Proc.new { puts "hello test" ; return}”这样写是 OK 的,但“p=procbuilder( )”会报错。用的 ruby2.0

  • proc 中的 return at January 06, 2014

    #7 楼 @piecehealth “p 的作用域跟 test1 方法的作用域相同,所以里面的 return 跟在方法里 return 一样的。”这点,我同意。鼠标不行就换

  • proc 中的 return at January 06, 2014

    #4 楼 @piecehealth “p=procbuilder( )”会将最后一行返回,不就是给 p 赋值 Proc.new { puts "hello test" ; return}吗?然后再 p.call,感觉也 OK 啊

  • proc 中的 return at January 06, 2014

    #2 楼 @piecehealth 那为什么“p= Proc.new { puts "hello test" ; return} ”这个可以

  • alias 后的影响 at January 06, 2014

    #3 楼 @sallon88 能详细解释一下你的“method_body = method :hello”这行吗?因为我不知道这个 method:是什么意思,它属于那个类库,是那个类之类的信息,或者给我一个 google 的关键字,让我进一步了解一下

  • Proc.new 的求解释 at January 06, 2014

    #1 楼 @iBachue 哦,刚又试了一边真可以,可能是第一次写错了,没注意吧

  • alias 后的影响 at January 06, 2014

    #3 楼 @sallon88 数据表这种思考方式,很像 java 虚拟机的工作方式啊

  • 天津 2013 年 的第一场雪 at December 17, 2013

    #9 楼 @hailong0707 现在,灰茫茫一片

  • 天津 2013 年 的第一场雪 at December 17, 2013

    #7 楼 @jimrokliu 嗯,时光荏苒

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