Login
Discover
Waves
Decks
Plus
Login
Signup
_not_bad_
@andy2046
26
not bad guy
Followers
13
Following
13
Resource Credits
Available
Used
Location
earth
Website
https://steemit.com/@andy2046
Created
January 29, 2019
RSS Feed
Subscribe
Blog
Blog
Posts
Comments
Communities
Wallet
andy2046
react
2019-02-18 03:04
[React] Redux 源码解读
介绍 我们一起来研究下当前最流行的React状态管理容器Redux,本文基于Redux v3.7.2 ,Redux用一个单独的状态树对象(state tree object)保存整个应用的状态,这个对象不能直接被改变(immutable),当数据变化了,一个新的对象就会被创建(通过actions和reducers) Redux有如下优点: 可预测 始终有一个唯一的准确的数据源(single source
$ 0.000
1
2
shadowlu
food
2019-01-31 02:29
andy2046 reblogged
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
andy2046
nodejs
2019-01-30 06:57
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
$ 0.000
4
1
andy2046
kubernetes
2019-01-29 12:38
Kubernetes API reference
v1.10 Container Pod Service Deployment Ingress Job CronJob NetworkPolicy
$ 0.000
3
andy2046
kubernetes
2019-01-29 12:29
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
$ 0.000
5
2
andy2046
tco
2019-01-29 10:03
Tail Call Optimization in JavaScript
[JavaScript] 尾调用优化 Tail Call Optimization 介绍 现在函数式编程越来越流行,有时我们会选择用recursion递归来写逻辑,这样代码容易懂而且也可以避免一些side-effects副作用,但是, 但是,JavaScript并不支持尾递归调用 举个栗子🌰,下面👇代码会出错 var sum = function(x, y) { if (y > 0) {
$ 0.000
2
andy2046
variable
2019-01-29 09:45
Variable Object in JavaScript
[JavaScript] 变量对象 Variable Object 介绍 本文中,我们将分析与ECMAScript执行上下文相关的概念变量对象 Variable Object 先举个栗子🌰,为什么a b x表现大不相同,当引用一个函数或者变量时,解释器是如何以及从哪里找到它们的呢 alert(a); // undefined alert(b); // "b" is not defined
$ 0.000
3
andy2046
execution
2019-01-29 09:33
Execution Context in JavaScript
[JavaScript] 执行上下文 Execution Context 介绍 本文中,我们将分析ECMAScript的执行上下文以及相关的可执行代码的类型 先举个栗子🌰,为什么a和b表现大不相同,当引用一个函数或者变量时,解释器是如何以及从哪里找到它们的呢 b(); // Called b console.log(a); // undefined var a = "Hello
$ 0.000
3
andy2046
scope
2019-01-29 05:23
Scope Chain in JavaScript
[JavaScript] 作用域链 Scope Chain 介绍 在变量对象中已经介绍过,执行上下文(变量,函数声明和函数形式参数)的数据被存储为变量对象的属性 此外,我们知道每次进入上下文时都会创建变量对象并填充初始值,并且它的更新发生在代码执行阶段 举个栗子🌰 function test(a, b) { console.log(c); // function c() {} var c = 10;
$ 0.000
2
andy2046
javascript
2019-01-29 04:56
this in JavaScript
[JavaScript] 令人迷惑的《this》 介绍 本文将讨论一个与执行上下文密切相关的细节 => this关键字 实践证明,理解this难度较大,并且经常会导致在不同的执行环境中错误滴确定this值的问题 举着栗子🌰: var a = 'global'; function foo () { console.log(this.a); } var obj = { a: 2, foo: foo
$ 0.000
3