工业聚
工业聚
We shall add `farrow` contains some useful modules for developing farrow app - [x] a bundler for server-side development - [ ] a bundler for client-side development - [ ]...
For now, `farrow-http` just supporting the request schema. We can use `farrow-schema` to describe the request and response of all the RESTFul API and integrate it with something like `oepnapi`....
Hi! Koka is an excellent language that supports algebraic-effects. Great Job! Recently, I wrote [a simple canvas demo](https://codesandbox.io/s/algebraic-effects-rendering-koka-f8b6g?file=/core.kk) via Koka v1.0. I know Koka v2.0 now is under development, just...
See this [log](https://cnpmjs.org/sync/prettier-standard-formatter#logid=1527993) for more detail
Excellent job! Pattern-matching and Algebraic Data Type(Discriminated Union) are really useful for writing type-safety code. Algebraic-Effects and Handlers is another great feature that needs widely supporting for better control flow,...
## 前言 今天看 `Mozilla` 出品的 [ES6 In Depth](https://hacks.mozilla.org/category/es6-in-depth/) ,看到 [Arrow functions](https://hacks.mozilla.org/2015/06/es6-in-depth-arrow-functions/)([中文翻译](http://bubkoo.com/2015/06/28/es6-in-depth-arrow-functions/)),其中一段让人讶异。 > Using arrows to pierce the dark heart of computer science > > 「使用箭头来刺穿计算机的黑暗心脏」 里面提到λ (lambda)表达式、阿隆佐·邱奇(Alonzo Church)、阿兰·图灵(Alan Turing),这些耳熟能详的名词原来与我们写 JavaScript...
`作者`: 工业聚 `日期`:2015-06-12 ## 前言 近日,Mac 下著名软件 Homebrew 的作者,因为没解出来二叉树翻转的白板算法题,惨遭 Google 拒绝,继而引发推特热议。 在 JavaScript 中也有很多树形结构。比如 DOM 树,省市区地址联动,文件目录等; JSON 本身就是树形结构。 很多前端面试题也跟树形结构的有关,比如在浏览器端写遍历 DOM 树的函数,比如在 nodejs 运行时遍历文件目录等。 这里演示用 JavaScript 遍历树形结构的几种策略。 ## 场景1:遍历 DOM 树...
# IMVC(同构 MVC)的前端实践 ## 导语 随着 Backbone 等老牌框架的逐渐衰退,前端 MVC 发展缓慢,有逐渐被 MVVM/Flux 所取代的趋势。 然而,纵观近几年的发展,可以发现一点,React/Vue 和 Redux/Vuex 是分别在 MVC 中的 View 层和 Model 层做了进一步发展。如果 MVC 中的 Controller 层也推进一步,将得到一种升级版的 MVC,我们称之为 IMVC(同构 MVC)。 IMVC...
在 haskell 里,function 本身也是 functor, applicative, monad 和 monoid。 ## 理念 function 是天然的 container。 ```haskell - b 是 test 函数包含的 value, test a 函数调用是获取 container 内部 value 的方式 test ::...