Yifeng Wang
Yifeng Wang
A simple pattern can be used to group similar rules: ``` js export const rules = [ // Table { match: ({ name }) => { const tableTags = [...
@JanzenZhangChen 使用 mobx 符合领域模型的 class 在中小项目中能提高效率,并不意味着大项目中就不适合吧。Java 大项目照样用 OO 的这一套抽象啊。个人理解,二者实际上区别应该在于 Redux 适合 IM 一类状态随时间序列变化的系统,而 mobx 更适合后台管理等对许多复杂数据模型做 CRUD,没有时间序列概念的系统。
> mobx(vue)控制下因为没有action,reducer的承载,对model的操作会倾向写在view里面 我很赞成 @JanzenZhangChen 纯 View 的理念,不过你提到的这点不完全成立。mobx 有 strict 模式来强制把 model 操作封装在 action 中,也同样也可以围绕 model 和 store 来组织代码,让 View 保持为 React 应该有的纯 View。这样不仅保留了和 Redux 理念上一致的模型层抽象,也能够提升开发的效率,少写 redux 的 boilerplate(我们组内交流的观点还是普遍反映 redux 这一套比较难用,目前在考量...
Done 😄 https://github.com/doodlewind/js-20-years-cn/tree/master/source
支持双语阅读的话,我们讨论的就不是 cn.history.js.org,而是 history.js.org 啦。是个挺有意思的想法,不过可能需要问问 Allen 和 Brendan 的意见,我自己还没考虑过要搞这么大 :) 原文是由 LaTeX 生成 PDF 的,因此如果需要支持双语阅读,需要自己手动「制作」一份 markdown 或 HTML 的英文版出来(源码参见 https://github.com/allenwb/jshistory-hopl4 这里)。原版 LaTeX 到现在 markdown 或 HTML 的格式转换未必是「无缝」的,这算是一个顾虑吧。目前如果想对照阅读,直接参照上游 PDF 或源码即可。到上游的链接其实也已经在首页上啦。
@dz85 https://github.com/allenwb/jshistory-hopl4

尾递归是 tail call,这里指的是 proper tail call (PTC),即引擎对尾递归的消栈优化。不确定为什么 TC39 要这样定义,叫做 tail call optimization 的话应该就不会有歧义了。参见术语表: https://github.com/doodlewind/jshistory-cn/blob/master/appendices.md#proper-tail-call
Hi, Thanks for your concern. For now the full translation of part 4 has almost been done, leaving less than 10 pages to work on. So I’m afraid that I...
I can confirm as of 2020.11, this example works on Flutter 1.22.4 with following patch: * Change the `copyPixelBuffer` signature as above. * Remove `Podfile` and `Podfile.lock` (and don't checkin...