Login
Discover
Waves
Communities
Login
Signup
_not_bad_
@andy2046
25
not bad guy
Followers
13
Following
13
Follow
Email digest
Resource Credits
Available
Used
Location
earth
Website
https://steemit.com/@andy2046
Created
2019-01-29 04:37
RSS Feed
Subscribe
Blog
Blog
Posts
Comments
Communities
Wallet
andy2046
react
8y
!
Low reputation account with an unverified outbound link, Reveal content
[React] Redux 源码解读
介绍 我们一起来研究下当前最流行的React状态管理容器Redux,本文基于Redux v3.7.2 ,Redux用一个单独的状态树对象(state tree object)保存整个应用的状态,这个对象不能直接被改变(immutable),当数据变化了,一个新的对象就会被创建(通过actions和reducers) Redux有如下优点: 可预测 始终有一个唯一的准确的数据源(single source
$ 0.000
1
2
shadowlu
food
8y
andy2046 reblogged
!
Low reputation account with an unverified outbound link, Reveal content
Today I share with you a very famous delicious (Ningbo, China), the shuttle crab fried rice cake
Hello everyone, I am Lu, here is the Chinese fashion food section. China is a country rich in food. I will share videos and pictures of various Chinese cuisines for your reference and production. I believe
$ 0.000
2
1
andy2046
nodejs
8y
Node.js进阶666 等级考试
Node.js challenge 四级 What is the relationship between Node.js and V8? Can Node work without V8? How come when you declare a global variable in any Node.js file it’s not really global to all modules? When
andy2046
kubernetes
8y
Kubernetes API reference
v1.10 Container Pod Service Deployment Ingress Job CronJob NetworkPolicy
andy2046
kubernetes
8y
Kubernetes cheat sheet
Cluster Introspection kubectl get services # List all services kubectl get pods # List all pods kubectl get nodes -w # Watch nodes continuously kubectl version # Get version information kubectl cluster-info
andy2046
tco
8y
!
Low reputation account with an unverified outbound link, Reveal content
Tail Call Optimization in JavaScript
[JavaScript] 尾调用优化 Tail Call Optimization 介绍 现在函数式编程越来越流行,有时我们会选择用recursion递归来写逻辑,这样代码容易懂而且也可以避免一些side-effects副作用,但是, 但是,JavaScript并不支持尾递归调用 举个栗子🌰,下面👇代码会出错 var sum = function(x, y) { if (y > 0) {
andy2046
variable
8y
!
Low reputation account with an unverified outbound link, Reveal content
Variable Object in JavaScript
[JavaScript] 变量对象 Variable Object 介绍 本文中,我们将分析与ECMAScript执行上下文相关的概念变量对象 Variable Object 先举个栗子🌰,为什么a b x表现大不相同,当引用一个函数或者变量时,解释器是如何以及从哪里找到它们的呢 alert(a); // undefined alert(b); // "b" is not defined
andy2046
execution
8y
!
Low reputation account with an unverified outbound link, Reveal content
Execution Context in JavaScript
[JavaScript] 执行上下文 Execution Context 介绍 本文中,我们将分析ECMAScript的执行上下文以及相关的可执行代码的类型 先举个栗子🌰,为什么a和b表现大不相同,当引用一个函数或者变量时,解释器是如何以及从哪里找到它们的呢 b(); // Called b console.log(a); // undefined var a = "Hello
andy2046
scope
8y
!
Low reputation account with an unverified outbound link, Reveal content
Scope Chain in JavaScript
[JavaScript] 作用域链 Scope Chain 介绍 在变量对象中已经介绍过,执行上下文(变量,函数声明和函数形式参数)的数据被存储为变量对象的属性 此外,我们知道每次进入上下文时都会创建变量对象并填充初始值,并且它的更新发生在代码执行阶段 举个栗子🌰 function test(a, b) { console.log(c); // function c() {} var c = 10;
andy2046
javascript
8y
!
Low reputation account with an unverified outbound link, Reveal content
this in JavaScript
[JavaScript] 令人迷惑的《this》 介绍 本文将讨论一个与执行上下文密切相关的细节 => this关键字 实践证明,理解this难度较大,并且经常会导致在不同的执行环境中错误滴确定this值的问题 举着栗子🌰: var a = 'global'; function foo () { console.log(this.a); } var obj = { a: 2, foo: foo