V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zhonghua
V2EX  ›  程序员

关于函数式编程

  •  
  •   zhonghua · 2013-11-16 18:08:09 +08:00 · 4247 次点击
    这是一个创建于 3814 天前的主题,其中的信息可能已经有所发展或是发生改变。
    最近写js写的有点多
    刚开始还好,但是写多了,发现,代码好丑,自己都看不下去了
    以前一直在写c/c++,完全按照c/c++的思路来写的,最多用个闭包, array.map之类的

    除了scip什么的,还有别的什么推荐么?
    19 条回复    1970-01-01 08:00:00 +08:00
    ceclinux
        1
    ceclinux  
       2013-11-16 18:17:10 +08:00
    我怎么马上想到了haskell
    zhy0216
        2
    zhy0216  
       2013-11-16 19:03:12 +08:00
    underscore
    Sherlockhlt
        3
    Sherlockhlt  
       2013-11-16 20:31:17 +08:00
    underscore + 1
    robertlyc
        4
    robertlyc  
       2013-11-16 20:39:03 +08:00
    underscore
    switch
        5
    switch  
       2013-11-16 20:41:27 +08:00
    Lo-Dash
    subpo
        6
    subpo  
       2013-11-16 20:49:18 +08:00
    如果没有深入学过js,感觉前一个熟悉的语言真的会影响js的代码风格。。
    alexrezit
        7
    alexrezit  
       2013-11-16 21:20:28 +08:00
    @subpo
    是的... 我的 js 都是 Python 和 Objective-C 混合风格的...
    young
        8
    young  
       2013-11-16 21:58:13 +08:00
    最近在看 erlang
    zoowii
        9
    zoowii  
       2013-11-16 22:01:27 +08:00
    underscore + backbone +10086
    judasnow
        10
    judasnow  
       2013-11-16 22:22:25 +08:00
    贴一段上看不下去的来看看哇 :-)
    timonwong
        11
    timonwong  
       2013-11-17 09:41:35 +08:00
    js?
    马上想到ClojureScript...
    weakish
        12
    weakish  
       2013-11-17 11:52:23 +08:00
    HTDP 不错,就是节奏偏慢一点
    lenage
        13
    lenage  
       2013-11-17 14:00:57 +08:00
    纠正一下Lz,
    是SICP(Structure and Interpretation of Computer Programs)不是SCIP
    standin000
        14
    standin000  
       2013-11-17 22:50:34 +08:00
    elisp
    zhonghua
        15
    zhonghua  
    OP
       2013-11-17 23:06:09 +08:00
    @ceclinux 为什么?没接触过,只听说卡马克大神要用它重写德军司令部
    @zhy0216 我的意思编码风格,不是使用什么库?或者你的意思是,我研究一下underscore的代码?
    @subpo
    @alexrezit + 10086
    @judasnow 呵呵
    @timonwong 为什么?
    @lenage thanks
    @standin000 有点遥远
    standin000
        16
    standin000  
       2013-11-18 11:46:39 +08:00
    @zhonghua 呵呵,用emacs就可以。
    zhonghua
        17
    zhonghua  
    OP
       2013-11-19 16:38:30 +08:00
    @standin000 使用中
    standin000
        18
    standin000  
       2013-11-19 21:22:51 +08:00
    @zhonghua 那能接触很多elisp代码。
    zhonghua
        19
    zhonghua  
    OP
       2013-11-20 17:12:04 +08:00
    @standin000 恩,是的。不过目前接触的还只是编辑相关,适应一下自己的编程习惯,或者查看一下代码。不过elisp远不止如此
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2854 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:38 · PVG 17:38 · LAX 02:38 · JFK 05:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.