HN 精选

Hey Underscore, You're Doing It Wrong!

InfoQ
9 人推荐 · 跨 7 个月 · 2014–2022
函数式编程Web 开发
Hey Underscore, You're Doing It Wrong!

中文导读

Brian Lonsdorf 在这期短小精悍的视频里,直指 Underscore.js 等库在纯函数式编程上的局限,随后通俗易懂地演示了 JavaScript 中的柯里化、函数组合与无参数风格(point-free),并论证了为什么“数据参数必须放最后”。

为什么 HN 推它

HN 社区常年力荐的 JS 函数式编程启蒙视频,用最直观的方式讲清了柯里化的精髓以及 data-last 参数顺序为何至关重要。

「这个视频用了大约 30 分钟就把问题讲得透透彻彻。」HN 网友原话:this video gives a pretty good explanation in ~30 minutes
英文原摘要(HackerTube / Claude 整理)

Brian Lonsdorf explains why Underscore.js falls short as a functional programming library, then introduces currying, composition and point-free style in JavaScript. He argues for data-last argument ordering.

A repeatedly recommended introduction to functional JavaScript that explains currying and why data should come last.

HN 上的提及

strong_rec lrichardson · 2014-04 · HN 原文
I also very much recommend this video by Brian Lonsdorf
reference seanwoodward · 2014-04 · HN 原文
See Brian Lonsdorf talk about it,
rec grayrest · 2014-07 · HN 原文
More info on the topic
rec hueyp · 2014-07 · HN 原文
It is much better than the title would suggest :)
rec lsdafjklsd · 2014-07 · HN 原文
I'm a javascript programmer introduced to these concepts via [1]

相关视频