tianyuan / gitblog

My drafts using issues and GitHub Actions.
0 stars 0 forks source link

关于优美的Lambda和Stream #16

Open tianyuan opened 11 months ago

tianyuan commented 11 months ago

我的Java水平一直停留在7. :rofl: 10年了,都已经Java 11. 很多新的feature知道(functional stuff),但是并没有详细学习和了解,学过Scala, 但是一直没机会用,也就仅限于知道了。 每次建模遇到collections,random access, sorting, 自己老需要花时间琢磨合适的数据结构,add, remove, access的performance。 昨天相见恨晚的打开了一个在收藏夹里吃灰很久的油管视频: Get a Taste of Lambdas and Get Addicted to Streams by Venkat Subramaniam。 躺在沙发上看了3个小时, Woo, lambda is cute, Stream is AWESOME! :saluting_face: :heartpulse: 大量例子都是我的痛点, 哈哈。 老师特别好,也很幽默,尤其是解释什么是 lazy evaluation.
建模使用的软件去年已经更新到Java 11了,现在正好补一下这块子。

AnyLogic release with Java 11