GithubHelp home page GithubHelp logo

Comments (3)

ascoders avatar ascoders commented on April 29, 2024 2

这两篇文章介绍的很全面了,我对现代编程补充几条:

Dependent injection(依赖注入)

通过控制反转,父级不需要关心子实现细节,将子类可能用到的实例都初始化好,由子类决定引入哪些依赖。还有一个好处是维持了单实例,这一点在数据流中尤为重要,如果 store 不是单例的,那数据流必然乱了套,既希望传给子类使用,又要维持单例,依赖注入是很好的解决方案。

Symbol Reflect Proxy

这三篇文章非常详细介绍了这三位 API:symbol reflect proxy

Server rendering

前端对后端渲染的热度降了很多,主要是盲目跟风的氛围消停了,真正需要的团队已经稳定的用起来了。后端渲染的理念很新颖,一定程度帮助了 html 认识到自己的不足,就像 ag react vue 对
webComponents 的冲击一样,或许未来十年可以用上 ECMAScript 标准提供的功能,但业务不能等待技术,现在唯有不断折腾,直到被消灭或者招安。

from weekly.

linhuiw avatar linhuiw commented on April 29, 2024

文章讲了很多现代 JavaScript 编程中的很多新概念, 我这里记录一下所有的目录:

纯函数和副作用
Stateful 和 Stateless(有状态和无状态)
可变对象与不可变对象
Imperative and Declarative Programming(声明式和命令式编程)
高阶函数
函数式编程 FP
Hot and Cold Observables
响应式编程 RP
函数式响应型编程 FRP

作用域和闭包
单向数据流和双向数据流
JS框架中的变化侦测: 脏检查, getter 和 setter, 虚拟 DOM
Web Components组件
Smart 和 Dumb 组件
JIT 编译
AOT 编译
Tree Shaking

from weekly.

Line0o0 avatar Line0o0 commented on April 29, 2024

"声明式代码去管理副作用和执行命令式编程" 这里是不是写反了,原文应该说的是 “命令式代码去管理副作用和执行声明式编程”

from weekly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.