Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
题叶
@jiyinyiyong
VIP
NO. 90 / 2011-11-14

杭州
61 Topics / 518 Replies
24 Followers
0 Following
14 Favorites
题叶
GitHub Public Repos
  • tiye.me 5

    @tiye Page

  • weibo-backup-crx 5

    a Chrome extension to backup my weibo

  • learning-notes 2

  • neu-tab 1

    Personal "New Page" Chrome extension

  • blog 1

    [Deprecated] Old Blog of JiyinYiyong

  • logo 1

    Avatar of Tiye

  • favored-fonts 0

    Fonts CDN

  • storage-download-script 0

    Script for downloading server data as backup

  • repo.tiye.me 0

    backups

  • topics.tiye.me 0

    Bookmarks as topics of jiyiyinyiyong

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • Yoleo RSS Reader, 吐槽下 JS at June 27, 2013

    #35 楼 @iBachue 说起来,, 有点纠结为什么人家书写那么长..

  • Yoleo RSS Reader, 吐槽下 JS at June 27, 2013

    #32 楼 @iBachue 说起来的确是的样子,可能各种范式语言都掌握,怕只有极少数人 我现在想想两门就该知足了

  • Yoleo RSS Reader, 吐槽下 JS at June 27, 2013

    #31 楼 @sniper114713 同感 混 CNode 的大多数同学都对前端不是很有兴趣.. 后端经常遇到大牛 Github 上看到不少用 Node 的前端,大概是用 Node 做前端工具,就不混论坛

  • ruby-china 里面,ajax 如何实现的? at June 26, 2013

    看编译结果的 JS 嘛.. 那个压缩过.. 至少还能看懂 window.Topics //l.ruby-china.com/assets/topics-905bdd81827eab9c64a0b567d892a545.js

  • DigitalOcean 开通美西加州机房 at June 24, 2013

    求体验报告啊喵

  • 求 JS 代码对应的 Ruby 代码... at June 23, 2013

    #17 楼 @zj0713001 当然,现有的教程都是用 JS 写的,写的是 coffee, 学的还是 JS

  • 求 JS 代码对应的 Ruby 代码... at June 23, 2013

    #8 楼 @blacktulip 看文档用 JS 语法,写代码用 coffee, 不影响. 表示我是了解 JS 语法后先学成了 coffee 的,路走得通

    create_functions = -> [0...10].map (x) -> -> x
    console.log create_functions()[0]()
    console.log create_functions()[1]()
    
    create_functions = ->
      result = []
      (do (i) -> result.push -> i) for i in [0...10]
      result
    console.log create_functions()[0]()
    console.log create_functions()[1]()
    
  • 在公司 MacBook Pro 被盗了. at June 21, 2013

    碰到真就难过死了.. 有木有监控?

  • 我表示以后要放弃使用 Chrome 了 at June 21, 2013

    同事的 Mac 上 Chrome 前几天升级到 27, 老是卡死之类的,, 打开任务管理看了下,CPU 飙到 100% , Mac 还不如 Ubuntu 稳定么?

  • Ruby on Linux at June 19, 2013

    Here's Ubuntu.

  • Github 发布全新界面 —— Repository Next at June 18, 2013

    Issue 设置之类的导航在不同页面不一致,用着不方便,其他暂时能接受

  • 松本行弘:我为 Ruby 2.0 打 90 分 at June 17, 2013

    90 分及格,也就是说满分 150 咯.. 不晓得 Haskell 能多少分 20 年了,真赞

  • 有没人用 ubuntu 的,看视频看几分钟了就非常卡是怎么回事? at June 17, 2013

    记得以前说 Chrome 内置 Flash, Chromium 没.. 不知道还是不是

  • Logdown - blogging in Markdown at June 16, 2013

    很喜欢,, 貌似把我们在 Github 上嚷嚷 Jekyll 的人的目标给实现出来了.. 现在网站文档运行了吗?现在写的东西不是测试数据的吧?

  • Language style at June 15, 2013

    #44 楼 @blacktulip 英语好难懂... 虽然摘了一遍


    1

    Python style block by indentation is an interesting idea, but it works badly with

    • tab/space mixture
    • templates, e.g. eRuby
    • expression with code chunk, e.g lambdas and blocks

    So I'd rather be conservative here.


    2

    Note that the Haskell folks have managed to evolve a language in which python-like spacing can be used to mark the extent of discrete code chunks, but so can traditional braces.

    I admit Haskell syntax is much better than Python's. But I am not yet sure if it can be applied to Ruby.


    3

    imho: indentation should not define semantic;

    Agreed.

    suggestion: make 'end' optional if code block contains only one statement;

    I'm not sure if we can define syntax for above suggestion.

    while cond
       puts a
    puts b     # delimit by indentation or else??
    

    or maybe

    while cond: puts a  # should be in same line
    

    4

    I admit Haskell syntax is much better than Python's.

    Matz, you must be joking... Python is much easier to read than Haskell.

    To rephrase, "Haskell INDENTATION SYNTAX is much better than Python's". Clear?


    5

    What do you think about OPTIONAL block indendation in Ruby?

    I am not positive for general block-by-indentation idea. If one REALLY loves the idea, Python always waits for you.

    But I sometime want "end"-less single line structure (in normal order), e.g.

    if foo then bar  # pseudo syntax; you may require delimiters
    

    not

    bar if foo
    

    especially when I write very small code chunk. Not knowing what syntax it should be.


    6

    imho: we need special terminator anyway, now it is 'end', could be another; suggestion: introduce ';;' terminator for 'implicit blocks (not started with class/module/def/do/begin), ie:

    For your information, 1.9 once had exact same syntax you've proposed for a short while. I have a time machine. The idea was abandoned since it caused serious unreadability.

  • Language style at June 15, 2013

    #42 楼 @mingyuan0715 讲解一下 Matz 怎么说的不?看看能不能说通我们转投 end :P

  • Google Reader 之后,现在,大家一般用啥工具来订阅 RSS? at June 14, 2013

    Linux 用户,Feedly, 希望能无缝

  • 来晒晒你的工作台? at June 14, 2013

    上个月天气热跑到窗外上网.. 想到快离校了一伤心拍了一张 MyZJUT 照片里照到别人应该没啥坏影响吧...

  • 什么影响阅读? at June 14, 2013

    因为这话足够浅显,拉点 git 文档混淆一下试试

  • React, Facebook 发布的又一个前端 JS 框架 at June 13, 2013

    #12 楼 @luikore 不怎么懂... 潜意识里 CSS 和 HTML 就是钉子 CSS 和 HTML 在页面存在大量重复,而重复只能通过脚本化的语言才能组织和管理好 我觉得造出既不是 JS 又不是 HTML 带来不好的结果,这比较好理解, JS 写 CSS 和 HTML, 这是出问题在哪儿?

  • React, Facebook 发布的又一个前端 JS 框架 at June 13, 2013

    #10 楼 @Saito 好像 JS 社区氛围里有用 JS 去做所有事情的调调.. 的确用 JS 写 HTML 写 CSS 的方案都没有成功,但是不知道,为什么?

  • React, Facebook 发布的又一个前端 JS 框架 at June 13, 2013

    #8 楼 @Saito 是不是说导致现在出来 JS 或者 HTML 都不能用上,结果不实用了?

  • React, Facebook 发布的又一个前端 JS 框架 at June 13, 2013

    #6 楼 @Saito 这个是 HTML 里嵌套 JS 代码?

  • React, Facebook 发布的又一个前端 JS 框架 at June 13, 2013

    #4 楼 @Saito JSX 是啥?

  • 新功能的想法,实时话题图谱 at June 13, 2013

    每天几十条的微博量才有这个需求的吧

  • 买完房子,愁装修,愁完装修又要愁结婚,结完婚后又要开始愁小孩子的奶粉钱!什么时候是个头呀。。。 at June 13, 2013

    而且麻烦的是就算尝试不一样的人生,还是会被爸妈亲戚推到相近的轨道上去。就好像学个冷僻语言各种被打回到主流语言去似的

  • iOS 7 在国外科技网站的热门评论 at June 13, 2013

    flatten 不彻底,常见的扁平设计都是纯色背景,最简化图标,这里用的是渐变, 微博有人推测是暗示苹果要出透明手机了觉得还挺有意思的

  • React, Facebook 发布的又一个前端 JS 框架 at June 13, 2013

    Google 一个 Facebook 一个,前端框架到时候怎么选啊?各种学习成本和重复造轮子不能重用模块?

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