开源日报第518期:《一个顶俩 Anti-YiGeDingLia》
收藏


每日一个   GitHub 优质开源项目 + 精选英文科技原文 


开源项目

《一个顶俩 Anti-YiGeDingLia》



推荐理由成语接龙玩多了的都知道,这个世界上最可怕的成语——当然就是一个顶俩,而这个项目可以帮你找出一条将接龙导向一个顶俩的路径,或者是导向一个头尾可以自己接龙循环的词语。不过理论上可以通过修改一下源码来替换一个顶俩为另一个其他的词语,原理本身并没有变。


英文文摘

《What Is a Pure Function?》

作者:
Devin Soni
原文链接:
https://medium.com/better-programming/what-is-a-pure-function-3b4af9352f6f
推荐理由:
介绍了纯函数和它的好处

What Is a Pure Function?

Pure functions in programming and their benefits

Definition

In programming, a pure function is a function that has the following properties:

  1. The function always returns the same value for the same inputs.

  2. Evaluation of the function has no side effects. Side effects refer to changing other attributes of the program not contained within the function, such as changing global variable values or using I/O streams.

Effectively, a pure function’s return value is based only on its inputs and has no other dependencies or effects on the overall program.


开源工场

欢迎各位看官通过以下方式加入我们的组织

电报群:

t.me/openingsource

QQ群:

202790710

微信:扫码并备注“开源工场”,我们的小伙伴会拉你入场哦






▼点击阅读原文获取链接



官方公众号