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 =》黑盒测试,而非 白盒测试

 

 

 

 

 

 

 

总结:

 

posted @   PanPan003  阅读(23)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· 没有源码,如何修改代码逻辑?
· NetPad:一个.NET开源、跨平台的C#编辑器
· 面试官:你是如何进行SQL调优的?
历史上的今天:
2021-05-21 criteo ads api
2020-05-21 鳥哥的 Linux 私房菜——第五章、Linux 的檔案權限與目錄配置
2020-05-21 单元测试 _ Unit testing best practices with .NET Core and .NET Standard
2020-05-21 单元测试 _ Unit testing C# in .NET Core using dotnet test and xUnit
2020-05-21 单元测试 _ Why Should You Use xUnit? A Unit Testing Framework For .Net
2020-05-21 XUnit _ Using XUnit [Theory] and [InlineData] to Test C# Extension Methods
2020-05-21 单元测试 _ xUnit Theory: Working With InlineData, MemberData, ClassData
点击右上角即可分享
微信分享提示