• 请不要在回答技术问题时复制粘贴 AI 生成的内容
MorningStar0
V2EX  ›  程序员

写了一些在 JS 里实践函数式编程的经验

  •  1
     
  •   MorningStar0 · Jan 5, 2023 · 2229 views
    This topic created in 1235 days ago, the information mentioned may be changed or developed.

    后续还想写写元语句和流式编程blog

    Supplement 1  ·  Jan 5, 2023
    感觉我个人常用的就是这些了,希望大家能提点意见
    2 replies    2023-01-05 16:23:20 +08:00
    lmshl
        1
    lmshl  
       Jan 5, 2023   ❤️ 1
    建议理论部分可以参考《 SICP 》,实战部分多写点 RxJS 之类的。
    以及不要讲 Monad ,就像现在这样

    再就是拿实际业务举例,怎么用 map/filter/reduce 等替换掉 loop 部分,我觉得就足够了。
    https://www.zhihu.com/question/570165038/answer/2784350974
    MorningStar0
        2
    MorningStar0  
    OP
       Jan 5, 2023
    @lmshl 我是看完 sicp 之后,结合自己的开发中使用写的。
    实际业务的话,前两篇有提到。我后面更新下案例,就下面这两个
    [高性能分组列表设计(1)]( https://sadofriod.github.io/%E9%AB%98%E6%80%A7%E8%83%BD%E5%88%86%E7%BB%84%E5%88%97%E8%A1%A8%E8%AE%BE%E8%AE%A1-1.html)
    [高性能分组列表设计(2)]( https://sadofriod.github.io/%E9%AB%98%E6%80%A7%E8%83%BD%E5%88%86%E7%BB%84%E5%88%97%E8%A1%A8%E8%AE%BE%E8%AE%A1-2.html)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3328 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 00:39 · PVG 08:39 · LAX 17:39 · JFK 20:39
    ♥ Do have faith in what you're doing.