Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
hello
@lidashuang
高级会员
第 122 位会员 / 2011-11-17

杭州
24 篇帖子 / 937 条回帖
22 关注者
66 正在关注
101 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 七牛融合 CDN 全面降价,降值达 42% at 2015年11月14日

    [email protected]

  • 今年大家学习新语言的热情明显降低了 at 2015年11月05日

    #34 楼 @crazyjin 人家有说取代 Ruby on Rails 吗?

  • PHP vs Golang vs Node.js at 2015年10月18日

    提前优化

  • 欢迎 3 位新的 Ruby China 社区管理员 at 2015年10月14日

    :plus1:

  • 自己写的 IM,来这边推广一下。 at 2015年09月12日

    toml??

  • [杭州][2015年9月9日] 想谈谈我们如何用 Go 取代 Ruby 重写了我们的 Qor at 2015年09月10日

    #63 楼 @huobazi revel 不是主流了吧,好像大家都用 martini, gin,goji 之类的

  • Lotus 与 Clean Architecture at 2015年09月04日

    真到正式项目,我还是选 Rails

  • Ruby 2.2.3 Released at 2015年08月19日

    本地还在用 2.1

  • Ember.js 2.0 正式发布,移除 1.13 废弃的特性 at 2015年08月13日

    前端发展好快

  • 征集大家意见,关于回帖用树形方式展示,类似 HackerNews at 2015年08月10日

    👍

  • [视频] Rust 0.1 到 1.1 代码变化的可视化效果 at 2015年08月10日

    #1 楼 @appell Go 都 1.5 了,生态比 Rust 好

  • [已解决] 请停止对「Ruby under a Microscope」一书的侵权 at 2015年08月08日

    #51 楼 @blackanger 期待新书,出了马上买

  • 道歉:本来只想推一个活动,可是我玩脱了。 at 2015年08月07日

    感觉有点 小题大做

  • Rails 如何动态定义表结构?已上传了我的方法。 at 2015年07月22日

    mongodb

  • 8 周的 Ruby on Rails 的学习,然后能不能找工作? at 2015年07月08日

    可以的,看水平

  • Erlang OTP18 release 几天了。 at 2015年07月05日

    Elixir 1.0.5 已经支持

  • Cookie 涨姿势了 at 2015年06月26日

    大 cookie 是可以搞攻击的,中间人,插入大 cookie

  • HHKB pro2 Type-S ¥1600 怎么样? at 2015年05月17日

    Type-S 不是要 2k

  • Rust 1.0 发布!新增 Rust 节点。 at 2015年05月16日

    #10 楼 @cassiuschen 两年前用算

  • Rust 1.0 发布!新增 Rust 节点。 at 2015年05月16日

    #7 楼 @cassiuschen 能用的只能选 Go,放弃就算了

  • Rust 1.0 发布!新增 Rust 节点。 at 2015年05月16日

    :plus1:

  • [上海] 薄荷诚聘 Ruby 工程师 3 名 at 2015年05月15日

    :plus1:

  • Ruby 3.0 的未来 at 2015年05月14日

    #2 楼 @ywjno 静态类型还是很期待的

  • Rails 中自动布署工具 mina 的经验谈 at 2015年05月12日

    #16 楼 @lgn21st Passenger +1

  • [广州简悦] 平台组招聘前端工程师, 与云风一起 coding at 2015年05月06日

    Elixir +1

  • 如何管理 SSH Public Key at 2015年04月28日

    写脚本或者自动化的运维工具,比较 puppet,ansible

  • How to write a template engine in less than 30 lines of code at 2015年04月26日

    Elixir 用宏实现的模板 dsl

    defmodule Html do
      defmacro markup(do: block) do
        quote do
          {:ok, var!(buffer, Html)} = start_buffer([])
          unquote(block)
          result = render(var!(buffer, Html))
          :ok = stop_buffer(var!(buffer, Html))
          result
        end
      end
    
      def start_buffer(state) do
        Agent.start_link(fn -> state end)
      end
    
      def stop_buffer(buff) do
        Agent.stop(buff)
      end
    
      def put_buffer(buff, content) do
        Agent.update(buff, &[content | &1])
      end
    
      def render(buff) do
        Agent.get(buff, &(&1)) |> Enum.reverse |> Enum.join(" ")
      end
    
      defmacro tag(name, do: block) do
        quote do
          put_buffer(var!(buffer, Html), "<#{unquote(name)}>")
          unquote(block)
          put_buffer(var!(buffer, Html), "</#{unquote(name)}>")
        end
      end
    
      defmacro text(text) do
        quote do
          put_buffer var!(buffer, Html), to_string(unquote(text))
        end
      end
    end
    
    
    defmodule Template do
      import Html
      require Html
    
      def render do 
        markup do
          tag :table do
            tag :tr do
              for i <- 0..5 do
                tag :td, do: text("Cell #{i}")
              end
            end
          end
          tag :div do
            text "Some Nested Content"
          end
        end
      end
    end
    
  • 中午吃饭的时候同事问"你是用驴逼的?" at 2015年04月18日

    #10 楼 @davidminaki 高

  • 2015年 你打算学习哪门编程语言? at 2015年01月31日

    elixir

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