Java Stream

What is stream? Stream is an abstraction of data operations. It takes input from the collections, Arrays of I/O channels. From imperative to declarative For example, given a list of people, find out the first 10 people with age less or equals to 18. The following...

消费函数

当我们考虑花多少钱在消费上的时候,我们会考虑哪些因素?也就是说,我们的消费由什么决定?在经济学中,又该如何量化这个决策的过程?凯恩斯提出的消费函数认为:消费仅仅取决于现期收入,也就是 C=C0 + aY`。这里的Y是收入,而C0 是当前消费,而a是边际消费率,也就是随着收入增长,消费增长的比例。凯恩斯的消费公式有几个重要含义: 消费随着收入的增长而增长,但是增长的比例小于1,即边际消费率大于0但是小于 1。边际消费率本身也会随着收入的增长而减小。...

Lambda Expression in Java/Kotlin

Higher-order function In computer science, a higher-order function is a function that does at least one of the following: Takes one or more functions as argumentsReturns a function as its result. All other functions are first-order functions. Anonymous class In Java,...

SRE: Data Integrity

  Data integrity usually refers to the accuracy and consistency of data throughout its lifetime. For customer involved online services, things can go even more complex. Any data corruption, data loss, or extended unavailability are considered data integrity issue...