Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Leslie Zhang
@fighterleslie
Member
NO. 23338 / 2015-11-04

[email protected]
Udesk
北京
1 Topics / 90 Replies
1 Followers
18 Following
133 Favorites
Keep calm and move on!
GitHub Public Repos
  • incident_management_sh... 1

    share on incident management

  • fighterleslie 0

    my secret! repo

  • decoding-bitcoin 0

    A platform with tons of interactive demos and exercise to learn bitcoin

  • awesome-oss-alternatives 0

    Awesome list of open-source startup alternatives to well-known SaaS products 🚀

  • go-gin-example 0

    An example of gin

  • awesome-productivity 0

    A curated list of delightful productivity resources.

  • test-smells 0

    A workbook repository of example test smells and what to do about them.

  • qwerty-learner 0

    为键盘工作者设计的单词记忆与英语肌肉记忆锻炼软件 / Words learning and English muscle memory training software designed fo...

  • awesome-nocode-lowcode 0

    A curated list of awesome nocode and lowcode ressources for building software without code.

  • awesome-database-learning 0

    A list of learning materials to understand databases internals

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • [北京] 北大 - 清华女神创业团队,诚聘 Ruby 开发大牛! at November 18, 2017

    😍

  • [北京] 才华横溢 (共享教育项目) Ruby 全栈开发工程师 (薪资 1.8K~8.8K) at October 27, 2017

  • [北京] 才华横溢 (共享教育项目) Ruby 全栈开发工程师 (薪资 1.8K~8.8K) at September 27, 2017

    有吃苦耐劳者优秀考虑;

    吃不了苦,光速逃

  • [成都] 百词斩 - RubyServer 开发 15K-35K at November 14, 2016

    百词斩后端原来是 Ruby 做的呀,棒棒的

  • [厦门] T 社招聘后端开发工程师 at November 13, 2016

    先把衣服质量做好再说吧

  • [成都][10K] 拓力森科技招聘初级 Ruby 软件开发工程师 at August 19, 2016

    友情帮顶!

  • 从 ROR 转 Node 如何开始? at August 05, 2016

    #36 楼 @howiehu 是你自己的理解有些问题吧

  • Rails 里 &. 这样的用法是什么意思 at July 02, 2016

    单身狗运算符

  • 办公室午睡最佳实践? at June 29, 2016

    @cqcn1991 去哪上班啦?

  • 为什么一般都不推荐在 Windows 上玩 ruby? at April 17, 2016

    @msg7086

  • [北京][2016年4月15日] 来自 OneAPM 的 Danny Davila 邀请大家分享学习 Ruby / Rails 的经验 at April 04, 2016

    已报名

  • [北京] 白帽汇招工匠 at March 21, 2016

    Hi, 美女 HR 你好!

    公司的办公地址是:

    北京市顺义区后沙峪

    请问员工的住宿和交通问题怎么解决?你们都住哪?

  • 都说 Rails 过时了,那么怎样的 Rails 才不会过时? at March 20, 2016

    Rails 在发展的起初首先提出 MVC 框架的概念

    MVC 这个架构模式首次提出来是在 1979 年,有兴趣可以 google 下 SmallTalk-80 MVC,Rails 的 MVC 属于一种叫做 Model-II 的 MVC 变体

    Fat Controller 可能变成 Thin Controller,而 View 合并了一些 Controller 的功能,走向重 View,其中承担了原来 Controller 的一部分功能。

    Rails 的 convention 一直都是 thin controller,fat controller 本来就是不对的。

    前后端分离的目的是为了解耦,让前后端成为正交的,两者可以分别迭代,互不影响。"View 承担 controller 的功能"。。。这是从何说起啊?

    Ruby 程序员都很懒,大家适应不了其他语言

    我怎么觉得 Ruby 程序员都很 open-minded,视野开阔,兴趣广泛。。。

    总之,原 po 槽点略多啊。。。

  • 是不是像石家庄这种的小城市都没有公司用 ruby 呢 at March 19, 2016

    #33 楼 @tianlitao 能否加个微信啊。wechat: fighterleslie

  • 是不是像石家庄这种的小城市都没有公司用 ruby 呢 at March 17, 2016

    #26 楼 @tianlitao 楼主校友路过。。。

  • Kill Your Dependencies at March 17, 2016

    #1 楼 @tianzhen

    这个不算吧! 只要 Gemfile 中做好分组,用 RSpec 还是 Minitest 都不影响 production 环境。

  • WebAssembly 已经在 Chrome Canary 被支持,也许很快就能用 Ruby 写前端了 at March 16, 2016

    JS 药丸

  • Ruby China 的 RubyGems 镜像上线 at March 12, 2016

    #66 楼 @xiaohuacc 你的 source 没有换过来吗?怎么还是用的 https://ruby.taobao.org/ ?

  • form_for 下面的 select 怎么定义 class 属性? at March 12, 2016
    <%= f.select(:page, options_for_select([['首页','sy']]), {}, { class: "xxx" }) %>
    

    参考:

    • http://stackoverflow.com/questions/4081907/ruby-on-rails-form-for-select-field-with-class
    • http://stackoverflow.com/questions/21338113/cant-add-class-on-select-form-helper-in-rails-4
    • http://stackoverflow.com/questions/12486795/ruby-f-select-syntax-for-assigning-css-class
  • [深圳] 萌萌学车,诚邀 0-1 岁的 Rails 工程师一起成长 at March 06, 2016

    赞诚意 路过帮顶!

  • rvm -v 命令 at March 06, 2016

    没用过 rvm,一直用 rbenv

    命令行运行 echo $PATH 和 echo $GEM_HOME 输出啥?

    貌似 $PATH 的开头必须是 $GEM_HOME/bin 才不会输出这个 warning

    利用这个帖子里面的内容解决方法 没有解决

    能否详细说说你具体怎么操作的?

  • Mac OS X 中 brew 搭建 Ruby on Rails 环境 at March 04, 2016

    #2 楼 @springwq

    To quote 12-factor:

    Keep development, staging, and production as similar as possible

  • Rails 5.0 安装的问题 at March 04, 2016

    gem i rails -v 5.0.0.beta3

  • 怎么获取对象的字面值? at March 03, 2016

    #11 楼 @rubysir

    class Object
      @_binding = binding
    
      def literal(b = @_binding)
        r = eval("local_variables", b).map(&:to_s)
        t = object_id
        r.each do |v|
          t2 = eval("#{v}.object_id", b)
          return v if t == t2
        end
    
        return "#{self}"
      end
    end
    
    # test
    f = [1, 2, 3]
    puts f.literal(binding)     # => 'f'
    puts [1, 2, 3].literal(binding)   # => "[1, 2, 3]"
    

    然而这并没有什么用

    # test
    f = [1, 2, 3]
    f2 = f
    puts f2.literal(binding)   # => "f"
    

    😄

  • 怎么获取对象的字面值? at March 03, 2016

    #6 楼 @zlx_star 我猜楼主的意思是返回字符串 "f"

  • 怎么获取对象的字面值? at March 03, 2016

    #3 楼 @rubysir 不可能吧,变量 f 只是个指针而已

  • 怎么获取对象的字面值? at March 03, 2016

    定义方法返回 self:

    def f.m2
      self
    end
    
    f.m2.equal?(f)   # => true
    
  • Ruby 版本控制 at March 03, 2016

    Maintenance of Ruby 2.0.0 ended on February 24, 2016.

    Ruby 2.0 已经不再受官方支持了,建议直接用 ruby 2.3.0

    后面为了学习 rails 使用 rvm 安装了 ruby 2.0.0p643 (2015-02-25 revision 49749) [x86_64-linux]

    用 2.3 也不影响你学 Rails 啊!

    2.1 是系统自带的,不要删除。我有一次把系统自带的 python 删除了,呵呵,那酸爽,整个图形界面全挂掉了,你要不要试试。。。

  • [翻译] Ruby Monk - 深入 Ruby block (一) at March 02, 2016

    翻译是很辛苦的,点个赞!

    但是不得不说,不推荐继续翻译或者继续以 Ruby Monk 作为学习资料,因为原文中的错误实在太多了,容易对初学者产生误导。

    The lambda keyword is what is most commonly used to create a block in Ruby.

    lambda 什么时候是关键字了?

    Are blocks objects? Yes, like almost everything else in Ruby, they are.

    block 什么时候是对象了?

    虽然作者的初衷可能是有意地简化概念,故意混淆 block/proc/lambda 的概念以方便初学者理解。但是该踩的坑迟早得踩,该理解的概念迟早得理解,并没有捷径可走。

    相比 Ruby Monk,个人更推荐 Ruby Koans。

  • [请教] update_attributes! 这里的感叹号是起什么作用? at February 26, 2016

    api.rubyonrails.org

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