编程语言
首页 > 编程语言> > training —— Applying Functional(函数式编程) Principles in C# 6 (overview)

training —— Applying Functional(函数式编程) Principles in C# 6 (overview)

作者:互联网

Applying Functional Principles in C# 6 | Pluralsight

 

c# 函数编程 特性

 

 

 

linq & lambdas & delegates

 

函数编程:is mathematical function (!= class method)

 

 

 one value transforms to another value

 

 

 

 

 

 

 

 

 

 

method signature honesty

 

 

 

 

 

 

 

 why 函数编程?

1. 降低 复杂度 =》开发速度;bug数量;需求响应速度

 

how?

1. signature honesty

2. referential transparency

 

优点:

1. method 隔离 =》method 组合

2. signature =》what will happen after call it =》容易 理解

3. 容易 UT =》check input & output =》黑盒测试,而非 白盒测试

 

 

 

 

 

 

 

总结:

 

标签:training,Applying,函数,C#,编程,Functional,signature,method,honesty
来源: https://www.cnblogs.com/panpanwelcome/p/16296294.html